[#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:
Alexander Hughes 2020-02-28 10:51:08 -05:00
parent f66f94dc80
commit 0c12f6bcf6
3 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

@ -32,7 +32,7 @@ import (
func DummyConfig() *Config {
conf := &Config{
Kind: AirshipConfigKind,
APIVersion: AirshipConfigApiVersion,
APIVersion: AirshipConfigAPIVersion,
Clusters: map[string]*ClusterPurpose{
"dummy_cluster": DummyClusterPurpose(),
},

View File

@ -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{