vela_cli

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 VelaCliType = "vela-cli"

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 HostPath

type HostPath struct {
	MountPath *string `json:"mountPath"`
	Name      *string `json:"name"`
	Path      *string `json:"path"`
	Type      *string `json:"type"`
}

HostPath struct for HostPath

func NewHostPath

func NewHostPath() *HostPath

NewHostPath is short for NewHostPathWithDefault which instantiates a new HostPath 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 NewHostPathEmpty

func NewHostPathEmpty() *HostPath

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

func NewHostPathList

func NewHostPathList(ps ...*HostPath) []HostPath

NewHostPaths converts a list HostPath pointers to objects. This is helpful when the SetHostPath requires a list of objects

func NewHostPathWith

func NewHostPathWith(mountPath string, name string, path string, type_ string) *HostPath

NewHostPathWith instantiates a new HostPath 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 NewHostPathWithDefault

func NewHostPathWithDefault() *HostPath

NewHostPathWithDefault instantiates a new HostPath 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 (*HostPath) GetMountPath

func (o *HostPath) GetMountPath() string

GetMountPath returns the MountPath field value

func (*HostPath) GetMountPathOk

func (o *HostPath) GetMountPathOk() (*string, bool)

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

func (*HostPath) GetName

func (o *HostPath) GetName() string

GetName returns the Name field value

func (*HostPath) GetNameOk

func (o *HostPath) GetNameOk() (*string, bool)

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

func (*HostPath) GetPath

func (o *HostPath) GetPath() string

GetPath returns the Path field value

func (*HostPath) GetPathOk

func (o *HostPath) GetPathOk() (*string, bool)

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

func (*HostPath) GetType

func (o *HostPath) GetType() string

GetType returns the Type field value

func (*HostPath) GetTypeOk

func (o *HostPath) GetTypeOk() (*string, bool)

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

func (HostPath) MarshalJSON

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

func (*HostPath) SetMountPath

func (o *HostPath) SetMountPath(v string) *HostPath

SetMountPath sets field value

func (*HostPath) SetName

func (o *HostPath) SetName(v string) *HostPath

SetName sets field value

func (*HostPath) SetPath

func (o *HostPath) SetPath(v string) *HostPath

SetPath sets field value

func (*HostPath) SetType

func (o *HostPath) SetType(v string) *HostPath

SetType sets field value

func (HostPath) ToMap

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

func (*HostPath) Validate

func (o *HostPath) Validate() error

Validate validates this HostPath 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 Items

type Items struct {
	Key  *string `json:"key"`
	Mode *int32  `json:"mode"`
	Path *string `json:"path"`
}

Items struct for Items

func NewItems

func NewItems() *Items

NewItems is short for NewItemsWithDefault which instantiates a new Items 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 NewItemsEmpty

func NewItemsEmpty() *Items

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

func NewItemsList

func NewItemsList(ps ...*Items) []Items

NewItemss converts a list Items pointers to objects. This is helpful when the SetItems requires a list of objects

func NewItemsWith

func NewItemsWith(key string, mode int32, path string) *Items

NewItemsWith instantiates a new Items 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 NewItemsWithDefault

func NewItemsWithDefault() *Items

NewItemsWithDefault instantiates a new Items 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 (*Items) GetKey

func (o *Items) GetKey() string

GetKey returns the Key field value

func (*Items) GetKeyOk

func (o *Items) GetKeyOk() (*string, bool)

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

func (*Items) GetMode

func (o *Items) GetMode() int32

GetMode returns the Mode field value

func (*Items) GetModeOk

func (o *Items) GetModeOk() (*int32, bool)

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

func (*Items) GetPath

func (o *Items) GetPath() string

GetPath returns the Path field value

func (*Items) GetPathOk

func (o *Items) GetPathOk() (*string, bool)

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

func (Items) MarshalJSON

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

func (*Items) SetKey

func (o *Items) SetKey(v string) *Items

SetKey sets field value

func (*Items) SetMode

func (o *Items) SetMode(v int32) *Items

SetMode sets field value

func (*Items) SetPath

func (o *Items) SetPath(v string) *Items

SetPath sets field value

func (Items) ToMap

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

func (*Items) Validate

func (o *Items) Validate() error

Validate validates this Items 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 NullableHostPath

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

func NewNullableHostPath

func NewNullableHostPath(val *HostPath) *NullableHostPath

func (*NullableHostPath) Get

func (v *NullableHostPath) Get() *HostPath

func (*NullableHostPath) IsSet

func (v *NullableHostPath) IsSet() bool

func (NullableHostPath) MarshalJSON

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

func (*NullableHostPath) Set

func (v *NullableHostPath) Set(val *HostPath)

