hive

package
v0.0.0-...-ddb5be7 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterDeploymentAdditionalOptions

type ClusterDeploymentAdditionalOptions func(builder *ClusterDeploymentBuilder) (*ClusterDeploymentBuilder, error)

ClusterDeploymentAdditionalOptions additional options for ClusterDeployment object.

type ClusterDeploymentBuilder

type ClusterDeploymentBuilder struct {
	Definition *hiveV1.ClusterDeployment
	Object     *hiveV1.ClusterDeployment
	// contains filtered or unexported fields
}

ClusterDeploymentBuilder provides struct for the clusterdeployment object containing connection to the cluster and the clusterdeployment definitions.

func ListClusterDeploymentsInAllNamespaces

func ListClusterDeploymentsInAllNamespaces(
	apiClient *clients.Settings,
	options ...goclient.ListOptions) ([]*ClusterDeploymentBuilder, error)

ListClusterDeploymentsInAllNamespaces returns a cluster-wide clusterdeployment inventory.

func NewABMClusterDeploymentBuilder

func NewABMClusterDeploymentBuilder(
	apiClient *clients.Settings,
	name string,
	nsname string,
	clusterName string,
	baseDomain string,
	clusterInstallRef string,
	agentSelector metav1.LabelSelector) *ClusterDeploymentBuilder

NewABMClusterDeploymentBuilder creates a new instance of ClusterDeploymentBuilder with platform type set to agentBareMetal.

func NewClusterDeploymentByInstallRefBuilder

func NewClusterDeploymentByInstallRefBuilder(
	apiClient *clients.Settings,
	name string,
	nsname string,
	clusterName string,
	baseDomain string,
	clusterInstallRef hiveV1.ClusterInstallLocalReference,
	platform hiveV1.Platform) *ClusterDeploymentBuilder

NewClusterDeploymentByInstallRefBuilder creates a new instance of ClusterDeploymentBuilder with the provided install reference and platform.

func PullClusterDeployment

func PullClusterDeployment(apiClient *clients.Settings, name, nsname string) (*ClusterDeploymentBuilder, error)

PullClusterDeployment pulls existing clusterdeployment from cluster.

func (*ClusterDeploymentBuilder) Create

Create generates a clusterdeployment on the cluster.

func (*ClusterDeploymentBuilder) Delete

func (builder *ClusterDeploymentBuilder) Delete() error

Delete removes a clusterdeployment from the cluster.

func (*ClusterDeploymentBuilder) Exists

func (builder *ClusterDeploymentBuilder) Exists() bool

Exists checks if the defined clusterdeployment has already been created.

func (*ClusterDeploymentBuilder) Get

Get fetches the defined clusterdeployment from the cluster.

func (*ClusterDeploymentBuilder) Update

func (builder *ClusterDeploymentBuilder) Update(force bool) (*ClusterDeploymentBuilder, error)

Update modifies an existing clusterdeployment on the cluster.

func (*ClusterDeploymentBuilder) WithAdditionalAgentSelectorLabels

func (builder *ClusterDeploymentBuilder) WithAdditionalAgentSelectorLabels(
	agentSelector map[string]string) *ClusterDeploymentBuilder

WithAdditionalAgentSelectorLabels inserts additional labels into the clusterdeployment label selector.

func (*ClusterDeploymentBuilder) WithOptions

WithOptions creates ClusterDeployment with generic mutation options.

func (*ClusterDeploymentBuilder) WithPullSecret

func (builder *ClusterDeploymentBuilder) WithPullSecret(psName string) *ClusterDeploymentBuilder

WithPullSecret adds a pull-secret reference to the clusterdeployment.

type ClusterImageSetAdditionalOptions

type ClusterImageSetAdditionalOptions func(builder *ClusterImageSetBuilder) (*ClusterImageSetBuilder, error)

ClusterImageSetAdditionalOptions additional options for ClusterImageSet object.

type ClusterImageSetBuilder

type ClusterImageSetBuilder struct {
	Definition *hiveV1.ClusterImageSet
	Object     *hiveV1.ClusterImageSet
	// contains filtered or unexported fields
}

ClusterImageSetBuilder provides struct for the clusterimageset object containing connection to the cluster and the clusterimageset definitions.

func NewClusterImageSetBuilder

func NewClusterImageSetBuilder(apiClient *clients.Settings, name, releaseImage string) *ClusterImageSetBuilder

NewClusterImageSetBuilder creates a new instance of ClusterImageSetBuilder.

func PullClusterImageSet

func PullClusterImageSet(apiClient *clients.Settings, name string) (*ClusterImageSetBuilder, error)

PullClusterImageSet loads an existing clusterimageset into ClusterImageSetBuilder struct.

func (*ClusterImageSetBuilder) Create

func (builder *ClusterImageSetBuilder) Create() (*ClusterImageSetBuilder, error)

Create generates a clusterimageset on the cluster.

func (*ClusterImageSetBuilder) Delete

func (builder *ClusterImageSetBuilder) Delete() error

Delete removes a clusterimageset from the cluster.

func (*ClusterImageSetBuilder) Exists

func (builder *ClusterImageSetBuilder) Exists() bool

Exists checks if the defined clusterimageset has already been created.

func (*ClusterImageSetBuilder) Get

Get fetches the defined clusterimageset from the cluster.

func (*ClusterImageSetBuilder) Update

func (builder *ClusterImageSetBuilder) Update(force bool) (*ClusterImageSetBuilder, error)

Update modifies an existing clusterimageset on the cluster.

func (*ClusterImageSetBuilder) WithOptions

WithOptions creates ClusterDeployment with generic mutation options.

func (*ClusterImageSetBuilder) WithReleaseImage

func (builder *ClusterImageSetBuilder) WithReleaseImage(image string) *ClusterImageSetBuilder

WithReleaseImage sets the releaseImage for the clusterimageset.

type ConfigAdditionalOptions

type ConfigAdditionalOptions func(builder *ConfigBuilder) (*ConfigBuilder, error)

ConfigAdditionalOptions additional options for HiveConfig object.

type ConfigBuilder

type ConfigBuilder struct {
	Definition *hiveV1.HiveConfig
	Object     *hiveV1.HiveConfig
	// contains filtered or unexported fields
}

ConfigBuilder provides struct for the HiveConfig object containing connection to the cluster and the HiveConfig definitions.

func NewConfigBuilder

func NewConfigBuilder(apiClient *clients.Settings, name string) *ConfigBuilder

NewConfigBuilder creates a new instance of ConfigBuilder.

func PullConfig

func PullConfig(apiClient *clients.Settings, name string) (*ConfigBuilder, error)

PullConfig loads an existing HiveConfig into ConfigBuilder struct.

func (*ConfigBuilder) Delete

func (builder *ConfigBuilder) Delete() error

Delete removes a HiveConfig from the cluster.

func (*ConfigBuilder) Exists

func (builder *ConfigBuilder) Exists() bool

Exists checks if the defined HiveConfig has already been created.

func (*ConfigBuilder) Get

func (builder *ConfigBuilder) Get() (*hiveV1.HiveConfig, error)

Get fetches the defined HiveConfig from the cluster.

func (*ConfigBuilder) Update

func (builder *ConfigBuilder) Update() (*ConfigBuilder, error)

Update modifies an existing HiveConfig on the cluster.

func (*ConfigBuilder) WithOptions

func (builder *ConfigBuilder) WithOptions(options ...ConfigAdditionalOptions) *ConfigBuilder

WithOptions creates ClusterDeployment with generic mutation options.

Jump to

Keyboard shortcuts

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