pkeworkflowadapter

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	cluster.CommonCluster
}

func (*Cluster) GetAWSClient

func (c *Cluster) GetAWSClient() (*session.Session, error)

func (*Cluster) GetBootstrapCommand

func (c *Cluster) GetBootstrapCommand(nodePoolName, url string, urlInsecure bool, token string, labels []string, version string) (string, error)

func (*Cluster) GetID

func (c *Cluster) GetID() uint

func (*Cluster) GetK8sConfig

func (c *Cluster) GetK8sConfig() ([]byte, error)

func (*Cluster) GetK8sUserConfig

func (c *Cluster) GetK8sUserConfig() ([]byte, error)

func (*Cluster) GetKubernetesContainerRuntime

func (c *Cluster) GetKubernetesContainerRuntime() (string, error)

func (*Cluster) GetKubernetesNetworkProvider

func (c *Cluster) GetKubernetesNetworkProvider() (string, error)

func (*Cluster) GetKubernetesVersion

func (c *Cluster) GetKubernetesVersion() (string, error)

func (*Cluster) GetNetworkCloudProvider

func (c *Cluster) GetNetworkCloudProvider() (cloudProvider, vpcID string, subnets []string, err error)

func (*Cluster) GetNodePools

func (c *Cluster) GetNodePools() []pkeworkflow.NodePool

func (*Cluster) GetOrganizationId

func (c *Cluster) GetOrganizationId() uint

func (*Cluster) GetSshPublicKey

func (c *Cluster) GetSshPublicKey() (string, error)

func (*Cluster) SaveNetworkApiServerAddress

func (c *Cluster) SaveNetworkApiServerAddress(host, port string) error

func (*Cluster) SaveNetworkCloudProvider

func (c *Cluster) SaveNetworkCloudProvider(cloudProvider, vpcID string, subnets []string) error

type ClusterManagerAdapter

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

ClusterManagerAdapter provides an adapter for pkeworkflow.Clusters.

func NewClusterManagerAdapter

func NewClusterManagerAdapter(clusterManager *cluster.Manager) *ClusterManagerAdapter

NewClusterManagerAdapter creates a new ClusterManagerAdapter.

func (*ClusterManagerAdapter) GetCluster

GetCluster returns a Cluster.

type InternalSecretStore

type InternalSecretStore interface {
	// Get retrieves a secret from the store.
	Get(organizationID uint, secretID string) (*secret.SecretItemResponse, error)
}

InternalSecretStore is an interface for the internal secret store.

type SecretStore

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

SecretStore is a wrapper for the internal secret store.

func NewSecretStore

func NewSecretStore(secrets InternalSecretStore) *SecretStore

NewSecretStore returns a wrapper for the internal secret store.

func (*SecretStore) GetSecret

func (s *SecretStore) GetSecret(organizationID uint, secretID string) (pkeworkflow.Secret, error)

type TokenGenerator

type TokenGenerator interface {
	GenerateClusterToken(orgID uint, clusterID uint) (string, string, error)
}

Jump to

Keyboard shortcuts

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