Documentation
¶
Index ¶
- type ClusterDeploymentAdditionalOptions
- type ClusterDeploymentBuilder
- func ListClusterDeploymentsInAllNamespaces(apiClient *clients.Settings, options ...goclient.ListOptions) ([]*ClusterDeploymentBuilder, error)
- func NewABMClusterDeploymentBuilder(apiClient *clients.Settings, name string, nsname string, clusterName string, ...) *ClusterDeploymentBuilder
- func NewClusterDeploymentByInstallRefBuilder(apiClient *clients.Settings, name string, nsname string, clusterName string, ...) *ClusterDeploymentBuilder
- func PullClusterDeployment(apiClient *clients.Settings, name, nsname string) (*ClusterDeploymentBuilder, error)
- func (builder *ClusterDeploymentBuilder) Create() (*ClusterDeploymentBuilder, error)
- func (builder *ClusterDeploymentBuilder) Delete() error
- func (builder *ClusterDeploymentBuilder) Exists() bool
- func (builder *ClusterDeploymentBuilder) Get() (*hiveV1.ClusterDeployment, error)
- func (builder *ClusterDeploymentBuilder) Update(force bool) (*ClusterDeploymentBuilder, error)
- func (builder *ClusterDeploymentBuilder) WithAdditionalAgentSelectorLabels(agentSelector map[string]string) *ClusterDeploymentBuilder
- func (builder *ClusterDeploymentBuilder) WithOptions(options ...ClusterDeploymentAdditionalOptions) *ClusterDeploymentBuilder
- func (builder *ClusterDeploymentBuilder) WithPullSecret(psName string) *ClusterDeploymentBuilder
- type ClusterImageSetAdditionalOptions
- type ClusterImageSetBuilder
- func (builder *ClusterImageSetBuilder) Create() (*ClusterImageSetBuilder, error)
- func (builder *ClusterImageSetBuilder) Delete() error
- func (builder *ClusterImageSetBuilder) Exists() bool
- func (builder *ClusterImageSetBuilder) Get() (*hiveV1.ClusterImageSet, error)
- func (builder *ClusterImageSetBuilder) Update(force bool) (*ClusterImageSetBuilder, error)
- func (builder *ClusterImageSetBuilder) WithOptions(options ...ClusterImageSetAdditionalOptions) *ClusterImageSetBuilder
- func (builder *ClusterImageSetBuilder) WithReleaseImage(image string) *ClusterImageSetBuilder
- type ConfigAdditionalOptions
- type ConfigBuilder
- func (builder *ConfigBuilder) Delete() error
- func (builder *ConfigBuilder) Exists() bool
- func (builder *ConfigBuilder) Get() (*hiveV1.HiveConfig, error)
- func (builder *ConfigBuilder) Update() (*ConfigBuilder, error)
- func (builder *ConfigBuilder) WithOptions(options ...ConfigAdditionalOptions) *ConfigBuilder
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 ¶
func (builder *ClusterDeploymentBuilder) Create() (*ClusterDeploymentBuilder, error)
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 ¶
func (builder *ClusterDeploymentBuilder) Get() (*hiveV1.ClusterDeployment, error)
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 ¶
func (builder *ClusterDeploymentBuilder) WithOptions( options ...ClusterDeploymentAdditionalOptions) *ClusterDeploymentBuilder
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 ¶
func (builder *ClusterImageSetBuilder) Get() (*hiveV1.ClusterImageSet, error)
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 ¶
func (builder *ClusterImageSetBuilder) WithOptions( options ...ClusterImageSetAdditionalOptions) *ClusterImageSetBuilder
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.