Skip to content

Commit

Permalink
chore: fix linter issues #66
Browse files Browse the repository at this point in the history
  • Loading branch information
SLedunois committed Dec 22, 2022
1 parent 0cbe1ce commit 8674e5a
Show file tree
Hide file tree
Showing 33 changed files with 39 additions and 4 deletions.
1 change: 1 addition & 0 deletions cmd/bbsctl/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Binary bbsctl is a command line interface to manage BigBlueSwarm load balancer
package main

import (
Expand Down
3 changes: 2 additions & 1 deletion internal/mock/admin_mock.go → internal/mock/admin.mock.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package mock provide an internal mock to test
package mock

import (
Expand Down Expand Up @@ -64,7 +65,7 @@ func (a *AdminMock) BBSAPIStatus() (string, error) {
return BBSAPIStatusAdminFunc()
}

// GetConfigurations is a mock implementation returning the configuration
// GetConfiguration is a mock implementation returning the configuration
func (a *AdminMock) GetConfiguration() (*bbsconfig.Config, error) {
return GetConfigurationFunc()
}
Expand Down
1 change: 1 addition & 0 deletions internal/test/cmd.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package test provides utilities to test cli commands
package test

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/admin/admin.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package admin provides some api to manage data to and from bigblueswarm
package admin

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/apply/apply.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package apply provides apply command
package apply

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/apply/definitions.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package apply provides apply command
package apply

// Resource is a resource object
Expand Down
3 changes: 2 additions & 1 deletion pkg/cmd/apply/flags.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package apply provides apply command
package apply

// Flags contains all apply flags
Expand All @@ -8,4 +9,4 @@ type Flags struct {
// NewFlags initialize a new Flags struct
func NewFlags() *Flags {
return &Flags{}
}
}
1 change: 1 addition & 0 deletions pkg/cmd/apply/manager.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package apply provides apply command
package apply

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/clusterinfo/clusterinfo.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package clusterinfo provides the cluster-info command
package clusterinfo

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/delete/delete.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package delete provides the delete command
package delete

import "github.com/spf13/cobra"
Expand Down
3 changes: 2 additions & 1 deletion pkg/cmd/delete/flags.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package delete provides the delete command
package delete

// Flags contains all delete command flags
Expand All @@ -9,7 +10,7 @@ func NewFlags() *Flags {
}

// TenantFlags contains all delete tenant command flags
type TenantFlags struct{
type TenantFlags struct {
Hostname string
}

Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/delete/tenant.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package delete provides the delete command
package delete

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/describe/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package describe provides the describe command
package describe

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/describe/describe.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package describe provides the describe command
package describe

import "github.com/spf13/cobra"
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/describe/flags.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package describe provides the describe command
package describe

// Flags contains all config command flags
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/describe/tenant.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package describe provides the describe command
package describe

import (
Expand Down
3 changes: 2 additions & 1 deletion pkg/cmd/get/flags.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package get provides the get command
package get

// Flags contains all Get command flags
Expand All @@ -6,7 +7,7 @@ type Flags struct {
JSON bool
}

// NewGetFlags initialize a new InstancesFlags object
// NewFlags initialize a new Flags object
func NewFlags() *Flags {
return &Flags{
CSV: false,
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/get/get.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package get provides the get command
package get

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/get/instances.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package get provides the get command
package get

import (
Expand Down
2 changes: 2 additions & 0 deletions pkg/cmd/get/tenants.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package get provides the get command
package get

import (
Expand All @@ -11,6 +12,7 @@ import (
"github.com/spf13/cobra"
)

// TenantsCmd struct represents the get tenants command object
type TenantsCmd struct {
Command *cobra.Command
Flags *Flags
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/init/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package init provides the init command
package init

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/init/flags.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package init provides the init command
package init

// ConfigFlags represents `bbsctl init config` flags
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/init/helper.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package init provides the init command
package init

import (
Expand Down
2 changes: 2 additions & 0 deletions pkg/cmd/init/init.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
// Package init provides the init command
package init

import (
"github.com/spf13/cobra"
)

// NewCmd initialize a new init cobra command
func NewCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "init <command> [flags]",
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/init/instances.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package init provides the init command
package init

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/init/prerun.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package init provides the init command
package init

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/init/tenant.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package init provides the init command
package init

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/root/flags.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package root provide the root bbsctl command
package root

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/root/root.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package root provide the root bbsctl command
package root

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package config manages the configuration
package config

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/config/definitions.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package config manages the configuration
package config

// Config represents the config file struct
Expand Down
1 change: 1 addition & 0 deletions pkg/render/render.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package render provides some renderer to display data
package render

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/system/exit_code.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package system provides some system utilities
package system

// OperationNotPermittedExitCode is the GNU/Linux common exit code for operation not permitted
Expand Down

0 comments on commit 8674e5a

Please sign in to comment.