Documentation ¶
Overview ¶
Copyright 2017 WALLIX
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- Variables
- func CompareSemver(current, latest string) (int, error)
- func DisplayConfig() string
- func Get(key string) (interface{}, bool)
- func GetAWSProfile() string
- func GetAWSRegion() string
- func GetAutosync() bool
- func GetConfigWithPrefix(prefix string) map[string]interface{}
- func GetSchedulerURL() string
- func InitAwlessEnv() error
- func InitConfig(fromEnv map[string]string) error
- func InteractiveSet(key string) error
- func IsSemverUpgrade(current, latest string) bool
- func LoadConfig() error
- func Set(key, value string) error
- func SetProfileCallback(value string) error
- func SetVolatile(key, value string) error
- func Unset(key string) error
- func VerifyNewVersionAvailable(url string, messaging io.Writer) error
- type BuildInfo
- type Definition
Constants ¶
View Source
const ( RegionConfigKey = "aws.region" ProfileConfigKey = "aws.profile" )
Variables ¶
View Source
var ( Config = map[string]interface{}{} Defaults = map[string]interface{}{} )
View Source
var ( AwlessHome = filepath.Join(os.Getenv("HOME"), ".awless") DBPath = filepath.Join(AwlessHome, database.Filename) Dir = filepath.Join(AwlessHome, "aws") KeysDir = filepath.Join(AwlessHome, "keys") AwlessFirstInstall bool )
View Source
var ( Version = "v0.1.2" BuildFor string )
View Source
var CurrentBuildInfo = BuildInfo{ Version: Version, For: BuildFor, Sha: buildSha, Date: buildDate, Arch: buildArch, OS: buildOS, }
View Source
var SemverInvalidFormatErr = errors.New("semver invalid format")
View Source
var TriggerSyncOnConfigUpdate bool
Functions ¶
func CompareSemver ¶ added in v0.1.1
func DisplayConfig ¶ added in v0.0.24
func DisplayConfig() string
func GetAWSProfile ¶
func GetAWSProfile() string
func GetAWSRegion ¶
func GetAWSRegion() string
func GetAutosync ¶
func GetAutosync() bool
func GetConfigWithPrefix ¶
func GetSchedulerURL ¶ added in v0.0.24
func GetSchedulerURL() string
func InitAwlessEnv ¶
func InitAwlessEnv() error
func InitConfig ¶ added in v0.0.24
func InteractiveSet ¶
func IsSemverUpgrade ¶ added in v0.1.1
func LoadConfig ¶ added in v0.0.24
func LoadConfig() error
func SetProfileCallback ¶ added in v0.1.1
func SetVolatile ¶
Types ¶
type Definition ¶
type Definition struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.