config

package
v1.6.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2024 License: GPL-3.0 Imports: 9 Imported by: 2

Documentation

Index

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 GetGlobalString(key string) string

func GetString

func GetString(key string) string

func GetToken added in v0.1.5

func GetToken() string

func Init

func Init()

func IsActionsInit added in v1.2.0

func IsActionsInit(projectSlug string) bool

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 MaybeGetMap(key string) map[string]interface{}

func MaybeGetString added in v0.2.5

func MaybeGetString(key string) string

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

func ReadProjectConfig() ([]byte, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL