Documentation ¶
Index ¶
- func Clientset(cluster *platformv1.Cluster, credential *platformv1.ClusterCredential) (kubernetes.Interface, error)
- type Cluster
- func (c *Cluster) Clientset() (kubernetes.Interface, error)
- func (c *Cluster) ClientsetForBootstrap() (kubernetes.Interface, error)
- func (c *Cluster) Host() (string, error)
- func (c *Cluster) HostForBootstrap() (string, error)
- func (c *Cluster) PlatformClientsetForBootstrap() (platformversionedclient.PlatformV1Interface, error)
- func (c *Cluster) RESTConfig(config *rest.Config) (*rest.Config, error)
- func (c *Cluster) RESTConfigForBootstrap(config *rest.Config) (*rest.Config, error)
- func (c *Cluster) RESTConfigForClientX509(config *rest.Config, clientCertData []byte, clientKeyData []byte) (*rest.Config, error)
- func (c *Cluster) RegistryClientsetForBootstrap() (registryversionedclient.RegistryV1Interface, error)
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) ClientsetForBootstrap ¶
func (c *Cluster) ClientsetForBootstrap() (kubernetes.Interface, error)
func (*Cluster) HostForBootstrap ¶
func (*Cluster) PlatformClientsetForBootstrap ¶ added in v1.6.0
func (c *Cluster) PlatformClientsetForBootstrap() (platformversionedclient.PlatformV1Interface, error)
func (*Cluster) RESTConfig ¶
func (*Cluster) RESTConfigForBootstrap ¶
func (*Cluster) RESTConfigForClientX509 ¶
func (*Cluster) RegistryClientsetForBootstrap ¶ added in v1.7.0
func (c *Cluster) RegistryClientsetForBootstrap() (registryversionedclient.RegistryV1Interface, error)
Click to show internal directories.
Click to hide internal directories.