scope

package
v0.0.0-...-824f246 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterScope

type ClusterScope struct {
	Logger      *logr.Logger
	Cluster     *clusterv1.Cluster
	HCCluster   *infrav1alpha1.HuaweiCloudCluster
	Credentials *basic.Credentials
	// contains filtered or unexported fields
}

ClusterScope defines the basic context for an actuator to operate upon.

func NewClusterScope

func NewClusterScope(params ClusterScopeParams) (*ClusterScope, error)

NewClusterScope creates a new Scope from the supplied parameters. This is meant to be called for each reconcile iteration.

func (*ClusterScope) Close

func (s *ClusterScope) Close() error

func (*ClusterScope) PatchObject

func (s *ClusterScope) PatchObject() error

func (*ClusterScope) Region

func (s *ClusterScope) Region() string

Region returns the cluster region.

func (*ClusterScope) VPC

VPC returns the cluster VPC.

type ClusterScopeParams

type ClusterScopeParams struct {
	Client      client.Client
	Logger      *logr.Logger
	Cluster     *clusterv1.Cluster
	HCCluster   *infrav1alpha1.HuaweiCloudCluster
	Credentials *basic.Credentials
}

ClusterScopeParams defines the input parameters used to create a new Scope.

Jump to

Keyboard shortcuts

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