Documentation ¶
Index ¶
- func IsInsufficientPermissions(err error) bool
- func IsInvalidConfig(err error) bool
- func IsInvalidProvider(err error) bool
- func IsNoResources(err error) bool
- func IsNotFound(err error) bool
- type Cluster
- type Collection
- type Config
- type FakeService
- type GetOptions
- type Interface
- type PatchOptions
- type PatchSpec
- type Resource
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInsufficientPermissions ¶ added in v1.47.0
IsInsufficientPermissions asserts insufficientPermissionsError.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsInvalidProvider ¶
IsInvalidProvider asserts invalidProviderError.
Types ¶
type Cluster ¶ added in v1.21.0
type Cluster struct { Cluster *capiv1alpha3.Cluster AWSCluster *infrastructurev1alpha3.AWSCluster AzureCluster *capzv1alpha3.AzureCluster }
Cluster abstracts away provider-specific node pool resources.
type Collection ¶ added in v1.21.0
type Collection struct {
Items []Cluster
}
Collection wraps a list of clusters.
func (*Collection) Object ¶ added in v1.21.0
func (cc *Collection) Object() runtime.Object
type FakeService ¶
type FakeService struct {
// contains filtered or unexported fields
}
func NewFakeService ¶
func NewFakeService(storage []runtime.Object) *FakeService
func (*FakeService) Get ¶
func (ms *FakeService) Get(ctx context.Context, options GetOptions) (Resource, error)
func (*FakeService) Patch ¶ added in v1.58.0
func (ms *FakeService) Patch(ctx context.Context, object runtime.Object, options PatchOptions) error
type GetOptions ¶
type Interface ¶
type Interface interface { Get(context.Context, GetOptions) (Resource, error) Patch(context.Context, runtime.Object, PatchOptions) error }
Interface represents the contract for the clusters service. Using this instead of a regular 'struct' makes mocking the service in tests much simpler.
type PatchOptions ¶ added in v1.58.0
type PatchOptions struct {
PatchSpecs []PatchSpec
}
Click to show internal directories.
Click to hide internal directories.