[#58] Make constants golint compliant
This patch addresses golint failures such as: pkg/config/constants.go:21:2: const AirshipConfigApiVersion should be AirshipConfigAPIVersion Relates-To: #58 Change-Id: I164c907957c8b760c64737c48995f5f3c0d297ec Signed-off-by: Alexander Hughes <Alexander.Hughes@pm.me>
This commit is contained in:
parent
f66f94dc80
commit
0c12f6bcf6
@ -18,7 +18,7 @@ var AllClusterTypes = [2]string{Ephemeral, Target}
|
||||
const (
|
||||
AirshipConfigGroup = "airshipit.org"
|
||||
AirshipConfigVersion = "v1alpha1"
|
||||
AirshipConfigApiVersion = AirshipConfigGroup + "/" + AirshipConfigVersion
|
||||
AirshipConfigAPIVersion = AirshipConfigGroup + "/" + AirshipConfigVersion
|
||||
AirshipConfigKind = "Config"
|
||||
|
||||
AirshipConfigDir = ".airship"
|
||||
|
@ -32,7 +32,7 @@ import (
|
||||
func DummyConfig() *Config {
|
||||
conf := &Config{
|
||||
Kind: AirshipConfigKind,
|
||||
APIVersion: AirshipConfigApiVersion,
|
||||
APIVersion: AirshipConfigAPIVersion,
|
||||
Clusters: map[string]*ClusterPurpose{
|
||||
"dummy_cluster": DummyClusterPurpose(),
|
||||
},
|
||||
|
@ -20,7 +20,7 @@ package config
|
||||
func NewConfig() *Config {
|
||||
return &Config{
|
||||
Kind: AirshipConfigKind,
|
||||
APIVersion: AirshipConfigApiVersion,
|
||||
APIVersion: AirshipConfigAPIVersion,
|
||||
Clusters: make(map[string]*ClusterPurpose),
|
||||
AuthInfos: make(map[string]*AuthInfo),
|
||||
Contexts: map[string]*Context{
|
||||
|
Loading…
x
Reference in New Issue
Block a user