func (*NullableHostPath) UnmarshalJSON

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

func (*NullableHostPath) Unset

func (v *NullableHostPath) Unset()

type NullableItems

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

func NewNullableItems

func NewNullableItems(val *Items) *NullableItems

func (*NullableItems) Get

func (v *NullableItems) Get() *Items

func (*NullableItems) IsSet

func (v *NullableItems) IsSet() bool

func (NullableItems) MarshalJSON

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

func (*NullableItems) Set

func (v *NullableItems) Set(val *Items)

func (*NullableItems) UnmarshalJSON

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

func (*NullableItems) Unset

func (v *NullableItems) Unset()

type NullableSecret

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

func NewNullableSecret

func NewNullableSecret(val *Secret) *NullableSecret

func (*NullableSecret) Get

func (v *NullableSecret) Get() *Secret

func (*NullableSecret) IsSet

func (v *NullableSecret) IsSet() bool

func (NullableSecret) MarshalJSON

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

func (*NullableSecret) Set

func (v *NullableSecret) Set(val *Secret)

func (*NullableSecret) UnmarshalJSON

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

func (*NullableSecret) Unset

func (v *NullableSecret) Unset()

type NullableStorage

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

func NewNullableStorage

func NewNullableStorage(val *Storage) *NullableStorage

func (*NullableStorage) Get

func (v *NullableStorage) Get() *Storage

func (*NullableStorage) IsSet

func (v *NullableStorage) IsSet() bool

func (NullableStorage) MarshalJSON

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

func (*NullableStorage) Set

func (v *NullableStorage) Set(val *Storage)

func (*NullableStorage) UnmarshalJSON

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

func (*NullableStorage) Unset

func (v *NullableStorage) Unset()

type NullableVelaCliSpec

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

func NewNullableVelaCliSpec

func NewNullableVelaCliSpec(val *VelaCliSpec) *NullableVelaCliSpec

func (*NullableVelaCliSpec) Get

func (v *NullableVelaCliSpec) Get() *VelaCliSpec

func (*NullableVelaCliSpec) IsSet

func (v *NullableVelaCliSpec) IsSet() bool

func (NullableVelaCliSpec) MarshalJSON

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

func (*NullableVelaCliSpec) Set

func (v *NullableVelaCliSpec) Set(val *VelaCliSpec)

func (*NullableVelaCliSpec) UnmarshalJSON

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

func (*NullableVelaCliSpec) Unset

func (v *NullableVelaCliSpec) Unset()

type Secret

type Secret struct {
	DefaultMode *int32  `json:"defaultMode"`
	Items       []Items `json:"items,omitempty"`
	MountPath   *string `json:"mountPath"`
	Name        *string `json:"name"`
	SecretName  *string `json:"secretName"`
	SubPath     *string `json:"subPath,omitempty"`
}

Secret struct for Secret

func NewSecret

func NewSecret() *Secret

NewSecret is short for NewSecretWithDefault which instantiates a new Secret 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 NewSecretEmpty

func NewSecretEmpty() *Secret

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

func NewSecretList

func NewSecretList(ps ...*Secret) []Secret

NewSecrets converts a list Secret pointers to objects. This is helpful when the SetSecret requires a list of objects

func NewSecretWith

func NewSecretWith(defaultMode int32, mountPath string, name string, secretName string) *Secret

NewSecretWith instantiates a new Secret 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 NewSecretWithDefault

func NewSecretWithDefault() *Secret

NewSecretWithDefault instantiates a new Secret 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 (*Secret) GetDefaultMode

func (o *Secret) GetDefaultMode() int32

GetDefaultMode returns the DefaultMode field value

func (*Secret) GetDefaultModeOk

func (o *Secret) GetDefaultModeOk() (*int32, bool)

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

func (*Secret) GetItems

func (o *Secret) GetItems() []Items

GetItems returns the Items field value if set, zero value otherwise.

func (*Secret) GetItemsOk

func (o *Secret) GetItemsOk() ([]Items, bool)

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

func (*Secret) GetMountPath

func (o *Secret) GetMountPath() string

GetMountPath returns the MountPath field value

func (*Secret) GetMountPathOk

func (o *Secret) GetMountPathOk() (*string, bool)

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

func (*Secret) GetName

func (o *Secret) GetName() string

GetName returns the Name field value

func (*Secret) GetNameOk

func (o *Secret) GetNameOk() (*string, bool)

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

func (*Secret) GetSecretName

func (o *Secret) GetSecretName() string

GetSecretName returns the SecretName field value

func (*Secret) GetSecretNameOk

func (o *Secret) GetSecretNameOk() (*string, bool)

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

func (*Secret) GetSubPath

