Documentation
¶
Index ¶
- Constants
- func FromComponent(from common.ApplicationComponent) (apis.Component, error)
- type K8sObject
- func (o *K8sObject) GetCluster() string
- func (o *K8sObject) GetClusterOk() (*string, bool)
- func (o *K8sObject) GetGroup() string
- func (o *K8sObject) GetGroupOk() (*string, bool)
- func (o *K8sObject) GetLabelSelector() map[string]string
- func (o *K8sObject) GetLabelSelectorOk() (map[string]string, bool)
- func (o *K8sObject) GetName() string
- func (o *K8sObject) GetNameOk() (*string, bool)
- func (o *K8sObject) GetNamespace() string
- func (o *K8sObject) GetNamespaceOk() (*string, bool)
- func (o *K8sObject) GetResource() string
- func (o *K8sObject) GetResourceOk() (*string, bool)
- func (o *K8sObject) HasCluster() bool
- func (o *K8sObject) HasGroup() bool
- func (o *K8sObject) HasLabelSelector() bool
- func (o *K8sObject) HasName() bool
- func (o *K8sObject) HasNamespace() bool
- func (o *K8sObject) HasResource() bool
- func (o K8sObject) MarshalJSON() ([]byte, error)
- func (o *K8sObject) SetCluster(v string) *K8sObject
- func (o *K8sObject) SetGroup(v string) *K8sObject
- func (o *K8sObject) SetLabelSelector(v map[string]string) *K8sObject
- func (o *K8sObject) SetName(v string) *K8sObject
- func (o *K8sObject) SetNamespace(v string) *K8sObject
- func (o *K8sObject) SetResource(v string) *K8sObject
- func (o K8sObject) ToMap() (map[string]interface{}, error)
- func (o *K8sObject) Validate() error
- type NullableK8sObject
- type NullableRefObjectsSpec
- func (v *NullableRefObjectsSpec) Get() *RefObjectsSpec
- func (v *NullableRefObjectsSpec) IsSet() bool
- func (v NullableRefObjectsSpec) MarshalJSON() ([]byte, error)
- func (v *NullableRefObjectsSpec) Set(val *RefObjectsSpec)
- func (v *NullableRefObjectsSpec) UnmarshalJSON(src []byte) error
- func (v *NullableRefObjectsSpec) Unset()
- type RefObjectsComponent
- func (r *RefObjectsComponent) AddDependsOn(dependsOn string) *RefObjectsComponent
- func (r *RefObjectsComponent) Build() common.ApplicationComponent
- func (r *RefObjectsComponent) ComponentName() string
- func (r *RefObjectsComponent) DefType() string
- func (r *RefObjectsComponent) DependsOn(dependsOn []string) *RefObjectsComponent
- func (r *RefObjectsComponent) FromComponent(from common.ApplicationComponent) (*RefObjectsComponent, error)
- func (r *RefObjectsComponent) GetAllTraits() []apis.Trait
- func (o *RefObjectsComponent) GetObjects() []K8sObject
- func (o *RefObjectsComponent) GetObjectsOk() ([]K8sObject, bool)
- func (r *RefObjectsComponent) GetTrait(typ string) apis.Trait
- func (o *RefObjectsComponent) GetUrls() []string
- func (o *RefObjectsComponent) GetUrlsOk() ([]string, bool)
- func (o *RefObjectsComponent) HasObjects() bool
- func (o *RefObjectsComponent) HasUrls() bool
- func (r *RefObjectsComponent) Inputs(input common.StepInputs) *RefObjectsComponent
- func (r *RefObjectsComponent) Outputs(output common.StepOutputs) *RefObjectsComponent
- func (o *RefObjectsComponent) SetObjects(v []K8sObject) *RefObjectsComponent
- func (r *RefObjectsComponent) SetTraits(traits ...apis.Trait) *RefObjectsComponent
- func (o *RefObjectsComponent) SetUrls(v []string) *RefObjectsComponent
- func (o *RefObjectsComponent) Validate() error
- type RefObjectsSpec
Constants ¶
const RefObjectsType = "ref-objects"
Variables ¶
This section is empty.
Functions ¶
func FromComponent ¶
func FromComponent(from common.ApplicationComponent) (apis.Component, error)
Types ¶
type K8sObject ¶
type K8sObject struct { // If specified, fetch the Kubernetes objects from the cluster. Otherwise, fetch from the local cluster. Cluster *string `json:"cluster,omitempty"` // The group name for the Kubernetes objects Group *string `json:"group,omitempty"` // If specified, fetch the Kubernetes objects according to the label selector, exclusive to name LabelSelector map[string]string `json:"labelSelector,omitempty"` // If specified, fetch the Kubernetes objects with the name, exclusive to labelSelector Name *string `json:"name,omitempty"` // If specified, fetch the Kubernetes objects from the namespace. Otherwise, fetch from the application's namespace. Namespace *string `json:"namespace,omitempty"` // The resource type for the Kubernetes objects Resource *string `json:"resource,omitempty"` }
K8sObject struct for K8sObject
func NewK8sObject ¶
func NewK8sObject() *K8sObject
NewK8sObject is short for NewK8sObjectWithDefault which instantiates a new K8sObject 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 NewK8sObjectEmpty ¶
func NewK8sObjectEmpty() *K8sObject
NewK8sObjectEmpty instantiates a new K8sObject object with no properties set. This constructor will not assign any default values to properties.
func NewK8sObjectList ¶
NewK8sObjects converts a list K8sObject pointers to objects. This is helpful when the SetK8sObject requires a list of objects
func NewK8sObjectWith ¶
func NewK8sObjectWith() *K8sObject
NewK8sObjectWith instantiates a new K8sObject 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 NewK8sObjectWithDefault ¶
func NewK8sObjectWithDefault() *K8sObject
NewK8sObjectWithDefault instantiates a new K8sObject 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 (*K8sObject) GetCluster ¶
GetCluster returns the Cluster field value if set, zero value otherwise.
func (*K8sObject) GetClusterOk ¶
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 (*K8sObject) GetGroupOk ¶
GetGroupOk returns a tuple with the Group field value if set, nil otherwise and a boolean to check if the value has been set.
func (*K8sObject) GetLabelSelector ¶
GetLabelSelector returns the LabelSelector field value if set, zero value otherwise.
func (*K8sObject) GetLabelSelectorOk ¶
GetLabelSelectorOk returns a tuple with the LabelSelector field value if set, nil otherwise and a boolean to check if the value has been set.
func (*K8sObject) GetNameOk ¶
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (*K8sObject) GetNamespace ¶
GetNamespace returns the Namespace field value if set, zero value otherwise.
func (*K8sObject) GetNamespaceOk ¶
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 (*K8sObject) GetResource ¶
GetResource returns the Resource field value if set, zero value otherwise.
func (*K8sObject) GetResourceOk ¶
GetResourceOk returns a tuple with the Resource field value if set, nil otherwise and a boolean to check if the value has been set.
func (*K8sObject) HasCluster ¶
HasCluster returns a boolean if a field has been set.
func (*K8sObject) HasLabelSelector ¶
HasLabelSelector returns a boolean if a field has been set.
func (*K8sObject) HasNamespace ¶
HasNamespace returns a boolean if a field has been set.
func (*K8sObject) HasResource ¶
HasResource returns a boolean if a field has been set.
func (K8sObject) MarshalJSON ¶
func (*K8sObject) SetCluster ¶
SetCluster gets a reference to the given string and assigns it to the cluster field. Cluster: If specified, fetch the Kubernetes objects from the cluster. Otherwise, fetch from the local cluster.
func (*K8sObject) SetGroup ¶
SetGroup gets a reference to the given string and assigns it to the group field. Group: The group name for the Kubernetes objects
func (*K8sObject) SetLabelSelector ¶
SetLabelSelector gets a reference to the given map[string]string and assigns it to the labelSelector field. LabelSelector: If specified, fetch the Kubernetes objects according to the label selector, exclusive to name
func (*K8sObject) SetName ¶
SetName gets a reference to the given string and assigns it to the name field. Name: If specified, fetch the Kubernetes objects with the name, exclusive to labelSelector
func (*K8sObject) SetNamespace ¶
SetNamespace gets a reference to the given string and assigns it to the namespace field. Namespace: If specified, fetch the Kubernetes objects from the namespace. Otherwise, fetch from the application's namespace.
func (*K8sObject) SetResource ¶
SetResource gets a reference to the given string and assigns it to the resource field. Resource: The resource type for the Kubernetes objects
type NullableK8sObject ¶
type NullableK8sObject struct {
// contains filtered or unexported fields
}
func NewNullableK8sObject ¶
func NewNullableK8sObject(val *K8sObject) *NullableK8sObject
func (*NullableK8sObject) Get ¶
func (v *NullableK8sObject) Get() *K8sObject
func (*NullableK8sObject) IsSet ¶
func (v *NullableK8sObject) IsSet() bool
func (NullableK8sObject) MarshalJSON ¶
func (v NullableK8sObject) MarshalJSON() ([]byte, error)
func (*NullableK8sObject) Set ¶
func (v *NullableK8sObject) Set(val *K8sObject)
func (*NullableK8sObject) UnmarshalJSON ¶
func (v *NullableK8sObject) UnmarshalJSON(src []byte) error
func (*NullableK8sObject) Unset ¶
func (v *NullableK8sObject) Unset()
type NullableRefObjectsSpec ¶
type NullableRefObjectsSpec struct {
// contains filtered or unexported fields
}
func NewNullableRefObjectsSpec ¶
func NewNullableRefObjectsSpec(val *RefObjectsSpec) *NullableRefObjectsSpec
func (*NullableRefObjectsSpec) Get ¶
func (v *NullableRefObjectsSpec) Get() *RefObjectsSpec
func (*NullableRefObjectsSpec) IsSet ¶
func (v *NullableRefObjectsSpec) IsSet() bool
func (NullableRefObjectsSpec) MarshalJSON ¶
func (v NullableRefObjectsSpec) MarshalJSON() ([]byte, error)
func (*NullableRefObjectsSpec) Set ¶
func (v *NullableRefObjectsSpec) Set(val *RefObjectsSpec)
func (*NullableRefObjectsSpec) UnmarshalJSON ¶
func (v *NullableRefObjectsSpec) UnmarshalJSON(src []byte) error
func (*NullableRefObjectsSpec) Unset ¶
func (v *NullableRefObjectsSpec) Unset()
type RefObjectsComponent ¶
type RefObjectsComponent struct { Base apis.ComponentBase Properties RefObjectsSpec }
func RefObjects ¶
func RefObjects(name string) *RefObjectsComponent
func (*RefObjectsComponent) AddDependsOn ¶
func (r *RefObjectsComponent) AddDependsOn(dependsOn string) *RefObjectsComponent
func (*RefObjectsComponent) Build ¶
func (r *RefObjectsComponent) Build() common.ApplicationComponent
func (*RefObjectsComponent) ComponentName ¶
func (r *RefObjectsComponent) ComponentName() string
func (*RefObjectsComponent) DefType ¶
func (r *RefObjectsComponent) DefType() string
func (*RefObjectsComponent) DependsOn ¶
func (r *RefObjectsComponent) DependsOn(dependsOn []string) *RefObjectsComponent
func (*RefObjectsComponent) FromComponent ¶
func (r *RefObjectsComponent) FromComponent(from common.ApplicationComponent) (*RefObjectsComponent, error)
func (*RefObjectsComponent) GetAllTraits ¶
func (r *RefObjectsComponent) GetAllTraits() []apis.Trait
func (*RefObjectsComponent) GetObjects ¶
func (o *RefObjectsComponent) GetObjects() []K8sObject
GetObjects returns the Objects field value if set, zero value otherwise.
func (*RefObjectsComponent) GetObjectsOk ¶
func (o *RefObjectsComponent) GetObjectsOk() ([]K8sObject, bool)
GetObjectsOk returns a tuple with the Objects field value if set, nil otherwise and a boolean to check if the value has been set.
func (*RefObjectsComponent) GetTrait ¶
func (r *RefObjectsComponent) GetTrait(typ string) apis.Trait
func (*RefObjectsComponent) GetUrls ¶
func (o *RefObjectsComponent) GetUrls() []string
GetUrls returns the Urls field value if set, zero value otherwise.
func (*RefObjectsComponent) GetUrlsOk ¶
func (o *RefObjectsComponent) GetUrlsOk() ([]string, bool)
GetUrlsOk returns a tuple with the Urls field value if set, nil otherwise and a boolean to check if the value has been set.
func (*RefObjectsComponent) HasObjects ¶
func (o *RefObjectsComponent) HasObjects() bool
HasObjects returns a boolean if a field has been set.
func (*RefObjectsComponent) HasUrls ¶
func (o *RefObjectsComponent) HasUrls() bool
HasUrls returns a boolean if a field has been set.
func (*RefObjectsComponent) Inputs ¶
func (r *RefObjectsComponent) Inputs(input common.StepInputs) *RefObjectsComponent
func (*RefObjectsComponent) Outputs ¶
func (r *RefObjectsComponent) Outputs(output common.StepOutputs) *RefObjectsComponent
func (*RefObjectsComponent) SetObjects ¶
func (o *RefObjectsComponent) SetObjects(v []K8sObject) *RefObjectsComponent
SetObjects gets a reference to the given []K8sObject and assigns it to the objects field. Objects: If specified, application will fetch native Kubernetes objects according to the object description
func (*RefObjectsComponent) SetTraits ¶
func (r *RefObjectsComponent) SetTraits(traits ...apis.Trait) *RefObjectsComponent
func (*RefObjectsComponent) SetUrls ¶
func (o *RefObjectsComponent) SetUrls(v []string) *RefObjectsComponent
SetUrls gets a reference to the given []string and assigns it to the urls field. Urls: If specified, the objects in the urls will be loaded.
func (*RefObjectsComponent) Validate ¶
func (o *RefObjectsComponent) Validate() error
Validate validates this RefObjectsSpec 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 RefObjectsSpec ¶
type RefObjectsSpec struct { // If specified, application will fetch native Kubernetes objects according to the object description Objects []K8sObject `json:"objects,omitempty"` // If specified, the objects in the urls will be loaded. Urls []string `json:"urls,omitempty"` }
RefObjectsSpec struct for RefObjectsSpec
func NewRefObjectsSpec ¶
func NewRefObjectsSpec() *RefObjectsSpec
NewRefObjectsSpec is short for NewRefObjectsSpecWithDefault which instantiates a new RefObjectsSpec 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 NewRefObjectsSpecEmpty ¶
func NewRefObjectsSpecEmpty() *RefObjectsSpec
NewRefObjectsSpecEmpty instantiates a new RefObjectsSpec object with no properties set. This constructor will not assign any default values to properties.
func NewRefObjectsSpecList ¶
func NewRefObjectsSpecList(ps ...*RefObjectsSpec) []RefObjectsSpec
NewRefObjectsSpecs converts a list RefObjectsSpec pointers to objects. This is helpful when the SetRefObjectsSpec requires a list of objects
func NewRefObjectsSpecWith ¶
func NewRefObjectsSpecWith() *RefObjectsSpec
NewRefObjectsSpecWith instantiates a new RefObjectsSpec 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 NewRefObjectsSpecWithDefault ¶
func NewRefObjectsSpecWithDefault() *RefObjectsSpec
NewRefObjectsSpecWithDefault instantiates a new RefObjectsSpec 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 (RefObjectsSpec) MarshalJSON ¶
func (o RefObjectsSpec) MarshalJSON() ([]byte, error)
func (RefObjectsSpec) ToMap ¶
func (o RefObjectsSpec) ToMap() (map[string]interface{}, error)