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 GetOptions
- type Interface
- type PatchOptions
- type PatchSpec
- type Resource
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInsufficientPermissions ¶
IsInsufficientPermissions asserts insufficientPermissionsError.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsInvalidProvider ¶
IsInvalidProvider asserts invalidProviderError.
Types ¶
type Cluster ¶
type Cluster struct { Cluster *capi.Cluster // helm-based clusters ClusterApp *application.App DefaultAppsApp *application.App // infrastructure provider cluster AWSCluster *infrastructure.AWSCluster AzureCluster *capz.AzureCluster }
Cluster contains the resources needed to represent a cluster on any supported provider.
func (*Cluster) ClientObject ¶
type Collection ¶
type Collection struct {
Items []Cluster
}
Collection wraps a list of clusters.
func (*Collection) Object ¶
func (cc *Collection) Object() runtime.Object
type GetOptions ¶
type Interface ¶
type Interface interface { Get(context.Context, GetOptions) (Resource, error) Patch(context.Context, client.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 ¶
type PatchOptions struct {
PatchSpecs []PatchSpec
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.