func (o *Secret) GetSubPath() string

GetSubPath returns the SubPath field value if set, zero value otherwise.

func (*Secret) GetSubPathOk

func (o *Secret) GetSubPathOk() (*string, bool)

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

func (*Secret) HasItems

func (o *Secret) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*Secret) HasSubPath

func (o *Secret) HasSubPath() bool

HasSubPath returns a boolean if a field has been set.

func (Secret) MarshalJSON

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

func (*Secret) SetDefaultMode

func (o *Secret) SetDefaultMode(v int32) *Secret

SetDefaultMode sets field value

func (*Secret) SetItems

func (o *Secret) SetItems(v []Items) *Secret

SetItems gets a reference to the given []Items and assigns it to the items field. Items:

func (*Secret) SetMountPath

func (o *Secret) SetMountPath(v string) *Secret

SetMountPath sets field value

func (*Secret) SetName

func (o *Secret) SetName(v string) *Secret

SetName sets field value

func (*Secret) SetSecretName

func (o *Secret) SetSecretName(v string) *Secret

SetSecretName sets field value

func (*Secret) SetSubPath

func (o *Secret) SetSubPath(v string) *Secret

SetSubPath gets a reference to the given string and assigns it to the subPath field. SubPath:

func (Secret) ToMap

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

func (*Secret) Validate

func (o *Secret) Validate() error

Validate validates this Secret 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 Storage

type Storage struct {
	// Declare host path type storage
	HostPath []HostPath `json:"hostPath,omitempty"`
	// Mount Secret type storage
	Secret []Secret `json:"secret,omitempty"`
}

Storage struct for Storage

func NewStorage

func NewStorage() *Storage

NewStorage is short for NewStorageWithDefault which instantiates a new Storage 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 NewStorageEmpty

func NewStorageEmpty() *Storage

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

func NewStorageList

func NewStorageList(ps ...*Storage) []Storage

NewStorages converts a list Storage pointers to objects. This is helpful when the SetStorage requires a list of objects

func NewStorageWith

func NewStorageWith() *Storage

NewStorageWith instantiates a new Storage 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 NewStorageWithDefault

func NewStorageWithDefault() *Storage

NewStorageWithDefault instantiates a new Storage 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 (*Storage) GetHostPath

func (o *Storage) GetHostPath() []HostPath

GetHostPath returns the HostPath field value if set, zero value otherwise.

func (*Storage) GetHostPathOk

func (o *Storage) GetHostPathOk() ([]HostPath, bool)

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

func (*Storage) GetSecret

func (o *Storage) GetSecret() []Secret

GetSecret returns the Secret field value if set, zero value otherwise.

func (*Storage) GetSecretOk

func (o *Storage) GetSecretOk() ([]Secret, bool)

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

func (*Storage) HasHostPath

func (o *Storage) HasHostPath() bool

HasHostPath returns a boolean if a field has been set.

func (*Storage) HasSecret

func (o *Storage) HasSecret() bool

HasSecret returns a boolean if a field has been set.

func (Storage) MarshalJSON

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

func (*Storage) SetHostPath

func (o *Storage) SetHostPath(v []HostPath) *Storage

SetHostPath gets a reference to the given []HostPath and assigns it to the hostPath field. HostPath: Declare host path type storage

func (*Storage) SetSecret

func (o *Storage) SetSecret(v []Secret) *Storage

SetSecret gets a reference to the given []Secret and assigns it to the secret field. Secret: Mount Secret type storage

func (Storage) ToMap

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

func (*Storage) Validate

func (o *Storage) Validate() error

Validate validates this Storage 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 VelaCliSpec

type VelaCliSpec struct {
	// Specify the name of the addon.
	AddonName *string `json:"addonName"`
	// Specify the vela command
	Command []string `json:"command"`
	// Specify the image
	Image *string `json:"image"`
	// specify serviceAccountName want to use
	ServiceAccountName *string  `json:"serviceAccountName"`
	Storage            *Storage `json:"storage,omitempty"`
}

VelaCliSpec struct for VelaCliSpec

func NewVelaCliSpec

func NewVelaCliSpec() *VelaCliSpec

NewVelaCliSpec is short for NewVelaCliSpecWithDefault which instantiates a new VelaCliSpec 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 NewVelaCliSpecEmpty

func NewVelaCliSpecEmpty() *VelaCliSpec

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

func NewVelaCliSpecList

func NewVelaCliSpecList(ps ...*VelaCliSpec) []VelaCliSpec

NewVelaCliSpecs converts a list VelaCliSpec pointers to objects. This is helpful when the SetVelaCliSpec requires a list of objects

func NewVelaCliSpecWith

