Documentation
¶
Index ¶
- Variables
- type Client
- type ExternalConfig
- type KubernetesClient
- func (k *KubernetesClient) ApplyDeployment(ctx context.Context, namespace, name string, intent domain.Intent) error
- func (k *KubernetesClient) ApplyVolume(ctx context.Context, namespace, name string, intent VolumeIntent) error
- func (k *KubernetesClient) DeleteDeployment(ctx context.Context, namespace, name string) error
- func (k *KubernetesClient) EnsureWorkspace(ctx context.Context, namespace string) error
- func (k *KubernetesClient) GarbageCollectConfiguration(ctx context.Context, namespace, owner string) error
- func (k *KubernetesClient) ObserveDeployment(ctx context.Context, namespace, name string) (Observation, error)
- func (k *KubernetesClient) ObserveVolume(ctx context.Context, namespace, name string) (VolumeObservation, error)
- func (k *KubernetesClient) Preflight(ctx context.Context) error
- type Observation
- type VolumeIntent
- type VolumeObservation
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrOwnershipConflict = errors.New("runtime object is not owned by the control plane")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
EnsureWorkspace(context.Context, string) error
ApplyVolume(context.Context, string, string, VolumeIntent) error
ObserveVolume(context.Context, string, string) (VolumeObservation, error)
ApplyDeployment(context.Context, string, string, domain.Intent) error
ObserveDeployment(context.Context, string, string) (Observation, error)
DeleteDeployment(context.Context, string, string) error
GarbageCollectConfiguration(context.Context, string, string) error
}
type ExternalConfig ¶
type KubernetesClient ¶
type KubernetesClient struct {
// contains filtered or unexported fields
}
func NewInClusterClient ¶
func NewKubernetesClient ¶
func NewKubernetesClient(external ExternalConfig, fieldManager string, timeout time.Duration) (*KubernetesClient, error)
func (*KubernetesClient) ApplyDeployment ¶
func (*KubernetesClient) ApplyVolume ¶
func (k *KubernetesClient) ApplyVolume(ctx context.Context, namespace, name string, intent VolumeIntent) error
func (*KubernetesClient) DeleteDeployment ¶
func (k *KubernetesClient) DeleteDeployment(ctx context.Context, namespace, name string) error
func (*KubernetesClient) EnsureWorkspace ¶
func (k *KubernetesClient) EnsureWorkspace(ctx context.Context, namespace string) error
func (*KubernetesClient) GarbageCollectConfiguration ¶
func (k *KubernetesClient) GarbageCollectConfiguration(ctx context.Context, namespace, owner string) error
func (*KubernetesClient) ObserveDeployment ¶
func (k *KubernetesClient) ObserveDeployment(ctx context.Context, namespace, name string) (Observation, error)
func (*KubernetesClient) ObserveVolume ¶
func (k *KubernetesClient) ObserveVolume(ctx context.Context, namespace, name string) (VolumeObservation, error)
type Observation ¶
type VolumeIntent ¶
Click to show internal directories.
Click to hide internal directories.