in-progress golint warning fixes (#1799)
Co-authored-by: Vishal <vishal-biyani@users.noreply.github.com>
This commit is contained in:
@@ -23,6 +23,7 @@ import (
|
|||||||
"github.com/fission/fission/pkg/fission-cli/flag"
|
"github.com/fission/fission/pkg/fission-cli/flag"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//Commands returns canary config commands
|
||||||
func Commands() *cobra.Command {
|
func Commands() *cobra.Command {
|
||||||
createCmd := &cobra.Command{
|
createCmd := &cobra.Command{
|
||||||
Use: "create",
|
Use: "create",
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ import (
|
|||||||
"github.com/fission/fission/pkg/fission-cli/flag"
|
"github.com/fission/fission/pkg/fission-cli/flag"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//Commands returns support commands
|
||||||
func Commands() *cobra.Command {
|
func Commands() *cobra.Command {
|
||||||
dumpCmd := &cobra.Command{
|
dumpCmd := &cobra.Command{
|
||||||
Use: "dump",
|
Use: "dump",
|
||||||
|
|||||||
@@ -12,16 +12,19 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
// Analytics struct
|
||||||
Analytics struct {
|
Analytics struct {
|
||||||
id string
|
id string
|
||||||
url string
|
url string
|
||||||
}
|
}
|
||||||
|
// AnalyticsData struct
|
||||||
AnalyticsData struct {
|
AnalyticsData struct {
|
||||||
ID string `json:"ID"`
|
ID string `json:"ID"`
|
||||||
FunctionCallCount uint64 `json:"FunctionCallCount"`
|
FunctionCallCount uint64 `json:"FunctionCallCount"`
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// MakeAnalytics returns Analytics if url is not empty
|
||||||
func MakeAnalytics(url string) *Analytics {
|
func MakeAnalytics(url string) *Analytics {
|
||||||
|
|
||||||
if len(url) == 0 {
|
if len(url) == 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user