alpha

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package alpha implements clusterctl alpha functionality.

Index

Constants

View Source
const MachineDeployment = "machinedeployment"

MachineDeployment is a resource type.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Rollout() Rollout
}

Client is the alpha client.

func New

func New(options ...Option) Client

New returns a Client.

type Option

type Option func(*alphaClient)

Option is a configuration option supplied to New.

func InjectRollout

func InjectRollout(rollout Rollout) Option

InjectRollout allows to override the rollout implementation to use.

type Rollout

type Rollout interface {
	ObjectRestarter(cluster.Proxy, corev1.ObjectReference) error
	ObjectPauser(cluster.Proxy, corev1.ObjectReference) error
	ObjectResumer(cluster.Proxy, corev1.ObjectReference) error
	ObjectRollbacker(cluster.Proxy, corev1.ObjectReference, int64) error
}

Rollout defines the behavior of a rollout implementation.

Jump to

Keyboard shortcuts

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