Documentation ¶
Index ¶
- type Cluster
- func (g *Cluster) AddFinalizer(ctx context.Context, capiCluster *capi.Cluster, finalizer string) error
- func (g *Cluster) Get(ctx context.Context, namespacedName types.NamespacedName) (*capi.Cluster, error)
- func (g *Cluster) GetAWSCluster(ctx context.Context, namespacedName types.NamespacedName) (*capa.AWSCluster, error)
- func (g *Cluster) GetAWSClusterRoleIdentity(ctx context.Context, namespacedName types.NamespacedName) (*capa.AWSClusterRoleIdentity, error)
- func (g *Cluster) GetManagementCluster(ctx context.Context) (*capi.Cluster, error)
- func (g *Cluster) IsManagementCluster(ctx context.Context, cluster *capi.Cluster) bool
- func (g *Cluster) Patch(ctx context.Context, cluster *capi.Cluster, patch client.Patch) (*capi.Cluster, error)
- func (g *Cluster) RemoveFinalizer(ctx context.Context, capiCluster *capi.Cluster, finalizer string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
func NewCluster ¶
func NewCluster(client client.Client, managementCluster types.NamespacedName) *Cluster
NewCluster returns a new Cluster client
func (*Cluster) AddFinalizer ¶
func (g *Cluster) AddFinalizer(ctx context.Context, capiCluster *capi.Cluster, finalizer string) error
AddFinalizer adds the given finalizer to the cluster
func (*Cluster) Get ¶
func (g *Cluster) Get(ctx context.Context, namespacedName types.NamespacedName) (*capi.Cluster, error)
Get retrieves a Cluster based on the given namespace/name
func (*Cluster) GetAWSCluster ¶
func (g *Cluster) GetAWSCluster(ctx context.Context, namespacedName types.NamespacedName) (*capa.AWSCluster, error)
GetAWSCluster retrieves an AWSCluster based on the provided namespace/name
func (*Cluster) GetAWSClusterRoleIdentity ¶ added in v0.1.2
func (g *Cluster) GetAWSClusterRoleIdentity(ctx context.Context, namespacedName types.NamespacedName) (*capa.AWSClusterRoleIdentity, error)
GetAWSCluster retrieves an AWSCluster based on the provided namespace/name
func (*Cluster) GetManagementCluster ¶
GetManagementCluster retrieves the Cluster for the management cluster namespace/name provided at client creation
func (*Cluster) IsManagementCluster ¶
IsManagementCluster checks if the given cluster matches the namespace/name of the management cluster provided on client creation
Click to show internal directories.
Click to hide internal directories.