commoncluster

package
v0.0.0-...-e7c744b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonClusterGetter

type CommonClusterGetter struct {
	// contains filtered or unexported fields
}

func MakeCommonClusterGetter

func MakeCommonClusterGetter(secrets SecretStore, store pke.ClusterStore) CommonClusterGetter

func (CommonClusterGetter) GetByID

func (g CommonClusterGetter) GetByID(clusterID uint) (*VspherePkeCluster, error)

type SecretStore

type SecretStore interface {
	Get(organizationID uint, secretID string) (*secret.SecretItemResponse, error)
	GetByName(organizationID uint, secretName string) (*secret.SecretItemResponse, error)
}

type VspherePkeCluster

type VspherePkeCluster struct {
	// contains filtered or unexported fields
}

func (*VspherePkeCluster) AddDefaultsToUpdate

func (a *VspherePkeCluster) AddDefaultsToUpdate(*pkgCluster.UpdateClusterRequest)

func (*VspherePkeCluster) CheckEqualityToUpdate

func (a *VspherePkeCluster) CheckEqualityToUpdate(*pkgCluster.UpdateClusterRequest) error

func (*VspherePkeCluster) CreateCluster

func (a *VspherePkeCluster) CreateCluster() error

func (*VspherePkeCluster) DeleteCluster

func (a *VspherePkeCluster) DeleteCluster() error

func (*VspherePkeCluster) DeleteFromDatabase

func (a *VspherePkeCluster) DeleteFromDatabase() error

func (*VspherePkeCluster) GetAPIEndpoint

func (a *VspherePkeCluster) GetAPIEndpoint() (string, error)

func (*VspherePkeCluster) GetCAHash

func (a *VspherePkeCluster) GetCAHash() (string, error)

func (*VspherePkeCluster) GetCloud

func (a *VspherePkeCluster) GetCloud() string

func (*VspherePkeCluster) GetConfigSecretId

func (a *VspherePkeCluster) GetConfigSecretId() string

func (*VspherePkeCluster) GetCreatedBy

func (a *VspherePkeCluster) GetCreatedBy() uint

func (*VspherePkeCluster) GetCurrentWorkflowID

func (a *VspherePkeCluster) GetCurrentWorkflowID() string

func (*VspherePkeCluster) GetDistribution

func (a *VspherePkeCluster) GetDistribution() string

func (*VspherePkeCluster) GetID

func (a *VspherePkeCluster) GetID() uint

func (*VspherePkeCluster) GetK8sConfig

func (a *VspherePkeCluster) GetK8sConfig() ([]byte, error)

func (*VspherePkeCluster) GetK8sUserConfig

func (a *VspherePkeCluster) GetK8sUserConfig() ([]byte, error)

func (*VspherePkeCluster) GetKubernetesUserName

func (a *VspherePkeCluster) GetKubernetesUserName() (string, error)

func (*VspherePkeCluster) GetLocation

func (a *VspherePkeCluster) GetLocation() string

func (*VspherePkeCluster) GetName

func (a *VspherePkeCluster) GetName() string

func (*VspherePkeCluster) GetOrganizationId

func (a *VspherePkeCluster) GetOrganizationId() uint

func (*VspherePkeCluster) GetPKEOnVsphereCluster

func (a *VspherePkeCluster) GetPKEOnVsphereCluster() pke.PKEOnVsphereCluster

func (*VspherePkeCluster) GetSecretId

func (a *VspherePkeCluster) GetSecretId() string

func (*VspherePkeCluster) GetSecretWithValidation

func (a *VspherePkeCluster) GetSecretWithValidation() (*secret.SecretItemResponse, error)

func (*VspherePkeCluster) GetSshSecretId

func (a *VspherePkeCluster) GetSshSecretId() string

func (*VspherePkeCluster) GetStatus

func (*VspherePkeCluster) GetUID

func (a *VspherePkeCluster) GetUID() string

func (*VspherePkeCluster) HasK8sConfig

func (a *VspherePkeCluster) HasK8sConfig() (bool, error)

HasK8sConfig returns true if the cluster's k8s config is available

func (*VspherePkeCluster) IsMasterReady

func (a *VspherePkeCluster) IsMasterReady() (bool, error)

func (*VspherePkeCluster) IsReady

func (a *VspherePkeCluster) IsReady() (bool, error)

func (*VspherePkeCluster) NeedAdminRights

func (a *VspherePkeCluster) NeedAdminRights() bool

func (*VspherePkeCluster) NodePoolExists

func (a *VspherePkeCluster) NodePoolExists(nodePoolName string) bool

func (*VspherePkeCluster) Persist

func (a *VspherePkeCluster) Persist() error

func (*VspherePkeCluster) RbacEnabled

func (a *VspherePkeCluster) RbacEnabled() bool

func (*VspherePkeCluster) RequiresSshPublicKey

func (a *VspherePkeCluster) RequiresSshPublicKey() bool

func (*VspherePkeCluster) SaveConfigSecretId

func (a *VspherePkeCluster) SaveConfigSecretId(secretID string) error

func (*VspherePkeCluster) SaveSshSecretId

func (a *VspherePkeCluster) SaveSshSecretId(string) error

func (*VspherePkeCluster) SetStatus

func (a *VspherePkeCluster) SetStatus(status string, statusMessage string) error

func (*VspherePkeCluster) UpdateCluster

func (*VspherePkeCluster) UpdateNodePools

func (*VspherePkeCluster) ValidateCreationFields

func (a *VspherePkeCluster) ValidateCreationFields(r *pkgCluster.CreateClusterRequest) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL