Documentation ¶
Index ¶
- Constants
- Variables
- func GetAccessKey() string
- func GetAccessKeyId() string
- func GetAccountId() string
- func GetGlobalString(key string) string
- func GetString(key string) string
- func GetToken() string
- func Init()
- func IsActionsInit(projectSlug string) bool
- func IsAnyActionsInit() bool
- func IsLoggedIn() bool
- func IsProjectInit() bool
- func MaybeGetMap(key string) map[string]interface{}
- func MaybeGetString(key string) string
- func MustWriteActionsInit(projectSlug string, projectActions *actions.ProjectActions)
- func MustWriteExtensionsInit(projectSlug string, projectExtensions extensionsModel.ConfigProjectExtensions)
- func ReadProjectConfig() ([]byte, error)
- func SetGlobalConfig(key string, value interface{})
- func SetProjectConfig(key string, value interface{})
- func WriteGlobalConfig() error
- func WriteProjectConfig() error
Constants ¶
View Source
const ( Token = "token" AccessKey = "access_key" AccessKeyId = "access_key_id" AccountID = "account_id" Username = "username" Email = "email" ProjectSlug = "project_slug" Provider = "provider" OrganizationName = "org_name" Actions = "actions" Extensions = "node_extensions" Projects = "projects" )
Variables ¶
View Source
var GlobalConfigName string
View Source
var ProjectConfigName string
View Source
var ProjectDirectory string
Functions ¶
func GetAccessKey ¶ added in v0.8.0
func GetAccessKey() string
func GetAccessKeyId ¶ added in v0.8.0
func GetAccessKeyId() string
func GetAccountId ¶ added in v0.8.0
func GetAccountId() string
func GetGlobalString ¶ added in v0.5.4
func IsActionsInit ¶ added in v1.2.0
func IsAnyActionsInit ¶ added in v1.2.0
func IsAnyActionsInit() bool
func IsLoggedIn ¶ added in v0.1.5
func IsLoggedIn() bool
func IsProjectInit ¶ added in v0.1.5
func IsProjectInit() bool
func MaybeGetMap ¶ added in v0.5.2
func MaybeGetString ¶ added in v0.2.5
func MustWriteActionsInit ¶ added in v1.2.0
func MustWriteActionsInit(projectSlug string, projectActions *actions.ProjectActions)
func MustWriteExtensionsInit ¶ added in v1.5.12
func MustWriteExtensionsInit(projectSlug string, projectExtensions extensionsModel.ConfigProjectExtensions)
func ReadProjectConfig ¶ added in v1.2.0
ReadProjectConfig is necessary because viper reader doesn't respect custom unmarshaler
func SetGlobalConfig ¶ added in v0.1.5
func SetGlobalConfig(key string, value interface{})
func SetProjectConfig ¶ added in v0.1.5
func SetProjectConfig(key string, value interface{})
func WriteGlobalConfig ¶ added in v0.1.5
func WriteGlobalConfig() error
func WriteProjectConfig ¶ added in v0.1.5
func WriteProjectConfig() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.