ref_objects

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
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

func NewK8sObjectList(ps ...*K8sObject) []K8sObject

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

func (o *K8sObject) GetCluster() string

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

func (*K8sObject) GetClusterOk

func (o *K8sObject) 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 (*K8sObject) GetGroup

func (o *K8sObject) GetGroup() string

GetGroup returns the Group field value if set, zero value otherwise.

func (*K8sObject) GetGroupOk

func (o *K8sObject) GetGroupOk() (*string, bool)

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

func (o *K8sObject) GetLabelSelector() map[string]string

GetLabelSelector returns the LabelSelector field value if set, zero value otherwise.

func (*K8sObject) GetLabelSelectorOk

func (o *K8sObject) GetLabelSelectorOk() (map[string]string, bool)

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) GetName

func (o *K8sObject) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*K8sObject) GetNameOk

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

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

func (o *K8sObject) GetNamespace() string

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

func (*K8sObject) GetNamespaceOk

func (o *K8sObject) 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 (*K8sObject) GetResource

func (o *K8sObject) GetResource() string

GetResource returns the Resource field value if set, zero value otherwise.

func (*K8sObject) GetResourceOk

func (o *K8sObject) GetResourceOk() (*string, bool)

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

func (o *K8sObject) HasCluster() bool

HasCluster returns a boolean if a field has been set.

func (*K8sObject) HasGroup

func (o *K8sObject) HasGroup() bool

HasGroup returns a boolean if a field has been set.

func (*K8sObject) HasLabelSelector

func (o *K8sObject) HasLabelSelector() bool

HasLabelSelector returns a boolean if a field has been set.

func (*K8sObject) HasName

func (o *K8sObject) HasName() bool

HasName returns a boolean if a field has been set.

func (*K8sObject) HasNamespace

func (o *K8sObject) HasNamespace() bool

HasNamespace returns a boolean if a field has been set.

func (*K8sObject) HasResource

func (o *K8sObject) HasResource() bool

HasResource returns a boolean if a field has been set.

func (K8sObject) MarshalJSON

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

func (*K8sObject) SetCluster

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

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

func (o *K8sObject) SetGroup(v string) *K8sObject

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

func (o *K8sObject) SetLabelSelector(v map[string]string) *K8sObject

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

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

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

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

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

func (o *K8sObject) SetResource(v string) *K8sObject

SetResource gets a reference to the given string and assigns it to the resource field. Resource: The resource type for the Kubernetes objects

func (K8sObject) ToMap

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

func (*K8sObject) Validate

func (o *K8sObject) Validate() error

Validate validates this K8sObject 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 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 (*NullableRefObjectsSpec) IsSet

func (v *NullableRefObjectsSpec) IsSet() bool

func (NullableRefObjectsSpec) MarshalJSON

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

func (*NullableRefObjectsSpec) Set

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 (*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 (*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 (*RefObjectsComponent) Outputs

func (*RefObjectsComponent) SetObjects

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

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)

Jump to

Keyboard shortcuts

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