func NewVelaCliSpecWith(addonName string, command []string, image string, serviceAccountName string) *VelaCliSpec

NewVelaCliSpecWith instantiates a new VelaCliSpec 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 NewVelaCliSpecWithDefault

func NewVelaCliSpecWithDefault() *VelaCliSpec

NewVelaCliSpecWithDefault instantiates a new VelaCliSpec 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 (VelaCliSpec) MarshalJSON

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

func (VelaCliSpec) ToMap

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

type VelaCliWorkflowStep

type VelaCliWorkflowStep struct {
	Base       apis.WorkflowStepBase
	Properties VelaCliSpec
}

func VelaCli

func VelaCli(name string) *VelaCliWorkflowStep

func (*VelaCliWorkflowStep) Alias

func (*VelaCliWorkflowStep) Build

func (*VelaCliWorkflowStep) DefType

func (v *VelaCliWorkflowStep) DefType() string

func (*VelaCliWorkflowStep) DependsOn

func (v *VelaCliWorkflowStep) DependsOn(dependsOn []string) *VelaCliWorkflowStep

func (*VelaCliWorkflowStep) FromWorkflowStep

func (v *VelaCliWorkflowStep) FromWorkflowStep(from v1beta1.WorkflowStep) (*VelaCliWorkflowStep, error)

func (*VelaCliWorkflowStep) FromWorkflowSubStep

func (v *VelaCliWorkflowStep) FromWorkflowSubStep(from common.WorkflowSubStep) (*VelaCliWorkflowStep, error)

func (*VelaCliWorkflowStep) GetAddonName

func (o *VelaCliWorkflowStep) GetAddonName() string

GetAddonName returns the AddonName field value

func (*VelaCliWorkflowStep) GetAddonNameOk

func (o *VelaCliWorkflowStep) GetAddonNameOk() (*string, bool)

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

func (*VelaCliWorkflowStep) GetCommand

func (o *VelaCliWorkflowStep) GetCommand() []string

GetCommand returns the Command field value

func (*VelaCliWorkflowStep) GetCommandOk

func (o *VelaCliWorkflowStep) GetCommandOk() ([]string, bool)

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

func (*VelaCliWorkflowStep) GetImage

func (o *VelaCliWorkflowStep) GetImage() string

GetImage returns the Image field value

func (*VelaCliWorkflowStep) GetImageOk

func (o *VelaCliWorkflowStep) GetImageOk() (*string, bool)

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

func (*VelaCliWorkflowStep) GetServiceAccountName

func (o *VelaCliWorkflowStep) GetServiceAccountName() string

GetServiceAccountName returns the ServiceAccountName field value

func (*VelaCliWorkflowStep) GetServiceAccountNameOk

func (o *VelaCliWorkflowStep) GetServiceAccountNameOk() (*string, bool)

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

func (*VelaCliWorkflowStep) GetStorage

func (o *VelaCliWorkflowStep) GetStorage() Storage

GetStorage returns the Storage field value if set, zero value otherwise.

func (*VelaCliWorkflowStep) GetStorageOk

func (o *VelaCliWorkflowStep) GetStorageOk() (*Storage, bool)

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

func (*VelaCliWorkflowStep) HasStorage

func (o *VelaCliWorkflowStep) HasStorage() bool

HasStorage returns a boolean if a field has been set.

func (*VelaCliWorkflowStep) If

func (*VelaCliWorkflowStep) Inputs

func (*VelaCliWorkflowStep) Outputs

func (*VelaCliWorkflowStep) SetAddonName

func (o *VelaCliWorkflowStep) SetAddonName(v string) *VelaCliWorkflowStep

SetAddonName sets field value

func (*VelaCliWorkflowStep) SetCommand

func (o *VelaCliWorkflowStep) SetCommand(v []string) *VelaCliWorkflowStep

SetCommand sets field value

func (*VelaCliWorkflowStep) SetImage

SetImage sets field value

func (*VelaCliWorkflowStep) SetServiceAccountName

func (o *VelaCliWorkflowStep) SetServiceAccountName(v string) *VelaCliWorkflowStep

SetServiceAccountName sets field value

func (*VelaCliWorkflowStep) SetStorage

SetStorage gets a reference to the given Storage and assigns it to the storage field. Storage:

func (*VelaCliWorkflowStep) Timeout

func (v *VelaCliWorkflowStep) Timeout(timeout string) *VelaCliWorkflowStep

func (*VelaCliWorkflowStep) Validate

func (o *VelaCliWorkflowStep) Validate() error

Validate validates this VelaCliSpec 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 (*VelaCliWorkflowStep) WorkflowStepName

func (v *VelaCliWorkflowStep) WorkflowStepName() string

Jump to

Keyboard shortcuts

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