v1

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 13 Imported by: 0

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)

Jump to

Keyboard shortcuts

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