Documentation
¶
Index ¶
- Variables
- func ExistsLocal() bool
- func GetGlobalDirectory() string
- func GlobalInitializeConfig(mc Config) error
- func InitializeConfig(mc Config, configFile string) error
- func UpsertGlobalConfig(mc Config) error
- func UpsertGlobalOrganizationID(organizationID string) error
- func UpsertGlobalProjectID(projectID string) error
- func UpsertLocalSecret(secret Secret) error
- func UpsertOrganizationID(organizationID string) error
- func UpsertProjectID(projectID string) error
- type Config
- type Manifest
- type Secret
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ManifestConfigFile = ".hx" ManifestSecretFile = ".hxkey" )
View Source
var FS fsutil.FileSystem = fsutil.NewFileSystem()
Functions ¶
func ExistsLocal ¶
func ExistsLocal() bool
func GetGlobalDirectory ¶
func GetGlobalDirectory() string
func GlobalInitializeConfig ¶
func InitializeConfig ¶
func UpsertGlobalConfig ¶
func UpsertGlobalProjectID ¶
func UpsertLocalSecret ¶
func UpsertOrganizationID ¶
func UpsertProjectID ¶
Types ¶
type Config ¶
type Config struct {
ProjectName *string `json:"project_name,omitempty"`
ProjectId *string `json:"project_id,omitempty"`
ProjectAlternateId *string `json:"project_alternate_id,omitempty"`
AppName *string `json:"app_name,omitempty"`
AppId *string `json:"app_id,omitempty"`
AppAlternateId *string `json:"app_alternate_id,omitempty"`
OrganizationId string `json:"organization_id,omitempty"`
HyphenAccessToken *string `json:"hyphen_access_token,omitempty"`
HyphenRefreshToken *string `json:"hyphen_refresh_token,omitempty"`
HypenIDToken *string `json:"hyphen_id_token,omitempty"`
ExpiryTime *int64 `json:"expiry_time,omitempty"`
HyphenAPIKey *string `json:"hyphen_api_key,omitempty"`
Database interface{} `json:"database,omitempty"`
}
func RestoreConfig ¶
func RestoreConfigFromFile ¶
func RestoreGlobalConfig ¶ added in v0.12.6
func RestoreLocalConfig ¶ added in v0.12.6
type Secret ¶
type Secret struct {
SecretKeyId int64 `json:"secret_key_id"`
SecretKey string `json:"secret_key"`
}
func InitializeSecret ¶
func RestoreSecretFromFile ¶
Click to show internal directories.
Click to hide internal directories.