v1

package

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clientset

func Clientset(cluster *platformv1.Cluster, credential *platformv1.ClusterCredential) (kubernetes.Interface, error)

Types

type Cluster

type Cluster struct {
	*platformv1.Cluster
	ClusterCredential   *platformv1.ClusterCredential
	IsCredentialChanged bool
}

func GetCluster

func GetCluster(ctx context.Context, platformClient platformversionedclient.PlatformV1Interface, cluster *platformv1.Cluster) (*Cluster, error)

func GetClusterByName

func GetClusterByName(ctx context.Context, platformClient platformversionedclient.PlatformV1Interface, name string) (*Cluster, error)

func (*Cluster) Clientset

func (c *Cluster) Clientset() (kubernetes.Interface, error)

func (*Cluster) ClientsetForBootstrap

func (c *Cluster) ClientsetForBootstrap() (kubernetes.Interface, error)

func (*Cluster) Host

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

func (*Cluster) HostForBootstrap

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

func (*Cluster) PlatformClientsetForBootstrap added in v1.6.0

func (c *Cluster) PlatformClientsetForBootstrap() (platformversionedclient.PlatformV1Interface, error)

func (*Cluster) RESTConfig

func (c *Cluster) RESTConfig(config *rest.Config) (*rest.Config, error)

func (*Cluster) RESTConfigForBootstrap

func (c *Cluster) RESTConfigForBootstrap(config *rest.Config) (*rest.Config, error)

func (*Cluster) RESTConfigForClientX509

func (c *Cluster) RESTConfigForClientX509(config *rest.Config, clientCertData []byte,
	clientKeyData []byte) (*rest.Config, error)

func (*Cluster) RegistryClientsetForBootstrap added in v1.7.0

func (c *Cluster) RegistryClientsetForBootstrap() (registryversionedclient.RegistryV1Interface, error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL