Documentation ¶
Index ¶
- Variables
- func AsConfigMap(cfg *apiv1.Config) (*corev1.ConfigMap, error)
- func CLIConfigFile() (string, error)
- func Get(ctx context.Context, getter kclient.Reader) (*apiv1.Config, error)
- func Incomplete(ctx context.Context, getter kclient.Reader) (*apiv1.Config, error)
- func Init(ctx context.Context, client kclient.Client) error
- func IsDockerDesktop(ctx context.Context, getter kclient.Reader) (bool, error)
- func KubeconfigDir() (string, error)
- func RemoveServer(cfg *CLIConfig, serverAddress string) error
- func Set(ctx context.Context, client kclient.Client, cfg *apiv1.Config) error
- func TestSetGet(ctx context.Context, client kclient.Client, cfg *apiv1.Config) (*apiv1.Config, error)
- func UnmarshalAndComplete(ctx context.Context, cm *corev1.ConfigMap, getter kclient.Reader) (*apiv1.Config, error)
- type AuthConfig
- type CLIConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ClusterDomainDefault = ".local.oss-acorn.io" InternalClusterDomainDefault = "svc.cluster.local" AcornDNSEndpointDefault = "https://oss-dns.acrn.io/v1" AcornDNSStateDefault = "auto" // LetsEncryptOptionDefault is the default state for the Let's Encrypt integration LetsEncryptOptionDefault = "disabled" // DefaultImageCheckIntervalDefault is the default value for the DefaultImageCheckInterval field DefaultImageCheckIntervalDefault = "5m" // Default HttpEndpointPattern set to enable Let's Encrypt DefaultHttpEndpointPattern = "{{hashConcat 8 .Container .App .Namespace | truncate}}.{{.ClusterDomain}}" // Features FeatureImageAllowRules = "image-allow-rules" FeatureDefaults = map[string]bool{ FeatureImageAllowRules: false, } )
Functions ¶
func CLIConfigFile ¶
func Incomplete ¶
func IsDockerDesktop ¶
func KubeconfigDir ¶
func RemoveServer ¶
func TestSetGet ¶
func TestSetGet(ctx context.Context, client kclient.Client, cfg *apiv1.Config) (*apiv1.Config, error)
TestSetGet will do everything that Set does, but instead of persisting the resulting config it will return the merged and completed config. This is as though you did Set() followed by Get() except that the state in Kubernetes will not actually change.
Types ¶
type AuthConfig ¶
type AuthConfig types.AuthConfig
func (AuthConfig) MarshalJSON ¶
func (a AuthConfig) MarshalJSON() ([]byte, error)
func (*AuthConfig) UnmarshalJSON ¶
func (a *AuthConfig) UnmarshalJSON(data []byte) error
type CLIConfig ¶
type CLIConfig struct { Auths map[string]AuthConfig `json:"auths,omitempty"` CredentialsStore string `json:"credsStore,omitempty"` CredentialHelpers map[string]string `json:"credHelpers,omitempty"` AcornServers []string `json:"acornServers,omitempty"` Kubeconfigs map[string]string `json:"-"` ProjectAliases map[string]string `json:"projectAliases,omitempty"` CurrentProject string `json:"currentProject,omitempty"` // TestProjectURLs is used for testing to return EndpointURLs for remote projects TestProjectURLs map[string]string `json:"-"` // contains filtered or unexported fields }
func ReadCLIConfig ¶
func (*CLIConfig) GetAuthConfigs ¶
func (c *CLIConfig) GetAuthConfigs() map[string]types.AuthConfig
func (*CLIConfig) GetFilename ¶
Click to show internal directories.
Click to hide internal directories.