share_cloud_resource

package
v0.0.0-...-3d8ba93 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ShareCloudResourceType = "share-cloud-resource"

Variables

This section is empty.

Functions

func FromWorkflowStep

func FromWorkflowStep(from v1beta1.WorkflowStep) (apis.WorkflowStep, error)

func FromWorkflowSubStep

func FromWorkflowSubStep(from common.WorkflowSubStep) (apis.WorkflowStep, error)

Types

type NullablePlacements

type NullablePlacements struct {
	// contains filtered or unexported fields
}

func NewNullablePlacements

func NewNullablePlacements(val *Placements) *NullablePlacements

func (*NullablePlacements) Get

func (v *NullablePlacements) Get() *Placements

func (*NullablePlacements) IsSet

func (v *NullablePlacements) IsSet() bool

func (NullablePlacements) MarshalJSON

func (v NullablePlacements) MarshalJSON() ([]byte, error)

func (*NullablePlacements) Set

func (v *NullablePlacements) Set(val *Placements)

func (*NullablePlacements) UnmarshalJSON

func (v *NullablePlacements) UnmarshalJSON(src []byte) error

func (*NullablePlacements) Unset

func (v *NullablePlacements) Unset()

type NullableShareCloudResourceSpec

type NullableShareCloudResourceSpec struct {
	// contains filtered or unexported fields
}

func (*NullableShareCloudResourceSpec) Get

func (*NullableShareCloudResourceSpec) IsSet

func (NullableShareCloudResourceSpec) MarshalJSON

func (v NullableShareCloudResourceSpec) MarshalJSON() ([]byte, error)

func (*NullableShareCloudResourceSpec) Set

func (*NullableShareCloudResourceSpec) UnmarshalJSON

func (v *NullableShareCloudResourceSpec) UnmarshalJSON(src []byte) error

func (*NullableShareCloudResourceSpec) Unset

func (v *NullableShareCloudResourceSpec) Unset()

type Placements

type Placements struct {
	Cluster   *string `json:"cluster,omitempty"`
	Namespace *string `json:"namespace,omitempty"`
}

Placements struct for Placements

func NewPlacements

func NewPlacements() *Placements

NewPlacements is short for NewPlacementsWithDefault which instantiates a new Placements object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func NewPlacementsEmpty

func NewPlacementsEmpty() *Placements

NewPlacementsEmpty instantiates a new Placements object with no properties set. This constructor will not assign any default values to properties.

func NewPlacementsList

func NewPlacementsList(ps ...*Placements) []Placements

NewPlacementss converts a list Placements pointers to objects. This is helpful when the SetPlacements requires a list of objects

func NewPlacementsWith

func NewPlacementsWith() *Placements

NewPlacementsWith instantiates a new Placements object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed

func NewPlacementsWithDefault

func NewPlacementsWithDefault() *Placements

NewPlacementsWithDefault instantiates a new Placements object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Placements) GetCluster

func (o *Placements) GetCluster() string

GetCluster returns the Cluster field value if set, zero value otherwise.

func (*Placements) GetClusterOk

func (o *Placements) GetClusterOk() (*string, bool)

GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Placements) GetNamespace

func (o *Placements) GetNamespace() string

GetNamespace returns the Namespace field value if set, zero value otherwise.

func (*Placements) GetNamespaceOk

func (o *Placements) GetNamespaceOk() (*string, bool)

GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Placements) HasCluster

func (o *Placements) HasCluster() bool

HasCluster returns a boolean if a field has been set.

func (*Placements) HasNamespace

func (o *Placements) HasNamespace() bool

HasNamespace returns a boolean if a field has been set.

func (Placements) MarshalJSON

func (o Placements) MarshalJSON() ([]byte, error)

func (*Placements) SetCluster

func (o *Placements) SetCluster(v string) *Placements

SetCluster gets a reference to the given string and assigns it to the cluster field. Cluster:

func (*Placements) SetNamespace

func (o *Placements) SetNamespace(v string) *Placements

SetNamespace gets a reference to the given string and assigns it to the namespace field. Namespace:

func (Placements) ToMap

func (o Placements) ToMap() (map[string]interface{}, error)

func (*Placements) Validate

func (o *Placements) Validate() error

Validate validates this Placements 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set

type ShareCloudResourceSpec

type ShareCloudResourceSpec struct {
	// Declare the name of the env in policy
	Env *string `json:"env"`
	// Declare the location to bind
	Placements []Placements `json:"placements"`
	// Declare the name of the env-binding policy, if empty, the first env-binding policy will be used
	Policy *string `json:"policy"`
}

