Documentation ¶
Index ¶
- type DefaultProvider
- func (p *DefaultProvider) Get(ctx context.Context, name string, namespace string) (*capiv1beta1.MachineDeployment, error)
- func (p *DefaultProvider) List(ctx context.Context, selector *metav1.LabelSelector) ([]*capiv1beta1.MachineDeployment, error)
- func (p *DefaultProvider) Update(ctx context.Context, machineDeployment *capiv1beta1.MachineDeployment) error
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultProvider ¶
type DefaultProvider struct {
// contains filtered or unexported fields
}
func NewDefaultProvider ¶
func NewDefaultProvider(_ context.Context, kubeClient client.Client) *DefaultProvider
func (*DefaultProvider) Get ¶
func (p *DefaultProvider) Get(ctx context.Context, name string, namespace string) (*capiv1beta1.MachineDeployment, error)
func (*DefaultProvider) List ¶
func (p *DefaultProvider) List(ctx context.Context, selector *metav1.LabelSelector) ([]*capiv1beta1.MachineDeployment, error)
func (*DefaultProvider) Update ¶
func (p *DefaultProvider) Update(ctx context.Context, machineDeployment *capiv1beta1.MachineDeployment) error
type Provider ¶
type Provider interface { Get(context.Context, string, string) (*capiv1beta1.MachineDeployment, error) List(context.Context, *metav1.LabelSelector) ([]*capiv1beta1.MachineDeployment, error) Update(context.Context, *capiv1beta1.MachineDeployment) error }
Click to show internal directories.
Click to hide internal directories.