clusterdeployment

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(opts ...Option) *hivev1.ClusterDeployment

Build runs each of the functions passed in to generate the object.

Types

type Builder added in v1.0.5

type Builder interface {
	Build(opts ...Option) *hivev1.ClusterDeployment

	Options(opts ...Option) Builder

	GenericOptions(opts ...generic.Option) Builder
}

func BasicBuilder added in v1.0.5

func BasicBuilder() Builder

func FullBuilder added in v1.0.5

func FullBuilder(namespace, name string, typer runtime.ObjectTyper) Builder

type Option

type Option func(*hivev1.ClusterDeployment)

Option defines a function signature for any function that wants to be passed into Build

func Generic

func Generic(opt generic.Option) Option

Generic allows common functions applicable to all objects to be used as Options to Build

func Installed added in v1.0.6

func Installed() Option

func InstalledTimestamp added in v1.0.11

func InstalledTimestamp(instTime time.Time) Option

func WithClusterPoolReference added in v1.0.6

func WithClusterPoolReference(namespace, poolName, claimName string) Option

func WithClusterVersion added in v1.0.11

func WithClusterVersion(version string) Option

func WithCondition added in v1.0.1

func WithCondition(cond hivev1.ClusterDeploymentCondition) Option

WithCondition adds the specified condition to the ClusterDeployment

func WithHibernateAfter added in v1.0.11

func WithHibernateAfter(dur time.Duration) Option

func WithLabel added in v1.0.5

func WithLabel(key, value string) Option

WithLabel sets the specified label on the supplied object.

func WithName added in v1.0.5

func WithName(name string) Option

WithName sets the object.Name field when building an object with Build.

func WithNamespace added in v1.0.5

func WithNamespace(namespace string) Option

WithNamespace sets the object.Namespace field when building an object with Build.

func WithPowerState added in v1.0.7

func WithPowerState(powerState hivev1.ClusterPowerState) Option

func WithUnclaimedClusterPoolReference added in v1.0.7

func WithUnclaimedClusterPoolReference(namespace, poolName string) Option

Jump to

Keyboard shortcuts

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