package
Version:
v0.133.0
Opens a new window with list of versions in this module.
Published: Oct 3, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func CreateNewConfig() error
CreateNewConfig creates a new config file.
type Auth struct {
ClientID string `yaml:"clientId"`
ClientSecret string `yaml:"clientSecret"`
RedirectURI string `yaml:"redirectUri"`
IssuerURL string `yaml:"issuerUrl"`
}
Auth is an authentication configuration.
type C struct {
Version string `yaml:"version"`
EndpointURL string `yaml:"endpointUrl"`
Auth Auth `yaml:"auth"`
Context Context `yaml:"context"`
}
C is a config file.
func LoadOrCreate() (*C, error)
LoadOrCreate loads the config.
Validate validates the config.
type Context struct {
OrganizationID string `yaml:"organizationId"`
ProjectID string `yaml:"projectId"`
}
Context is a context configuration.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.