Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultFilePath ¶
func PrintDriverInfo ¶
func PrintDriverInfo(verb string, driver DriverType, log log.Logger)
Types ¶
type CLI ¶
type CLI struct {
Driver Driver `json:"driver,omitempty"`
PreviousContext string `json:"previousContext,omitempty"`
Platform Platform `json:"platform,omitempty"`
TelemetryDisabled bool `json:"telemetryDisabled,omitempty"`
// contains filtered or unexported fields
}
func Read ¶
Read returns the current config by trying to read it from the given config path. It returns a new default config if there have been any errors during the read.
func (*CLI) ClearPlatform ¶
ClearPlatform resets the platform section of the config to its default. If the driver was set to platform, it is reset to helm since the platform is no longer available. Other driver settings (e.g. docker) are preserved.
type Driver ¶
type Driver struct {
// Type is the current driver type that is used, either helm, platform, or docker
Type DriverType `json:"type,omitempty"`
}
type DriverType ¶
type DriverType string
const ( DirName = ".vcluster" FileName = "config.json" HelmDriver DriverType = "helm" PlatformDriver DriverType = "platform" DockerDriver DriverType = "docker" )
func ParseDriverType ¶
func ParseDriverType(driver string) (DriverType, error)
type Platform ¶
type Platform struct {
metav1.TypeMeta `json:",inline"`
// VirtualClusterAccessKey will only be used as a fallback for older platforms and is deprecated.
VirtualClusterAccessKey string `json:"virtualClusterAccessKey,omitempty"`
// VirtualClusterAccessPointCertificates is a map of cached certificates for "access point" mode virtual clusters
VirtualClusterAccessPointCertificates map[string]VirtualClusterCertificatesEntry `json:"virtualClusterAccessPointCertificates,omitempty"`
// Host is the https endpoint of how to access loft
Host string `json:"host,omitempty"`
// LastInstallContext is the last install context
LastInstallContext string `json:"lastInstallContext,omitempty"`
// AccessKey is the access key for the given loft host
AccessKey string `json:"accesskey,omitempty"`
// Insecure specifies if the loft instance is insecure
Insecure bool `json:"insecure,omitempty"`
// CertificateAuthorityData is passed as certificate-authority-data to the platform config
CertificateAuthorityData []byte `json:"certificateAuthorityData,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.