Documentation
¶
Index ¶
- Variables
- func AddAppToLocalProject(appDir string) error
- func ExistsInFolder(folder string) bool
- 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 UpsertLocalWorkspace(workspace Project) error
- func UpsertOrganizationID(organizationID string) error
- func UpsertProjectID(projectID string) error
- type Config
- type Manifest
- type Project
- 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 AddAppToLocalProject ¶ added in v0.13.0
func ExistsInFolder ¶ added in v0.13.0
func ExistsLocal ¶
func ExistsLocal() bool
func GetGlobalDirectory ¶
func GetGlobalDirectory() string
func GlobalInitializeConfig ¶
func InitializeConfig ¶
func UpsertGlobalConfig ¶
func UpsertGlobalProjectID ¶
func UpsertLocalSecret ¶
func UpsertLocalWorkspace ¶ added in v0.13.0
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"`
IsMonorepo *bool `json:"is_monorepo,omitempty"`
Project *Project `json:"project,omitempty"`
Database interface{} `json:"database,omitempty"`
}
func RestoreConfig ¶
func RestoreConfigFromFile ¶
func RestoreGlobalConfig ¶ added in v0.12.6
func RestoreLocalConfig ¶ added in v0.12.6
func (*Config) IsMonorepoProject ¶ added in v0.13.0
type Manifest ¶
func LocalInitialize ¶
It will detect if its an app of a monorepo, and will not create the .hxkey
func RestoreFromFile ¶
func (*Manifest) GetSecretKey ¶
type Secret ¶
type Secret struct {
SecretKeyId int64 `json:"secret_key_id"`
SecretKey string `json:"secret_key"`
}
func InitializeSecret ¶
func RestoreSecretFromFile ¶
func RestoreSecretFromMonorepo ¶ added in v0.13.0
Click to show internal directories.
Click to hide internal directories.