Documentation ¶
Index ¶
- type Platform
- func (platform *Platform) ApplyCRD(namespace string, specs ...k8s.CRD) error
- func (platform *Platform) ApplySpecs(namespace string, specs ...string) error
- func (platform *Platform) ApplyText(namespace string, specs ...string) error
- func (platform *Platform) Clone(vm types.VM, config *konfigadm.Config) (types.Machine, error)
- func (platform *Platform) CreateIngressCertificate(subDomain string) (*certs.Certificate, error)
- func (platform *Platform) CreateInternalCertificate(service string, namespace string, clusterDomain string) (*certs.Certificate, error)
- func (platform *Platform) CreateTLSSecret(namespace, subDomain, secretName string) error
- func (platform *Platform) ExposeIngress(namespace, service string, port int, annotations map[string]string) error
- func (platform *Platform) ExposeIngressTLS(namespace, service string, port int) error
- func (platform *Platform) GetAWSS3Client() (*s3.S3, error)
- func (platform *Platform) GetAWSSession() (*session.Session, error)
- func (platform *Platform) GetBinary(name string) deps.BinaryFunc
- func (platform *Platform) GetBinaryWithEnv(name string, env map[string]string) deps.BinaryFunc
- func (platform *Platform) GetBinaryWithKubeConfig(binary string) deps.BinaryFunc
- func (platform *Platform) GetCA() certs.CertificateAuthority
- func (platform *Platform) GetConsulClient() api.Consul
- func (platform *Platform) GetDNSClient() dns.Client
- func (platform *Platform) GetIngressCA() certs.CertificateAuthority
- func (platform *Platform) GetKubeConfig() (string, error)
- func (platform *Platform) GetKubeConfigBytes() ([]byte, error)
- func (platform *Platform) GetKubectl() deps.BinaryFunc
- func (platform *Platform) GetMasterIPs() []string
- func (platform *Platform) GetNSXClient() (*nsx.NSXClient, error)
- func (platform *Platform) GetOrCreateBucket(name string) error
- func (platform *Platform) GetResourceByName(file string, pkg string) (string, error)
- func (platform *Platform) GetResourcesByDir(path string, pkg string) (map[string]http.File, error)
- func (platform *Platform) GetS3Client() (*minio.Client, error)
- func (platform *Platform) Init()
- func (platform *Platform) OpenDB(namespace, clusterName, databaseName string) (*pg.DB, error)
- func (platform *Platform) ReadIngressCACertString() string
- func (platform *Platform) ResetMasterConnection()
- func (platform *Platform) Template(file string, pkg string) (string, error)
- func (platform *Platform) WaitFor() error
- func (platform *Platform) WaitForNamespace(ns string, timeout time.Duration)
- func (platform *Platform) WithField(key string, value interface{}) *Platform
- func (platform *Platform) WithLogOutput(output io.Writer) *Platform
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Platform ¶
type Platform struct { Cluster types.Cluster types.PlatformConfig logger.Logger k8s.Client // Terminating is true if the cluster is in a terminating state Terminating bool // contains filtered or unexported fields }
func (*Platform) ApplySpecs ¶
func (*Platform) CreateIngressCertificate ¶
func (platform *Platform) CreateIngressCertificate(subDomain string) (*certs.Certificate, error)
func (*Platform) CreateInternalCertificate ¶
func (*Platform) CreateTLSSecret ¶
func (*Platform) ExposeIngress ¶
func (*Platform) ExposeIngressTLS ¶
func (*Platform) GetAWSSession ¶
func (*Platform) GetBinaryWithEnv ¶
func (*Platform) GetBinaryWithKubeConfig ¶
func (platform *Platform) GetBinaryWithKubeConfig(binary string) deps.BinaryFunc
func (*Platform) GetCA ¶
func (platform *Platform) GetCA() certs.CertificateAuthority
GetCA retrieves the cert.CertificateAuthority for the given platform, initialising it (platform.ca) if it hasn't been read from the specified config (platform.CA) yet.
func (*Platform) GetConsulClient ¶
func (*Platform) GetDNSClient ¶
func (*Platform) GetIngressCA ¶
func (platform *Platform) GetIngressCA() certs.CertificateAuthority
func (*Platform) GetKubeConfig ¶
GetKubeConfig gets the path to the admin kubeconfig, creating it if necessary
func (*Platform) GetKubeConfigBytes ¶
func (*Platform) GetKubectl ¶
func (platform *Platform) GetKubectl() deps.BinaryFunc
func (*Platform) GetMasterIPs ¶
GetMasterIPs returns a list of all healthy master IP's
func (*Platform) GetOrCreateBucket ¶
func (*Platform) GetResourceByName ¶
func (*Platform) GetResourcesByDir ¶
func (*Platform) ReadIngressCACertString ¶
func (*Platform) ResetMasterConnection ¶
func (platform *Platform) ResetMasterConnection()
func (*Platform) WaitForNamespace ¶
Click to show internal directories.
Click to hide internal directories.