ShareCloudResourceSpec struct for ShareCloudResourceSpec

func NewShareCloudResourceSpec

func NewShareCloudResourceSpec() *ShareCloudResourceSpec

NewShareCloudResourceSpec is short for NewShareCloudResourceSpecWithDefault which instantiates a new ShareCloudResourceSpec object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func NewShareCloudResourceSpecEmpty

func NewShareCloudResourceSpecEmpty() *ShareCloudResourceSpec

NewShareCloudResourceSpecEmpty instantiates a new ShareCloudResourceSpec object with no properties set. This constructor will not assign any default values to properties.

func NewShareCloudResourceSpecList

func NewShareCloudResourceSpecList(ps ...*ShareCloudResourceSpec) []ShareCloudResourceSpec

NewShareCloudResourceSpecs converts a list ShareCloudResourceSpec pointers to objects. This is helpful when the SetShareCloudResourceSpec requires a list of objects

func NewShareCloudResourceSpecWith

func NewShareCloudResourceSpecWith(env string, placements []Placements, policy string) *ShareCloudResourceSpec

NewShareCloudResourceSpecWith instantiates a new ShareCloudResourceSpec object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed

func NewShareCloudResourceSpecWithDefault

func NewShareCloudResourceSpecWithDefault() *ShareCloudResourceSpec

NewShareCloudResourceSpecWithDefault instantiates a new ShareCloudResourceSpec object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (ShareCloudResourceSpec) MarshalJSON

func (o ShareCloudResourceSpec) MarshalJSON() ([]byte, error)

func (ShareCloudResourceSpec) ToMap

func (o ShareCloudResourceSpec) ToMap() (map[string]interface{}, error)

type ShareCloudResourceWorkflowStep

type ShareCloudResourceWorkflowStep struct {
	Base       apis.WorkflowStepBase
	Properties ShareCloudResourceSpec
}

func ShareCloudResource

func ShareCloudResource(name string) *ShareCloudResourceWorkflowStep

func (*ShareCloudResourceWorkflowStep) Alias

func (*ShareCloudResourceWorkflowStep) Build

func (*ShareCloudResourceWorkflowStep) DefType

func (*ShareCloudResourceWorkflowStep) DependsOn

func (*ShareCloudResourceWorkflowStep) FromWorkflowStep

func (*ShareCloudResourceWorkflowStep) FromWorkflowSubStep

func (*ShareCloudResourceWorkflowStep) GetEnv

GetEnv returns the Env field value

func (*ShareCloudResourceWorkflowStep) GetEnvOk

func (o *ShareCloudResourceWorkflowStep) GetEnvOk() (*string, bool)

GetEnvOk returns a tuple with the Env field value and a boolean to check if the value has been set.

func (*ShareCloudResourceWorkflowStep) GetPlacements

func (o *ShareCloudResourceWorkflowStep) GetPlacements() []Placements

GetPlacements returns the Placements field value

func (*ShareCloudResourceWorkflowStep) GetPlacementsOk

func (o *ShareCloudResourceWorkflowStep) GetPlacementsOk() ([]Placements, bool)

GetPlacementsOk returns a tuple with the Placements field value and a boolean to check if the value has been set.

func (*ShareCloudResourceWorkflowStep) GetPolicy

func (o *ShareCloudResourceWorkflowStep) GetPolicy() string

GetPolicy returns the Policy field value

func (*ShareCloudResourceWorkflowStep) GetPolicyOk

func (o *ShareCloudResourceWorkflowStep) GetPolicyOk() (*string, bool)

GetPolicyOk returns a tuple with the Policy field value and a boolean to check if the value has been set.

func (*ShareCloudResourceWorkflowStep) If

func (*ShareCloudResourceWorkflowStep) Inputs

func (*ShareCloudResourceWorkflowStep) Outputs

func (*ShareCloudResourceWorkflowStep) SetEnv

SetEnv sets field value

func (*ShareCloudResourceWorkflowStep) SetPlacements

SetPlacements sets field value

func (*ShareCloudResourceWorkflowStep) SetPolicy

SetPolicy sets field value

func (*ShareCloudResourceWorkflowStep) Timeout

func (*ShareCloudResourceWorkflowStep) Validate

func (o *ShareCloudResourceWorkflowStep) Validate() error

Validate validates this ShareCloudResourceSpec 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set

func (*ShareCloudResourceWorkflowStep) WorkflowStepName

func (s *ShareCloudResourceWorkflowStep) WorkflowStepName() string

Jump to

Keyboard shortcuts

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