v1

package
v0.1.358 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 12 Imported by: 11

Documentation

Index

Constants

View Source
const AdditionalCatalogSourceListKind = "AdditionalCatalogSourceList"

AdditionalCatalogSourceListKind is the name of the type used to represent list of objects of type 'additional_catalog_source'.

View Source
const AdditionalCatalogSourceListLinkKind = "AdditionalCatalogSourceListLink"

AdditionalCatalogSourceListLinkKind is the name of the type used to represent links to list of objects of type 'additional_catalog_source'.

View Source
const AdditionalCatalogSourceListNilKind = "AdditionalCatalogSourceListNil"

AdditionalCatalogSourceNilKind is the name of the type used to nil lists of objects of type 'additional_catalog_source'.

View Source
const AddonConfigListKind = "AddonConfigList"

AddonConfigListKind is the name of the type used to represent list of objects of type 'addon_config'.

View Source
const AddonConfigListLinkKind = "AddonConfigListLink"

AddonConfigListLinkKind is the name of the type used to represent links to list of objects of type 'addon_config'.

View Source
const AddonConfigListNilKind = "AddonConfigListNil"

AddonConfigNilKind is the name of the type used to nil lists of objects of type 'addon_config'.

View Source
const AddonEnvironmentVariableListKind = "AddonEnvironmentVariableList"

AddonEnvironmentVariableListKind is the name of the type used to represent list of objects of type 'addon_environment_variable'.

View Source
const AddonEnvironmentVariableListLinkKind = "AddonEnvironmentVariableListLink"

AddonEnvironmentVariableListLinkKind is the name of the type used to represent links to list of objects of type 'addon_environment_variable'.

View Source
const AddonEnvironmentVariableListNilKind = "AddonEnvironmentVariableListNil"

AddonEnvironmentVariableNilKind is the name of the type used to nil lists of objects of type 'addon_environment_variable'.

View Source
const AddonKind = "Addon"

AddonKind is the name of the type used to represent objects of type 'addon'.

View Source
const AddonLinkKind = "AddonLink"

AddonLinkKind is the name of the type used to represent links to objects of type 'addon'.

View Source
const AddonListKind = "AddonList"

AddonListKind is the name of the type used to represent list of objects of type 'addon'.

View Source
const AddonListLinkKind = "AddonListLink"

AddonListLinkKind is the name of the type used to represent links to list of objects of type 'addon'.

View Source
const AddonListNilKind = "AddonListNil"

AddonNilKind is the name of the type used to nil lists of objects of type 'addon'.

View Source
const AddonNamespaceListKind = "AddonNamespaceList"

AddonNamespaceListKind is the name of the type used to represent list of objects of type 'addon_namespace'.

View Source
const AddonNamespaceListLinkKind = "AddonNamespaceListLink"

AddonNamespaceListLinkKind is the name of the type used to represent links to list of objects of type 'addon_namespace'.

View Source
const AddonNamespaceListNilKind = "AddonNamespaceListNil"

AddonNamespaceNilKind is the name of the type used to nil lists of objects of type 'addon_namespace'.

View Source
const AddonNilKind = "AddonNil"

AddonNilKind is the name of the type used to nil references to objects of type 'addon'.

View Source
const AddonParameterListKind = "AddonParameterList"

AddonParameterListKind is the name of the type used to represent list of objects of type 'addon_parameter'.

View Source
const AddonParameterListLinkKind = "AddonParameterListLink"

AddonParameterListLinkKind is the name of the type used to represent links to list of objects of type 'addon_parameter'.

View Source
const AddonParameterListNilKind = "AddonParameterListNil"

AddonParameterNilKind is the name of the type used to nil lists of objects of type 'addon_parameter'.

View Source
const AddonParameterOptionListKind = "AddonParameterOptionList"

AddonParameterOptionListKind is the name of the type used to represent list of objects of type 'addon_parameter_option'.

View Source
const AddonParameterOptionListLinkKind = "AddonParameterOptionListLink"

AddonParameterOptionListLinkKind is the name of the type used to represent links to list of objects of type 'addon_parameter_option'.

View Source
const AddonParameterOptionListNilKind = "AddonParameterOptionListNil"

AddonParameterOptionNilKind is the name of the type used to nil lists of objects of type 'addon_parameter_option'.

View Source
const AddonRequirementListKind = "AddonRequirementList"

AddonRequirementListKind is the name of the type used to represent list of objects of type 'addon_requirement'.

View Source
const AddonRequirementListLinkKind = "AddonRequirementListLink"

AddonRequirementListLinkKind is the name of the type used to represent links to list of objects of type 'addon_requirement'.

View Source
const AddonRequirementListNilKind = "AddonRequirementListNil"

AddonRequirementNilKind is the name of the type used to nil lists of objects of type 'addon_requirement'.

View Source
const AddonRequirementStatusListKind = "AddonRequirementStatusList"

AddonRequirementStatusListKind is the name of the type used to represent list of objects of type 'addon_requirement_status'.

View Source
const AddonRequirementStatusListLinkKind = "AddonRequirementStatusListLink"

AddonRequirementStatusListLinkKind is the name of the type used to represent links to list of objects of type 'addon_requirement_status'.

View Source
const AddonRequirementStatusListNilKind = "AddonRequirementStatusListNil"

AddonRequirementStatusNilKind is the name of the type used to nil lists of objects of type 'addon_requirement_status'.

View Source
const AddonSecretPropagationListKind = "AddonSecretPropagationList"

AddonSecretPropagationListKind is the name of the type used to represent list of objects of type 'addon_secret_propagation'.

View Source
const AddonSecretPropagationListLinkKind = "AddonSecretPropagationListLink"

AddonSecretPropagationListLinkKind is the name of the type used to represent links to list of objects of type 'addon_secret_propagation'.

View Source
const AddonSecretPropagationListNilKind = "AddonSecretPropagationListNil"

AddonSecretPropagationNilKind is the name of the type used to nil lists of objects of type 'addon_secret_propagation'.

View Source
const AddonStatusConditionListKind = "AddonStatusConditionList"

AddonStatusConditionListKind is the name of the type used to represent list of objects of type 'addon_status_condition'.

View Source
const AddonStatusConditionListLinkKind = "AddonStatusConditionListLink"

AddonStatusConditionListLinkKind is the name of the type used to represent links to list of objects of type 'addon_status_condition'.

View Source
const AddonStatusConditionListNilKind = "AddonStatusConditionListNil"

AddonStatusConditionNilKind is the name of the type used to nil lists of objects of type 'addon_status_condition'.

View Source
const AddonStatusKind = "AddonStatus"

AddonStatusKind is the name of the type used to represent objects of type 'addon_status'.

View Source
const AddonStatusLinkKind = "AddonStatusLink"

AddonStatusLinkKind is the name of the type used to represent links to objects of type 'addon_status'.

View Source
const AddonStatusListKind = "AddonStatusList"

AddonStatusListKind is the name of the type used to represent list of objects of type 'addon_status'.

View Source
const AddonStatusListLinkKind = "AddonStatusListLink"

AddonStatusListLinkKind is the name of the type used to represent links to list of objects of type 'addon_status'.

View Source
const AddonStatusListNilKind = "AddonStatusListNil"

AddonStatusNilKind is the name of the type used to nil lists of objects of type 'addon_status'.

View Source
const AddonStatusNilKind = "AddonStatusNil"

AddonStatusNilKind is the name of the type used to nil references to objects of type 'addon_status'.

View Source
const AddonSubOperatorListKind = "AddonSubOperatorList"

AddonSubOperatorListKind is the name of the type used to represent list of objects of type 'addon_sub_operator'.

View Source
const AddonSubOperatorListLinkKind = "AddonSubOperatorListLink"

AddonSubOperatorListLinkKind is the name of the type used to represent links to list of objects of type 'addon_sub_operator'.

View Source
const AddonSubOperatorListNilKind = "AddonSubOperatorListNil"

AddonSubOperatorNilKind is the name of the type used to nil lists of objects of type 'addon_sub_operator'.

View Source
const AddonVersionKind = "AddonVersion"

AddonVersionKind is the name of the type used to represent objects of type 'addon_version'.

View Source
const AddonVersionLinkKind = "AddonVersionLink"

AddonVersionLinkKind is the name of the type used to represent links to objects of type 'addon_version'.

View Source
const AddonVersionListKind = "AddonVersionList"

AddonVersionListKind is the name of the type used to represent list of objects of type 'addon_version'.

View Source
const AddonVersionListLinkKind = "AddonVersionListLink"

AddonVersionListLinkKind is the name of the type used to represent links to list of objects of type 'addon_version'.

View Source
const AddonVersionListNilKind = "AddonVersionListNil"

AddonVersionNilKind is the name of the type used to nil lists of objects of type 'addon_version'.

View Source
const AddonVersionNilKind = "AddonVersionNil"

AddonVersionNilKind is the name of the type used to nil references to objects of type 'addon_version'.

View Source
const CredentialRequestListKind = "CredentialRequestList"

CredentialRequestListKind is the name of the type used to represent list of objects of type 'credential_request'.

View Source
const CredentialRequestListLinkKind = "CredentialRequestListLink"

CredentialRequestListLinkKind is the name of the type used to represent links to list of objects of type 'credential_request'.

View Source
const CredentialRequestListNilKind = "CredentialRequestListNil"

CredentialRequestNilKind is the name of the type used to nil lists of objects of type 'credential_request'.

Variables

View Source
var OpenAPI = []byte{}/* 51929 elements not displayed */

OpenAPI contains the OpenAPI specification of the service in JSON.

Functions

func MarshalAdditionalCatalogSource

func MarshalAdditionalCatalogSource(object *AdditionalCatalogSource, writer io.Writer) error

MarshalAdditionalCatalogSource writes a value of the 'additional_catalog_source' type to the given writer.

func MarshalAdditionalCatalogSourceList

func MarshalAdditionalCatalogSourceList(list []*AdditionalCatalogSource, writer io.Writer) error

MarshalAdditionalCatalogSourceList writes a list of values of the 'additional_catalog_source' type to the given writer.

func MarshalAddon

func MarshalAddon(object *Addon, writer io.Writer) error

MarshalAddon writes a value of the 'addon' type to the given writer.

func MarshalAddonConfig

func MarshalAddonConfig(object *AddonConfig, writer io.Writer) error

MarshalAddonConfig writes a value of the 'addon_config' type to the given writer.

func MarshalAddonConfigList

func MarshalAddonConfigList(list []*AddonConfig, writer io.Writer) error

MarshalAddonConfigList writes a list of values of the 'addon_config' type to the given writer.

func MarshalAddonEnvironmentVariable

func MarshalAddonEnvironmentVariable(object *AddonEnvironmentVariable, writer io.Writer) error

MarshalAddonEnvironmentVariable writes a value of the 'addon_environment_variable' type to the given writer.

func MarshalAddonEnvironmentVariableList

func MarshalAddonEnvironmentVariableList(list []*AddonEnvironmentVariable, writer io.Writer) error

MarshalAddonEnvironmentVariableList writes a list of values of the 'addon_environment_variable' type to the given writer.

func MarshalAddonInstallModeList

func MarshalAddonInstallModeList(list []AddonInstallMode, writer io.Writer) error

MarshalAddonInstallModeList writes a list of values of the 'addon_install_mode' type to the given writer.

func MarshalAddonList

func MarshalAddonList(list []*Addon, writer io.Writer) error

MarshalAddonList writes a list of values of the 'addon' type to the given writer.

func MarshalAddonNamespace

func MarshalAddonNamespace(object *AddonNamespace, writer io.Writer) error

MarshalAddonNamespace writes a value of the 'addon_namespace' type to the given writer.

func MarshalAddonNamespaceList

func MarshalAddonNamespaceList(list []*AddonNamespace, writer io.Writer) error

MarshalAddonNamespaceList writes a list of values of the 'addon_namespace' type to the given writer.

func MarshalAddonParameter

func MarshalAddonParameter(object *AddonParameter, writer io.Writer) error

MarshalAddonParameter writes a value of the 'addon_parameter' type to the given writer.

func MarshalAddonParameterList

func MarshalAddonParameterList(list []*AddonParameter, writer io.Writer) error

MarshalAddonParameterList writes a list of values of the 'addon_parameter' type to the given writer.

func MarshalAddonParameterOption

func MarshalAddonParameterOption(object *AddonParameterOption, writer io.Writer) error

MarshalAddonParameterOption writes a value of the 'addon_parameter_option' type to the given writer.

func MarshalAddonParameterOptionList

func MarshalAddonParameterOptionList(list []*AddonParameterOption, writer io.Writer) error

MarshalAddonParameterOptionList writes a list of values of the 'addon_parameter_option' type to the given writer.

func MarshalAddonParameterValueTypeList

func MarshalAddonParameterValueTypeList(list []AddonParameterValueType, writer io.Writer) error

MarshalAddonParameterValueTypeList writes a list of values of the 'addon_parameter_value_type' type to the given writer.

func MarshalAddonRequirement

func MarshalAddonRequirement(object *AddonRequirement, writer io.Writer) error

MarshalAddonRequirement writes a value of the 'addon_requirement' type to the given writer.

func MarshalAddonRequirementList

func MarshalAddonRequirementList(list []*AddonRequirement, writer io.Writer) error

MarshalAddonRequirementList writes a list of values of the 'addon_requirement' type to the given writer.

func MarshalAddonRequirementResourceList

func MarshalAddonRequirementResourceList(list []AddonRequirementResource, writer io.Writer) error

MarshalAddonRequirementResourceList writes a list of values of the 'addon_requirement_resource' type to the given writer.

func MarshalAddonRequirementStatus

func MarshalAddonRequirementStatus(object *AddonRequirementStatus, writer io.Writer) error

MarshalAddonRequirementStatus writes a value of the 'addon_requirement_status' type to the given writer.

func MarshalAddonRequirementStatusList

func MarshalAddonRequirementStatusList(list []*AddonRequirementStatus, writer io.Writer) error

MarshalAddonRequirementStatusList writes a list of values of the 'addon_requirement_status' type to the given writer.

func MarshalAddonSecretPropagation

func MarshalAddonSecretPropagation(object *AddonSecretPropagation, writer io.Writer) error

MarshalAddonSecretPropagation writes a value of the 'addon_secret_propagation' type to the given writer.

func MarshalAddonSecretPropagationList

func MarshalAddonSecretPropagationList(list []*AddonSecretPropagation, writer io.Writer) error

MarshalAddonSecretPropagationList writes a list of values of the 'addon_secret_propagation' type to the given writer.

func MarshalAddonStatus

func MarshalAddonStatus(object *AddonStatus, writer io.Writer) error

MarshalAddonStatus writes a value of the 'addon_status' type to the given writer.

func MarshalAddonStatusCondition

func MarshalAddonStatusCondition(object *AddonStatusCondition, writer io.Writer) error

MarshalAddonStatusCondition writes a value of the 'addon_status_condition' type to the given writer.

func MarshalAddonStatusConditionList

func MarshalAddonStatusConditionList(list []*AddonStatusCondition, writer io.Writer) error

MarshalAddonStatusConditionList writes a list of values of the 'addon_status_condition' type to the given writer.

func MarshalAddonStatusConditionTypeList

func MarshalAddonStatusConditionTypeList(list []AddonStatusConditionType, writer io.Writer) error

MarshalAddonStatusConditionTypeList writes a list of values of the 'addon_status_condition_type' type to the given writer.

func MarshalAddonStatusConditionValueList

func MarshalAddonStatusConditionValueList(list []AddonStatusConditionValue, writer io.Writer) error

MarshalAddonStatusConditionValueList writes a list of values of the 'addon_status_condition_value' type to the given writer.

func MarshalAddonStatusList

func MarshalAddonStatusList(list []*AddonStatus, writer io.Writer) error

MarshalAddonStatusList writes a list of values of the 'addon_status' type to the given writer.

func MarshalAddonSubOperator

func MarshalAddonSubOperator(object *AddonSubOperator, writer io.Writer) error

MarshalAddonSubOperator writes a value of the 'addon_sub_operator' type to the given writer.

func MarshalAddonSubOperatorList

func MarshalAddonSubOperatorList(list []*AddonSubOperator, writer io.Writer) error

MarshalAddonSubOperatorList writes a list of values of the 'addon_sub_operator' type to the given writer.

func MarshalAddonVersion

func MarshalAddonVersion(object *AddonVersion, writer io.Writer) error

MarshalAddonVersion writes a value of the 'addon_version' type to the given writer.

func MarshalAddonVersionList

func MarshalAddonVersionList(list []*AddonVersion, writer io.Writer) error

MarshalAddonVersionList writes a list of values of the 'addon_version' type to the given writer.

func MarshalBooleanList

func MarshalBooleanList(list []bool, writer io.Writer) error

MarshalBooleanList writes a list of values of the 'boolean' type to the given writer.

func MarshalCredentialRequest

func MarshalCredentialRequest(object *CredentialRequest, writer io.Writer) error

MarshalCredentialRequest writes a value of the 'credential_request' type to the given writer.

func MarshalCredentialRequestList

func MarshalCredentialRequestList(list []*CredentialRequest, writer io.Writer) error

MarshalCredentialRequestList writes a list of values of the 'credential_request' type to the given writer.

func MarshalDateList

func MarshalDateList(list []time.Time, writer io.Writer) error

MarshalDateList writes a list of values of the 'date' type to the given writer.

func MarshalFloatList

func MarshalFloatList(list []float64, writer io.Writer) error

MarshalFloatList writes a list of values of the 'float' type to the given writer.

func MarshalIntegerList

func MarshalIntegerList(list []int, writer io.Writer) error

MarshalIntegerList writes a list of values of the 'integer' type to the given writer.

func MarshalInterfaceList

func MarshalInterfaceList(list []interface{}, writer io.Writer) error

MarshalInterfaceList writes a list of values of the 'interface' type to the given writer.

func MarshalLongList

func MarshalLongList(list []int64, writer io.Writer) error

MarshalLongList writes a list of values of the 'long' type to the given writer.

func MarshalMetadata

func MarshalMetadata(object *Metadata, writer io.Writer) error

MarshalMetadata writes a value of the metadata type to the given target, which can be a writer or a JSON encoder.

func MarshalStringList

func MarshalStringList(list []string, writer io.Writer) error

MarshalStringList writes a list of values of the 'string' type to the given writer.

func UnmarshalBooleanList

func UnmarshalBooleanList(source interface{}) (items []bool, err error)

UnmarshalBooleanList reads a list of values of the 'boolean' type from the given source, which can be a slice of bytes, a string or a reader.

func UnmarshalDateList

func UnmarshalDateList(source interface{}) (items []time.Time, err error)

UnmarshalDateList reads a list of values of the 'date' type from the given source, which can be a slice of bytes, a string or a reader.

func UnmarshalFloatList

func UnmarshalFloatList(source interface{}) (items []float64, err error)

UnmarshalFloatList reads a list of values of the 'float' type from the given source, which can be a slice of bytes, a string or a reader.

func UnmarshalIntegerList

func UnmarshalIntegerList(source interface{}) (items []int, err error)

UnmarshalIntegerList reads a list of values of the 'integer' type from the given source, which can be a slice of bytes, a string or a reader.

func UnmarshalInterfaceList

func UnmarshalInterfaceList(source interface{}) (items []interface{}, err error)

UnmarshalInterfaceList reads a list of values of the 'interface' type from the given source, which can be a slice of bytes, a string or a reader.

func UnmarshalLongList

func UnmarshalLongList(source interface{}) (items []int64, err error)

UnmarshalLongList reads a list of values of the 'long' type from the given source, which can be a slice of bytes, a string or a reader.

func UnmarshalStringList

func UnmarshalStringList(source interface{}) (items []string, err error)

UnmarshalStringList reads a list of values of the 'string' type from the given source, which can be a slice of bytes, a string or a reader.

Types

type AdditionalCatalogSource

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

AdditionalCatalogSource represents the values of the 'additional_catalog_source' type.

Representation of an addon catalog source object used by addon versions.

func UnmarshalAdditionalCatalogSource

func UnmarshalAdditionalCatalogSource(source interface{}) (object *AdditionalCatalogSource, err error)

UnmarshalAdditionalCatalogSource reads a value of the 'additional_catalog_source' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalAdditionalCatalogSourceList

func UnmarshalAdditionalCatalogSourceList(source interface{}) (items []*AdditionalCatalogSource, err error)

UnmarshalAdditionalCatalogSourceList reads a list of values of the 'additional_catalog_source' type from the given source, which can be a slice of bytes, a string or a reader.

func (*AdditionalCatalogSource) Empty

func (o *AdditionalCatalogSource) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*AdditionalCatalogSource) Enabled

func (o *AdditionalCatalogSource) Enabled() bool

Enabled returns the value of the 'enabled' attribute, or the zero value of the type if the attribute doesn't have a value.

Indicates is this additional catalog source is enabled for the addon

func (*AdditionalCatalogSource) GetEnabled

func (o *AdditionalCatalogSource) GetEnabled() (value bool, ok bool)

GetEnabled returns the value of the 'enabled' attribute and a flag indicating if the attribute has a value.

Indicates is this additional catalog source is enabled for the addon

func (*AdditionalCatalogSource) GetID

func (o *AdditionalCatalogSource) GetID() (value string, ok bool)

GetID returns the value of the 'ID' attribute and a flag indicating if the attribute has a value.

ID of the additional catalog source

func (*AdditionalCatalogSource) GetImage

func (o *AdditionalCatalogSource) GetImage() (value string, ok bool)

GetImage returns the value of the 'image' attribute and a flag indicating if the attribute has a value.

Image of the additional catalog source.

func (*AdditionalCatalogSource) GetName

func (o *AdditionalCatalogSource) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

Name of the additional catalog source.

func (*AdditionalCatalogSource) ID

ID returns the value of the 'ID' attribute, or the zero value of the type if the attribute doesn't have a value.

ID of the additional catalog source

func (*AdditionalCatalogSource) Image

func (o *AdditionalCatalogSource) Image() string

Image returns the value of the 'image' attribute, or the zero value of the type if the attribute doesn't have a value.

Image of the additional catalog source.

func (*AdditionalCatalogSource) Name

func (o *AdditionalCatalogSource) Name() string

Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.

Name of the additional catalog source.

type AdditionalCatalogSourceBuilder

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

AdditionalCatalogSourceBuilder contains the data and logic needed to build 'additional_catalog_source' objects.

Representation of an addon catalog source object used by addon versions.

func NewAdditionalCatalogSource

func NewAdditionalCatalogSource() *AdditionalCatalogSourceBuilder

NewAdditionalCatalogSource creates a new builder of 'additional_catalog_source' objects.

func (*AdditionalCatalogSourceBuilder) Build

Build creates a 'additional_catalog_source' object using the configuration stored in the builder.

func (*AdditionalCatalogSourceBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*AdditionalCatalogSourceBuilder) Empty

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*AdditionalCatalogSourceBuilder) Enabled

Enabled sets the value of the 'enabled' attribute to the given value.

func (*AdditionalCatalogSourceBuilder) ID

ID sets the value of the 'ID' attribute to the given value.

func (*AdditionalCatalogSourceBuilder) Image

Image sets the value of the 'image' attribute to the given value.

func (*AdditionalCatalogSourceBuilder) Name

Name sets the value of the 'name' attribute to the given value.

type AdditionalCatalogSourceList

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

AdditionalCatalogSourceList is a list of values of the 'additional_catalog_source' type.

func (*AdditionalCatalogSourceList) Each

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AdditionalCatalogSourceList) Empty

func (l *AdditionalCatalogSourceList) Empty() bool

Empty returns true if the list is empty.

func (*AdditionalCatalogSourceList) Get

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*AdditionalCatalogSourceList) Len

Len returns the length of the list.

func (*AdditionalCatalogSourceList) Range

func (l *AdditionalCatalogSourceList) Range(f func(index int, item *AdditionalCatalogSource) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AdditionalCatalogSourceList) Slice

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type AdditionalCatalogSourceListBuilder

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

AdditionalCatalogSourceListBuilder contains the data and logic needed to build 'additional_catalog_source' objects.

func NewAdditionalCatalogSourceList

func NewAdditionalCatalogSourceList() *AdditionalCatalogSourceListBuilder

NewAdditionalCatalogSourceList creates a new builder of 'additional_catalog_source' objects.

func (*AdditionalCatalogSourceListBuilder) Build

Build creates a list of 'additional_catalog_source' objects using the configuration stored in the builder.

func (*AdditionalCatalogSourceListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*AdditionalCatalogSourceListBuilder) Empty

Empty returns true if the list is empty.

func (*AdditionalCatalogSourceListBuilder) Items

Items sets the items of the list.

type Addon

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

Addon represents the values of the 'addon' type.

Representation of an addon that can be installed in a cluster.

func UnmarshalAddon

func UnmarshalAddon(source interface{}) (object *Addon, err error)

UnmarshalAddon reads a value of the 'addon' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalAddonList

func UnmarshalAddonList(source interface{}) (items []*Addon, err error)

UnmarshalAddonList reads a list of values of the 'addon' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Addon) CommonAnnotations

func (o *Addon) CommonAnnotations() map[string]string

CommonAnnotations returns the value of the 'common_annotations' attribute, or the zero value of the type if the attribute doesn't have a value.

Common Annotations for this addon.

func (*Addon) CommonLabels

func (o *Addon) CommonLabels() map[string]string

CommonLabels returns the value of the 'common_labels' attribute, or the zero value of the type if the attribute doesn't have a value.

Common Labels for this addon.

func (*Addon) Config

func (o *Addon) Config() *AddonConfig

Config returns the value of the 'config' attribute, or the zero value of the type if the attribute doesn't have a value.

Additional configs to be used by the addon once its installed in the cluster.

func (*Addon) CredentialsRequests

func (o *Addon) CredentialsRequests() []*CredentialRequest

CredentialsRequests returns the value of the 'credentials_requests' attribute, or the zero value of the type if the attribute doesn't have a value.

List of credentials requests to authenticate operators to access cloud resources.

func (*Addon) Description

func (o *Addon) Description() string

Description returns the value of the 'description' attribute, or the zero value of the type if the attribute doesn't have a value.

Description of the addon.

func (o *Addon) DocsLink() string

DocsLink returns the value of the 'docs_link' attribute, or the zero value of the type if the attribute doesn't have a value.

Link to documentation about the addon.

func (*Addon) Empty

func (o *Addon) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Addon) Enabled

func (o *Addon) Enabled() bool

Enabled returns the value of the 'enabled' attribute, or the zero value of the type if the attribute doesn't have a value.

Indicates if this addon can be added to clusters.

func (*Addon) GetCommonAnnotations

func (o *Addon) GetCommonAnnotations() (value map[string]string, ok bool)

GetCommonAnnotations returns the value of the 'common_annotations' attribute and a flag indicating if the attribute has a value.

Common Annotations for this addon.

func (*Addon) GetCommonLabels

func (o *Addon) GetCommonLabels() (value map[string]string, ok bool)

GetCommonLabels returns the value of the 'common_labels' attribute and a flag indicating if the attribute has a value.

Common Labels for this addon.

func (*Addon) GetConfig

func (o *Addon) GetConfig() (value *AddonConfig, ok bool)

GetConfig returns the value of the 'config' attribute and a flag indicating if the attribute has a value.

Additional configs to be used by the addon once its installed in the cluster.

func (*Addon) GetCredentialsRequests

func (o *Addon) GetCredentialsRequests() (value []*CredentialRequest, ok bool)

GetCredentialsRequests returns the value of the 'credentials_requests' attribute and a flag indicating if the attribute has a value.

List of credentials requests to authenticate operators to access cloud resources.

func (*Addon) GetDescription

func (o *Addon) GetDescription() (value string, ok bool)

GetDescription returns the value of the 'description' attribute and a flag indicating if the attribute has a value.

Description of the addon.

func (o *Addon) GetDocsLink() (value string, ok bool)

GetDocsLink returns the value of the 'docs_link' attribute and a flag indicating if the attribute has a value.

Link to documentation about the addon.

func (*Addon) GetEnabled

func (o *Addon) GetEnabled() (value bool, ok bool)

GetEnabled returns the value of the 'enabled' attribute and a flag indicating if the attribute has a value.

Indicates if this addon can be added to clusters.

func (*Addon) GetHREF

func (o *Addon) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Addon) GetHasExternalResources

func (o *Addon) GetHasExternalResources() (value bool, ok bool)

GetHasExternalResources returns the value of the 'has_external_resources' attribute and a flag indicating if the attribute has a value.

Indicates if this addon has external resources associated with it

func (*Addon) GetHidden

func (o *Addon) GetHidden() (value bool, ok bool)

GetHidden returns the value of the 'hidden' attribute and a flag indicating if the attribute has a value.

Indicates if this addon is hidden.

func (*Addon) GetID

func (o *Addon) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Addon) GetIcon

func (o *Addon) GetIcon() (value string, ok bool)

GetIcon returns the value of the 'icon' attribute and a flag indicating if the attribute has a value.

Base64-encoded icon representing an addon. The icon should be in PNG format.

func (*Addon) GetInstallMode

func (o *Addon) GetInstallMode() (value AddonInstallMode, ok bool)

GetInstallMode returns the value of the 'install_mode' attribute and a flag indicating if the attribute has a value.

The mode in which the addon is deployed.

func (*Addon) GetLabel

func (o *Addon) GetLabel() (value string, ok bool)

GetLabel returns the value of the 'label' attribute and a flag indicating if the attribute has a value.

Label used to attach to a cluster deployment when addon is installed.

func (*Addon) GetManagedService

func (o *Addon) GetManagedService() (value bool, ok bool)

GetManagedService returns the value of the 'managed_service' attribute and a flag indicating if the attribute has a value.

Indicates if addon is part of a managed service

func (*Addon) GetName

func (o *Addon) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

Name of the addon.

func (*Addon) GetNamespaces

func (o *Addon) GetNamespaces() (value []*AddonNamespace, ok bool)

GetNamespaces returns the value of the 'namespaces' attribute and a flag indicating if the attribute has a value.

List of namespaces associated with this addon.

func (*Addon) GetOperatorName

func (o *Addon) GetOperatorName() (value string, ok bool)

GetOperatorName returns the value of the 'operator_name' attribute and a flag indicating if the attribute has a value.

The name of the operator installed by this addon.

func (*Addon) GetParameters

func (o *Addon) GetParameters() (value []*AddonParameter, ok bool)

GetParameters returns the value of the 'parameters' attribute and a flag indicating if the attribute has a value.

List of parameters for this addon.

func (*Addon) GetRequirements

func (o *Addon) GetRequirements() (value []*AddonRequirement, ok bool)

GetRequirements returns the value of the 'requirements' attribute and a flag indicating if the attribute has a value.

List of requirements for this addon.

func (*Addon) GetResourceCost

func (o *Addon) GetResourceCost() (value float64, ok bool)

GetResourceCost returns the value of the 'resource_cost' attribute and a flag indicating if the attribute has a value.

Used to determine how many units of quota an addon consumes per resource name.

func (*Addon) GetResourceName

func (o *Addon) GetResourceName() (value string, ok bool)

GetResourceName returns the value of the 'resource_name' attribute and a flag indicating if the attribute has a value.

Used to determine from where to reserve quota for this addon.

func (*Addon) GetSubOperators

func (o *Addon) GetSubOperators() (value []*AddonSubOperator, ok bool)

GetSubOperators returns the value of the 'sub_operators' attribute and a flag indicating if the attribute has a value.

List of sub operators for this addon.

func (*Addon) GetTargetNamespace

func (o *Addon) GetTargetNamespace() (value string, ok bool)

GetTargetNamespace returns the value of the 'target_namespace' attribute and a flag indicating if the attribute has a value.

The namespace in which the addon CRD exists.

func (*Addon) GetVersion

func (o *Addon) GetVersion() (value *AddonVersion, ok bool)

GetVersion returns the value of the 'version' attribute and a flag indicating if the attribute has a value.

Link to the current default version of this addon.

func (*Addon) HREF

func (o *Addon) HREF() string

HREF returns the link to the object.

func (*Addon) HasExternalResources

func (o *Addon) HasExternalResources() bool

HasExternalResources returns the value of the 'has_external_resources' attribute, or the zero value of the type if the attribute doesn't have a value.

Indicates if this addon has external resources associated with it

func (*Addon) Hidden

func (o *Addon) Hidden() bool

Hidden returns the value of the 'hidden' attribute, or the zero value of the type if the attribute doesn't have a value.

Indicates if this addon is hidden.

func (*Addon) ID

func (o *Addon) ID() string

ID returns the identifier of the object.

func (*Addon) Icon

func (o *Addon) Icon() string

Icon returns the value of the 'icon' attribute, or the zero value of the type if the attribute doesn't have a value.

Base64-encoded icon representing an addon. The icon should be in PNG format.

func (*Addon) InstallMode

func (o *Addon) InstallMode() AddonInstallMode

InstallMode returns the value of the 'install_mode' attribute, or the zero value of the type if the attribute doesn't have a value.

The mode in which the addon is deployed.

func (*Addon) Kind

func (o *Addon) Kind() string

Kind returns the name of the type of the object.

func (*Addon) Label

func (o *Addon) Label() string

Label returns the value of the 'label' attribute, or the zero value of the type if the attribute doesn't have a value.

Label used to attach to a cluster deployment when addon is installed.

func (o *Addon) Link() bool

Link returns true iif this is a link.

func (*Addon) ManagedService

func (o *Addon) ManagedService() bool

ManagedService returns the value of the 'managed_service' attribute, or the zero value of the type if the attribute doesn't have a value.

Indicates if addon is part of a managed service

func (*Addon) Name

func (o *Addon) Name() string

Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.

Name of the addon.

func (*Addon) Namespaces

func (o *Addon) Namespaces() []*AddonNamespace

Namespaces returns the value of the 'namespaces' attribute, or the zero value of the type if the attribute doesn't have a value.

List of namespaces associated with this addon.

func (*Addon) OperatorName

func (o *Addon) OperatorName() string

OperatorName returns the value of the 'operator_name' attribute, or the zero value of the type if the attribute doesn't have a value.

The name of the operator installed by this addon.

func (*Addon) Parameters

func (o *Addon) Parameters() []*AddonParameter

Parameters returns the value of the 'parameters' attribute, or the zero value of the type if the attribute doesn't have a value.

List of parameters for this addon.

func (*Addon) Requirements

func (o *Addon) Requirements() []*AddonRequirement

Requirements returns the value of the 'requirements' attribute, or the zero value of the type if the attribute doesn't have a value.

List of requirements for this addon.

func (*Addon) ResourceCost

func (o *Addon) ResourceCost() float64

ResourceCost returns the value of the 'resource_cost' attribute, or the zero value of the type if the attribute doesn't have a value.

Used to determine how many units of quota an addon consumes per resource name.

func (*Addon) ResourceName

func (o *Addon) ResourceName() string

ResourceName returns the value of the 'resource_name' attribute, or the zero value of the type if the attribute doesn't have a value.

Used to determine from where to reserve quota for this addon.

func (*Addon) SubOperators

func (o *Addon) SubOperators() []*AddonSubOperator

SubOperators returns the value of the 'sub_operators' attribute, or the zero value of the type if the attribute doesn't have a value.

List of sub operators for this addon.

func (*Addon) TargetNamespace

func (o *Addon) TargetNamespace() string

TargetNamespace returns the value of the 'target_namespace' attribute, or the zero value of the type if the attribute doesn't have a value.

The namespace in which the addon CRD exists.

func (*Addon) Version

func (o *Addon) Version() *AddonVersion

Version returns the value of the 'version' attribute, or the zero value of the type if the attribute doesn't have a value.

Link to the current default version of this addon.

type AddonBuilder

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

AddonBuilder contains the data and logic needed to build 'addon' objects.

Representation of an addon that can be installed in a cluster.

func NewAddon

func NewAddon() *AddonBuilder

NewAddon creates a new builder of 'addon' objects.

func (*AddonBuilder) Build

func (b *AddonBuilder) Build() (object *Addon, err error)

Build creates a 'addon' object using the configuration stored in the builder.

func (*AddonBuilder) CommonAnnotations

func (b *AddonBuilder) CommonAnnotations(value map[string]string) *AddonBuilder

CommonAnnotations sets the value of the 'common_annotations' attribute to the given value.

func (*AddonBuilder) CommonLabels

func (b *AddonBuilder) CommonLabels(value map[string]string) *AddonBuilder

CommonLabels sets the value of the 'common_labels' attribute to the given value.

func (*AddonBuilder) Config

func (b *AddonBuilder) Config(value *AddonConfigBuilder) *AddonBuilder

Config sets the value of the 'config' attribute to the given value.

Representation of an addon config. The attributes under it are to be used by the addon once its installed in the cluster.

func (*AddonBuilder) Copy

func (b *AddonBuilder) Copy(object *Addon) *AddonBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*AddonBuilder) CredentialsRequests

func (b *AddonBuilder) CredentialsRequests(values ...*CredentialRequestBuilder) *AddonBuilder

CredentialsRequests sets the value of the 'credentials_requests' attribute to the given values.

func (*AddonBuilder) Description

func (b *AddonBuilder) Description(value string) *AddonBuilder

Description sets the value of the 'description' attribute to the given value.

func (b *AddonBuilder) DocsLink(value string) *AddonBuilder

DocsLink sets the value of the 'docs_link' attribute to the given value.

func (*AddonBuilder) Empty

func (b *AddonBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*AddonBuilder) Enabled

func (b *AddonBuilder) Enabled(value bool) *AddonBuilder

Enabled sets the value of the 'enabled' attribute to the given value.

func (*AddonBuilder) HREF

func (b *AddonBuilder) HREF(value string) *AddonBuilder

HREF sets the link to the object.

func (*AddonBuilder) HasExternalResources

func (b *AddonBuilder) HasExternalResources(value bool) *AddonBuilder

HasExternalResources sets the value of the 'has_external_resources' attribute to the given value.

func (*AddonBuilder) Hidden

func (b *AddonBuilder) Hidden(value bool) *AddonBuilder

Hidden sets the value of the 'hidden' attribute to the given value.

func (*AddonBuilder) ID

func (b *AddonBuilder) ID(value string) *AddonBuilder

ID sets the identifier of the object.

func (*AddonBuilder) Icon

func (b *AddonBuilder) Icon(value string) *AddonBuilder

Icon sets the value of the 'icon' attribute to the given value.

func (*AddonBuilder) InstallMode

func (b *AddonBuilder) InstallMode(value AddonInstallMode) *AddonBuilder

InstallMode sets the value of the 'install_mode' attribute to the given value.

Representation of an addon InstallMode field.

func (*AddonBuilder) Label

func (b *AddonBuilder) Label(value string) *AddonBuilder

Label sets the value of the 'label' attribute to the given value.

func (b *AddonBuilder) Link(value bool) *AddonBuilder

Link sets the flag that indicates if this is a link.

func (*AddonBuilder) ManagedService

func (b *AddonBuilder) ManagedService(value bool) *AddonBuilder

ManagedService sets the value of the 'managed_service' attribute to the given value.

func (*AddonBuilder) Name

func (b *AddonBuilder) Name(value string) *AddonBuilder

Name sets the value of the 'name' attribute to the given value.

func (*AddonBuilder) Namespaces

func (b *AddonBuilder) Namespaces(values ...*AddonNamespaceBuilder) *AddonBuilder

Namespaces sets the value of the 'namespaces' attribute to the given values.

func (*AddonBuilder) OperatorName

func (b *AddonBuilder) OperatorName(value string) *AddonBuilder

OperatorName sets the value of the 'operator_name' attribute to the given value.

func (*AddonBuilder) Parameters

func (b *AddonBuilder) Parameters(values ...*AddonParameterBuilder) *AddonBuilder

Parameters sets the value of the 'parameters' attribute to the given values.

func (*AddonBuilder) Requirements

func (b *AddonBuilder) Requirements(values ...*AddonRequirementBuilder) *AddonBuilder

Requirements sets the value of the 'requirements' attribute to the given values.

func (*AddonBuilder) ResourceCost

func (b *AddonBuilder) ResourceCost(value float64) *AddonBuilder

ResourceCost sets the value of the 'resource_cost' attribute to the given value.

func (*AddonBuilder) ResourceName

func (b *AddonBuilder) ResourceName(value string) *AddonBuilder

ResourceName sets the value of the 'resource_name' attribute to the given value.

func (*AddonBuilder) SubOperators

func (b *AddonBuilder) SubOperators(values ...*AddonSubOperatorBuilder) *AddonBuilder

SubOperators sets the value of the 'sub_operators' attribute to the given values.

func (*AddonBuilder) TargetNamespace

func (b *AddonBuilder) TargetNamespace(value string) *AddonBuilder

TargetNamespace sets the value of the 'target_namespace' attribute to the given value.

func (*AddonBuilder) Version

func (b *AddonBuilder) Version(value *AddonVersionBuilder) *AddonBuilder

Version sets the value of the 'version' attribute to the given value.

Representation of an addon version.

type AddonClient

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

AddonClient is the client of the 'addon' resource.

Manages a specific addon.

func NewAddonClient

func NewAddonClient(transport http.RoundTripper, path string) *AddonClient

NewAddonClient creates a new client for the 'addon' resource using the given transport to send the requests and receive the responses.

func (*AddonClient) Delete

func (c *AddonClient) Delete() *AddonDeleteRequest

Delete creates a request for the 'delete' method.

Deletes the addon.

func (*AddonClient) Get

func (c *AddonClient) Get() *AddonGetRequest

Get creates a request for the 'get' method.

Retrieves the details of the addon.

func (*AddonClient) Poll

func (c *AddonClient) Poll() *AddonPollRequest

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

func (*AddonClient) Update

func (c *AddonClient) Update() *AddonUpdateRequest

Update creates a request for the 'update' method.

Updates the addon.

func (*AddonClient) Versions

func (c *AddonClient) Versions() *AddonVersionsClient

Versions returns the target 'addon_versions' resource.

Reference to the resource that manages the collection of addon versions.

type AddonConfig

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

AddonConfig represents the values of the 'addon_config' type.

Representation of an addon config. The attributes under it are to be used by the addon once its installed in the cluster.

func UnmarshalAddonConfig

func UnmarshalAddonConfig(source interface{}) (object *AddonConfig, err error)

UnmarshalAddonConfig reads a value of the 'addon_config' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalAddonConfigList

func UnmarshalAddonConfigList(source interface{}) (items []*AddonConfig, err error)

UnmarshalAddonConfigList reads a list of values of the 'addon_config' type from the given source, which can be a slice of bytes, a string or a reader.

func (*AddonConfig) AddOnEnvironmentVariables

func (o *AddonConfig) AddOnEnvironmentVariables() []*AddonEnvironmentVariable

AddOnEnvironmentVariables returns the value of the 'add_on_environment_variables' attribute, or the zero value of the type if the attribute doesn't have a value.

List of environment variables for the addon

func (*AddonConfig) AddOnSecretPropagations

func (o *AddonConfig) AddOnSecretPropagations() []*AddonSecretPropagation

AddOnSecretPropagations returns the value of the 'add_on_secret_propagations' attribute, or the zero value of the type if the attribute doesn't have a value.

List of secret propagations for the addon

func (*AddonConfig) Empty

func (o *AddonConfig) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*AddonConfig) GetAddOnEnvironmentVariables

func (o *AddonConfig) GetAddOnEnvironmentVariables() (value []*AddonEnvironmentVariable, ok bool)

GetAddOnEnvironmentVariables returns the value of the 'add_on_environment_variables' attribute and a flag indicating if the attribute has a value.

List of environment variables for the addon

func (*AddonConfig) GetAddOnSecretPropagations

func (o *AddonConfig) GetAddOnSecretPropagations() (value []*AddonSecretPropagation, ok bool)

GetAddOnSecretPropagations returns the value of the 'add_on_secret_propagations' attribute and a flag indicating if the attribute has a value.

List of secret propagations for the addon

type AddonConfigBuilder

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

AddonConfigBuilder contains the data and logic needed to build 'addon_config' objects.

Representation of an addon config. The attributes under it are to be used by the addon once its installed in the cluster.

func NewAddonConfig

func NewAddonConfig() *AddonConfigBuilder

NewAddonConfig creates a new builder of 'addon_config' objects.

func (*AddonConfigBuilder) AddOnEnvironmentVariables

func (b *AddonConfigBuilder) AddOnEnvironmentVariables(values ...*AddonEnvironmentVariableBuilder) *AddonConfigBuilder

AddOnEnvironmentVariables sets the value of the 'add_on_environment_variables' attribute to the given values.

func (*AddonConfigBuilder) AddOnSecretPropagations

func (b *AddonConfigBuilder) AddOnSecretPropagations(values ...*AddonSecretPropagationBuilder) *AddonConfigBuilder

AddOnSecretPropagations sets the value of the 'add_on_secret_propagations' attribute to the given values.

func (*AddonConfigBuilder) Build

func (b *AddonConfigBuilder) Build() (object *AddonConfig, err error)

Build creates a 'addon_config' object using the configuration stored in the builder.

func (*AddonConfigBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*AddonConfigBuilder) Empty

func (b *AddonConfigBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

type AddonConfigList

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

AddonConfigList is a list of values of the 'addon_config' type.

func (*AddonConfigList) Each

func (l *AddonConfigList) Each(f func(item *AddonConfig) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonConfigList) Empty

func (l *AddonConfigList) Empty() bool

Empty returns true if the list is empty.

func (*AddonConfigList) Get

func (l *AddonConfigList) Get(i int) *AddonConfig

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*AddonConfigList) Len

func (l *AddonConfigList) Len() int

Len returns the length of the list.

func (*AddonConfigList) Range

func (l *AddonConfigList) Range(f func(index int, item *AddonConfig) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonConfigList) Slice

func (l *AddonConfigList) Slice() []*AddonConfig

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type AddonConfigListBuilder

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

AddonConfigListBuilder contains the data and logic needed to build 'addon_config' objects.

func NewAddonConfigList

func NewAddonConfigList() *AddonConfigListBuilder

NewAddonConfigList creates a new builder of 'addon_config' objects.

func (*AddonConfigListBuilder) Build

func (b *AddonConfigListBuilder) Build() (list *AddonConfigList, err error)

Build creates a list of 'addon_config' objects using the configuration stored in the builder.

func (*AddonConfigListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*AddonConfigListBuilder) Empty

func (b *AddonConfigListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*AddonConfigListBuilder) Items

Items sets the items of the list.

type AddonDeleteRequest

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

AddonDeleteRequest is the request for the 'delete' method.

func (*AddonDeleteRequest) Header

func (r *AddonDeleteRequest) Header(name string, value interface{}) *AddonDeleteRequest

Header adds a request header.

func (*AddonDeleteRequest) Impersonate

func (r *AddonDeleteRequest) Impersonate(user string) *AddonDeleteRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AddonDeleteRequest) Parameter

func (r *AddonDeleteRequest) Parameter(name string, value interface{}) *AddonDeleteRequest

Parameter adds a query parameter.

func (*AddonDeleteRequest) Send

func (r *AddonDeleteRequest) Send() (result *AddonDeleteResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AddonDeleteRequest) SendContext

func (r *AddonDeleteRequest) SendContext(ctx context.Context) (result *AddonDeleteResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type AddonDeleteResponse

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

AddonDeleteResponse is the response for the 'delete' method.

func (*AddonDeleteResponse) Error

func (r *AddonDeleteResponse) Error() *errors.Error

Error returns the response error.

func (*AddonDeleteResponse) Header

func (r *AddonDeleteResponse) Header() http.Header

Header returns header of the response.

func (*AddonDeleteResponse) Status

func (r *AddonDeleteResponse) Status() int

Status returns the response status code.

type AddonEnvironmentVariable

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

AddonEnvironmentVariable represents the values of the 'addon_environment_variable' type.

Representation of an addon env object.

func UnmarshalAddonEnvironmentVariable

func UnmarshalAddonEnvironmentVariable(source interface{}) (object *AddonEnvironmentVariable, err error)

UnmarshalAddonEnvironmentVariable reads a value of the 'addon_environment_variable' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalAddonEnvironmentVariableList

func UnmarshalAddonEnvironmentVariableList(source interface{}) (items []*AddonEnvironmentVariable, err error)

UnmarshalAddonEnvironmentVariableList reads a list of values of the 'addon_environment_variable' type from the given source, which can be a slice of bytes, a string or a reader.

func (*AddonEnvironmentVariable) Empty

func (o *AddonEnvironmentVariable) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*AddonEnvironmentVariable) Enabled

func (o *AddonEnvironmentVariable) Enabled() bool

Enabled returns the value of the 'enabled' attribute, or the zero value of the type if the attribute doesn't have a value.

Indicates is this environment variable is enabled for the addon

func (*AddonEnvironmentVariable) GetEnabled

func (o *AddonEnvironmentVariable) GetEnabled() (value bool, ok bool)

GetEnabled returns the value of the 'enabled' attribute and a flag indicating if the attribute has a value.

Indicates is this environment variable is enabled for the addon

func (*AddonEnvironmentVariable) GetID

func (o *AddonEnvironmentVariable) GetID() (value string, ok bool)

GetID returns the value of the 'ID' attribute and a flag indicating if the attribute has a value.

ID for the environment variable

func (*AddonEnvironmentVariable) GetName

func (o *AddonEnvironmentVariable) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

Name of the environment variable

func (*AddonEnvironmentVariable) GetValue

func (o *AddonEnvironmentVariable) GetValue() (value string, ok bool)

GetValue returns the value of the 'value' attribute and a flag indicating if the attribute has a value.

Value of the environment variable

func (*AddonEnvironmentVariable) ID

ID returns the value of the 'ID' attribute, or the zero value of the type if the attribute doesn't have a value.

ID for the environment variable

func (*AddonEnvironmentVariable) Name

func (o *AddonEnvironmentVariable) Name() string

Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.

Name of the environment variable

func (*AddonEnvironmentVariable) Value

func (o *AddonEnvironmentVariable) Value() string

Value returns the value of the 'value' attribute, or the zero value of the type if the attribute doesn't have a value.

Value of the environment variable

type AddonEnvironmentVariableBuilder

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

AddonEnvironmentVariableBuilder contains the data and logic needed to build 'addon_environment_variable' objects.

Representation of an addon env object.

func NewAddonEnvironmentVariable

func NewAddonEnvironmentVariable() *AddonEnvironmentVariableBuilder

NewAddonEnvironmentVariable creates a new builder of 'addon_environment_variable' objects.

func (*AddonEnvironmentVariableBuilder) Build

Build creates a 'addon_environment_variable' object using the configuration stored in the builder.

func (*AddonEnvironmentVariableBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*AddonEnvironmentVariableBuilder) Empty

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*AddonEnvironmentVariableBuilder) Enabled

Enabled sets the value of the 'enabled' attribute to the given value.

func (*AddonEnvironmentVariableBuilder) ID

ID sets the value of the 'ID' attribute to the given value.

func (*AddonEnvironmentVariableBuilder) Name

Name sets the value of the 'name' attribute to the given value.

func (*AddonEnvironmentVariableBuilder) Value

Value sets the value of the 'value' attribute to the given value.

type AddonEnvironmentVariableList

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

AddonEnvironmentVariableList is a list of values of the 'addon_environment_variable' type.

func (*AddonEnvironmentVariableList) Each

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonEnvironmentVariableList) Empty

Empty returns true if the list is empty.

func (*AddonEnvironmentVariableList) Get

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*AddonEnvironmentVariableList) Len

Len returns the length of the list.

func (*AddonEnvironmentVariableList) Range

func (l *AddonEnvironmentVariableList) Range(f func(index int, item *AddonEnvironmentVariable) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonEnvironmentVariableList) Slice

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type AddonEnvironmentVariableListBuilder

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

AddonEnvironmentVariableListBuilder contains the data and logic needed to build 'addon_environment_variable' objects.

func NewAddonEnvironmentVariableList

func NewAddonEnvironmentVariableList() *AddonEnvironmentVariableListBuilder

NewAddonEnvironmentVariableList creates a new builder of 'addon_environment_variable' objects.

func (*AddonEnvironmentVariableListBuilder) Build

Build creates a list of 'addon_environment_variable' objects using the configuration stored in the builder.

func (*AddonEnvironmentVariableListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*AddonEnvironmentVariableListBuilder) Empty

Empty returns true if the list is empty.

func (*AddonEnvironmentVariableListBuilder) Items

Items sets the items of the list.

type AddonGetRequest

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

AddonGetRequest is the request for the 'get' method.

func (*AddonGetRequest) Header

func (r *AddonGetRequest) Header(name string, value interface{}) *AddonGetRequest

Header adds a request header.

func (*AddonGetRequest) Impersonate

func (r *AddonGetRequest) Impersonate(user string) *AddonGetRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AddonGetRequest) Parameter

func (r *AddonGetRequest) Parameter(name string, value interface{}) *AddonGetRequest

Parameter adds a query parameter.

func (*AddonGetRequest) Send

func (r *AddonGetRequest) Send() (result *AddonGetResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AddonGetRequest) SendContext

func (r *AddonGetRequest) SendContext(ctx context.Context) (result *AddonGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type AddonGetResponse

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

AddonGetResponse is the response for the 'get' method.

func (*AddonGetResponse) Body

func (r *AddonGetResponse) Body() *Addon

Body returns the value of the 'body' parameter.

func (*AddonGetResponse) Error

func (r *AddonGetResponse) Error() *errors.Error

Error returns the response error.

func (*AddonGetResponse) GetBody

func (r *AddonGetResponse) GetBody() (value *Addon, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*AddonGetResponse) Header

func (r *AddonGetResponse) Header() http.Header

Header returns header of the response.

func (*AddonGetResponse) Status

func (r *AddonGetResponse) Status() int

Status returns the response status code.

type AddonInquiriesClient

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

AddonInquiriesClient is the client of the 'addon_inquiries' resource.

Manages add-on inquiries, inquiries perform validation of add-on(s) on a per cluster basis based on add-on conditions and requirements.

func NewAddonInquiriesClient

func NewAddonInquiriesClient(transport http.RoundTripper, path string) *AddonInquiriesClient

NewAddonInquiriesClient creates a new client for the 'addon_inquiries' resource using the given transport to send the requests and receive the responses.

func (*AddonInquiriesClient) AddonInquiry

func (c *AddonInquiriesClient) AddonInquiry(id string) *AddonInquiryClient

AddonInquiry returns the target 'addon_inquiry' resource for the given identifier.

func (*AddonInquiriesClient) List

List creates a request for the 'list' method.

type AddonInquiriesListRequest

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

AddonInquiriesListRequest is the request for the 'list' method.

func (*AddonInquiriesListRequest) Header

func (r *AddonInquiriesListRequest) Header(name string, value interface{}) *AddonInquiriesListRequest

Header adds a request header.

func (*AddonInquiriesListRequest) Impersonate

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AddonInquiriesListRequest) Order

Order sets the value of the 'order' parameter.

Order criteria.

The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the add-on instead of the names of the columns of a table. For example, in order to sort the add-ons descending by name the value should be:

```sql name desc ```

If the parameter isn't provided, or if the value is empty, then the order of the results is undefined.

func (*AddonInquiriesListRequest) Page

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*AddonInquiriesListRequest) Parameter

func (r *AddonInquiriesListRequest) Parameter(name string, value interface{}) *AddonInquiriesListRequest

Parameter adds a query parameter.

func (*AddonInquiriesListRequest) Search

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the add-on instead of the names of the columns of a table. For example, in order to retrieve all the add-ons with a name starting with `my` the value should be:

```sql name like 'my%' ```

If the parameter isn't provided, or if the value is empty, then all the add-ons that the user has permission to see will be returned.

func (*AddonInquiriesListRequest) Send

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AddonInquiriesListRequest) SendContext

func (r *AddonInquiriesListRequest) SendContext(ctx context.Context) (result *AddonInquiriesListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*AddonInquiriesListRequest) Size

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type AddonInquiriesListResponse

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

AddonInquiriesListResponse is the response for the 'list' method.

func (*AddonInquiriesListResponse) Error

Error returns the response error.

func (*AddonInquiriesListResponse) GetItems

func (r *AddonInquiriesListResponse) GetItems() (value *AddonList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of add-ons.

func (*AddonInquiriesListResponse) GetPage

func (r *AddonInquiriesListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*AddonInquiriesListResponse) GetSize

func (r *AddonInquiriesListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*AddonInquiriesListResponse) GetTotal

func (r *AddonInquiriesListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

func (*AddonInquiriesListResponse) Header

Header returns header of the response.

func (*AddonInquiriesListResponse) Items

Items returns the value of the 'items' parameter.

Retrieved list of add-ons.

func (*AddonInquiriesListResponse) Page

func (r *AddonInquiriesListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*AddonInquiriesListResponse) Size

func (r *AddonInquiriesListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*AddonInquiriesListResponse) Status

func (r *AddonInquiriesListResponse) Status() int

Status returns the response status code.

func (*AddonInquiriesListResponse) Total

func (r *AddonInquiriesListResponse) Total() int

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

type AddonInquiryClient

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

AddonInquiryClient is the client of the 'addon_inquiry' resource.

Manages a specific add-on inquiry

func NewAddonInquiryClient

func NewAddonInquiryClient(transport http.RoundTripper, path string) *AddonInquiryClient

NewAddonInquiryClient creates a new client for the 'addon_inquiry' resource using the given transport to send the requests and receive the responses.

func (*AddonInquiryClient) Get

Get creates a request for the 'get' method.

func (*AddonInquiryClient) Poll

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

type AddonInquiryGetRequest

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

AddonInquiryGetRequest is the request for the 'get' method.

func (*AddonInquiryGetRequest) Header

func (r *AddonInquiryGetRequest) Header(name string, value interface{}) *AddonInquiryGetRequest

Header adds a request header.

func (*AddonInquiryGetRequest) Impersonate

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AddonInquiryGetRequest) Parameter

func (r *AddonInquiryGetRequest) Parameter(name string, value interface{}) *AddonInquiryGetRequest

Parameter adds a query parameter.

func (*AddonInquiryGetRequest) Send

func (r *AddonInquiryGetRequest) Send() (result *AddonInquiryGetResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AddonInquiryGetRequest) SendContext

func (r *AddonInquiryGetRequest) SendContext(ctx context.Context) (result *AddonInquiryGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type AddonInquiryGetResponse

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

AddonInquiryGetResponse is the response for the 'get' method.

func (*AddonInquiryGetResponse) Body

func (r *AddonInquiryGetResponse) Body() *Addon

Body returns the value of the 'body' parameter.

func (*AddonInquiryGetResponse) Error

func (r *AddonInquiryGetResponse) Error() *errors.Error

Error returns the response error.

func (*AddonInquiryGetResponse) GetBody

func (r *AddonInquiryGetResponse) GetBody() (value *Addon, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*AddonInquiryGetResponse) Header

func (r *AddonInquiryGetResponse) Header() http.Header

Header returns header of the response.

func (*AddonInquiryGetResponse) Status

func (r *AddonInquiryGetResponse) Status() int

Status returns the response status code.

type AddonInquiryPollRequest

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

AddonInquiryPollRequest is the request for the Poll method.

func (*AddonInquiryPollRequest) Header

func (r *AddonInquiryPollRequest) Header(name string, value interface{}) *AddonInquiryPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*AddonInquiryPollRequest) Interval

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*AddonInquiryPollRequest) Parameter

func (r *AddonInquiryPollRequest) Parameter(name string, value interface{}) *AddonInquiryPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*AddonInquiryPollRequest) Predicate

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*AddonInquiryPollRequest) StartContext

func (r *AddonInquiryPollRequest) StartContext(ctx context.Context) (response *AddonInquiryPollResponse, err error)

StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.

The context must have a timeout or deadline, otherwise this method will immediately return an error.

func (*AddonInquiryPollRequest) Status

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type AddonInquiryPollResponse

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

AddonInquiryPollResponse is the response for the Poll method.

func (*AddonInquiryPollResponse) Body

func (r *AddonInquiryPollResponse) Body() *Addon

Body returns the value of the 'body' parameter.

func (*AddonInquiryPollResponse) Error

Error returns the response error.

func (*AddonInquiryPollResponse) GetBody

func (r *AddonInquiryPollResponse) GetBody() (value *Addon, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*AddonInquiryPollResponse) Header

func (r *AddonInquiryPollResponse) Header() http.Header

Header returns header of the response.

func (*AddonInquiryPollResponse) Status

func (r *AddonInquiryPollResponse) Status() int

Status returns the response status code.

type AddonInstallMode

type AddonInstallMode string

AddonInstallMode represents the values of the 'addon_install_mode' enumerated type.

const (
	// This mode means that the addon is deployed in all namespaces.
	// However, the addon status is retrieved from the target namespace
	AddonInstallModeAllNamespaces AddonInstallMode = "all_namespaces"
	// This mode means that the the addon CRD exists in a single specific namespace.
	// This namespace is reflected by the TargetNamespace addon field
	AddonInstallModeOwnNamespace AddonInstallMode = "own_namespace"
)

func UnmarshalAddonInstallModeList

func UnmarshalAddonInstallModeList(source interface{}) (items []AddonInstallMode, err error)

UnmarshalAddonInstallModeList reads a list of values of the 'addon_install_mode' type from the given source, which can be a slice of bytes, a string or a reader.

type AddonList

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

AddonList is a list of values of the 'addon' type.

func (*AddonList) Each

func (l *AddonList) Each(f func(item *Addon) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonList) Empty

func (l *AddonList) Empty() bool

Empty returns true if the list is empty.

func (*AddonList) Get

func (l *AddonList) Get(i int) *Addon

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*AddonList) GetHREF

func (l *AddonList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*AddonList) HREF

func (l *AddonList) HREF() string

HREF returns the link to the list.

func (*AddonList) Kind

func (l *AddonList) Kind() string

Kind returns the name of the type of the object.

func (*AddonList) Len

func (l *AddonList) Len() int

Len returns the length of the list.

func (l *AddonList) Link() bool

Link returns true iif this is a link.

func (*AddonList) Range

func (l *AddonList) Range(f func(index int, item *Addon) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonList) Slice

func (l *AddonList) Slice() []*Addon

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type AddonListBuilder

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

AddonListBuilder contains the data and logic needed to build 'addon' objects.

func NewAddonList

func NewAddonList() *AddonListBuilder

NewAddonList creates a new builder of 'addon' objects.

func (*AddonListBuilder) Build

func (b *AddonListBuilder) Build() (list *AddonList, err error)

Build creates a list of 'addon' objects using the configuration stored in the builder.

func (*AddonListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*AddonListBuilder) Empty

func (b *AddonListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*AddonListBuilder) Items

func (b *AddonListBuilder) Items(values ...*AddonBuilder) *AddonListBuilder

Items sets the items of the list.

type AddonNamespace

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

AddonNamespace represents the values of the 'addon_namespace' type.

Representation of an addon namespace object.

func UnmarshalAddonNamespace

func UnmarshalAddonNamespace(source interface{}) (object *AddonNamespace, err error)

UnmarshalAddonNamespace reads a value of the 'addon_namespace' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalAddonNamespaceList

func UnmarshalAddonNamespaceList(source interface{}) (items []*AddonNamespace, err error)

UnmarshalAddonNamespaceList reads a list of values of the 'addon_namespace' type from the given source, which can be a slice of bytes, a string or a reader.

func (*AddonNamespace) Annotations

func (o *AddonNamespace) Annotations() map[string]string

Annotations returns the value of the 'annotations' attribute, or the zero value of the type if the attribute doesn't have a value.

Annotations to be included in the addon namespace

func (*AddonNamespace) Empty

func (o *AddonNamespace) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*AddonNamespace) Enabled

func (o *AddonNamespace) Enabled() bool

Enabled returns the value of the 'enabled' attribute, or the zero value of the type if the attribute doesn't have a value.

Enabled shows if this namespace object is in use

func (*AddonNamespace) GetAnnotations

func (o *AddonNamespace) GetAnnotations() (value map[string]string, ok bool)

GetAnnotations returns the value of the 'annotations' attribute and a flag indicating if the attribute has a value.

Annotations to be included in the addon namespace

func (*AddonNamespace) GetEnabled

func (o *AddonNamespace) GetEnabled() (value bool, ok bool)

GetEnabled returns the value of the 'enabled' attribute and a flag indicating if the attribute has a value.

Enabled shows if this namespace object is in use

func (*AddonNamespace) GetLabels

func (o *AddonNamespace) GetLabels() (value map[string]string, ok bool)

GetLabels returns the value of the 'labels' attribute and a flag indicating if the attribute has a value.

Labels to be included in the addon namespace

func (*AddonNamespace) GetName

func (o *AddonNamespace) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

Name of the namespace

func (*AddonNamespace) Labels

func (o *AddonNamespace) Labels() map[string]string

Labels returns the value of the 'labels' attribute, or the zero value of the type if the attribute doesn't have a value.

Labels to be included in the addon namespace

func (*AddonNamespace) Name

func (o *AddonNamespace) Name() string

Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.

Name of the namespace

type AddonNamespaceBuilder

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

AddonNamespaceBuilder contains the data and logic needed to build 'addon_namespace' objects.

Representation of an addon namespace object.

func NewAddonNamespace

func NewAddonNamespace() *AddonNamespaceBuilder

NewAddonNamespace creates a new builder of 'addon_namespace' objects.

func (*AddonNamespaceBuilder) Annotations

func (b *AddonNamespaceBuilder) Annotations(value map[string]string) *AddonNamespaceBuilder

Annotations sets the value of the 'annotations' attribute to the given value.

func (*AddonNamespaceBuilder) Build

func (b *AddonNamespaceBuilder) Build() (object *AddonNamespace, err error)

Build creates a 'addon_namespace' object using the configuration stored in the builder.

func (*AddonNamespaceBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*AddonNamespaceBuilder) Empty

func (b *AddonNamespaceBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*AddonNamespaceBuilder) Enabled

Enabled sets the value of the 'enabled' attribute to the given value.

func (*AddonNamespaceBuilder) Labels

Labels sets the value of the 'labels' attribute to the given value.

func (*AddonNamespaceBuilder) Name

Name sets the value of the 'name' attribute to the given value.

type AddonNamespaceList

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

AddonNamespaceList is a list of values of the 'addon_namespace' type.

func (*AddonNamespaceList) Each

func (l *AddonNamespaceList) Each(f func(item *AddonNamespace) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonNamespaceList) Empty

func (l *AddonNamespaceList) Empty() bool

Empty returns true if the list is empty.

func (*AddonNamespaceList) Get

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*AddonNamespaceList) Len

func (l *AddonNamespaceList) Len() int

Len returns the length of the list.

func (*AddonNamespaceList) Range

func (l *AddonNamespaceList) Range(f func(index int, item *AddonNamespace) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonNamespaceList) Slice

func (l *AddonNamespaceList) Slice() []*AddonNamespace

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type AddonNamespaceListBuilder

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

AddonNamespaceListBuilder contains the data and logic needed to build 'addon_namespace' objects.

func NewAddonNamespaceList

func NewAddonNamespaceList() *AddonNamespaceListBuilder

NewAddonNamespaceList creates a new builder of 'addon_namespace' objects.

func (*AddonNamespaceListBuilder) Build

func (b *AddonNamespaceListBuilder) Build() (list *AddonNamespaceList, err error)

Build creates a list of 'addon_namespace' objects using the configuration stored in the builder.

func (*AddonNamespaceListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*AddonNamespaceListBuilder) Empty

func (b *AddonNamespaceListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*AddonNamespaceListBuilder) Items

Items sets the items of the list.

type AddonParameter

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

AddonParameter represents the values of the 'addon_parameter' type.

Representation of an addon parameter.

func UnmarshalAddonParameter

func UnmarshalAddonParameter(source interface{}) (object *AddonParameter, err error)

UnmarshalAddonParameter reads a value of the 'addon_parameter' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalAddonParameterList

func UnmarshalAddonParameterList(source interface{}) (items []*AddonParameter, err error)

UnmarshalAddonParameterList reads a list of values of the 'addon_parameter' type from the given source, which can be a slice of bytes, a string or a reader.

func (*AddonParameter) Conditions

func (o *AddonParameter) Conditions() []*AddonRequirement

Conditions returns the value of the 'conditions' attribute, or the zero value of the type if the attribute doesn't have a value.

Conditions in which this parameter is valid for

func (*AddonParameter) DefaultValue

func (o *AddonParameter) DefaultValue() string

DefaultValue returns the value of the 'default_value' attribute, or the zero value of the type if the attribute doesn't have a value.

Indicates the value default for the addon parameter.

func (*AddonParameter) Description

func (o *AddonParameter) Description() string

Description returns the value of the 'description' attribute, or the zero value of the type if the attribute doesn't have a value.

Description of the addon parameter.

func (*AddonParameter) Editable

func (o *AddonParameter) Editable() bool

Editable returns the value of the 'editable' attribute, or the zero value of the type if the attribute doesn't have a value.

Indicates if this parameter can be edited after creation.

func (*AddonParameter) EditableDirection

func (o *AddonParameter) EditableDirection() string

EditableDirection returns the value of the 'editable_direction' attribute, or the zero value of the type if the attribute doesn't have a value.

Restricts if the parameter can be upscaled/downscaled Expected values are "up", "down", or "" (no restriction).

func (*AddonParameter) Empty

func (o *AddonParameter) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*AddonParameter) Enabled

func (o *AddonParameter) Enabled() bool

Enabled returns the value of the 'enabled' attribute, or the zero value of the type if the attribute doesn't have a value.

Indicates if this parameter is enabled for the addon.

func (*AddonParameter) GetConditions

func (o *AddonParameter) GetConditions() (value []*AddonRequirement, ok bool)

GetConditions returns the value of the 'conditions' attribute and a flag indicating if the attribute has a value.

Conditions in which this parameter is valid for

func (*AddonParameter) GetDefaultValue

func (o *AddonParameter) GetDefaultValue() (value string, ok bool)

GetDefaultValue returns the value of the 'default_value' attribute and a flag indicating if the attribute has a value.

Indicates the value default for the addon parameter.

func (*AddonParameter) GetDescription

func (o *AddonParameter) GetDescription() (value string, ok bool)

GetDescription returns the value of the 'description' attribute and a flag indicating if the attribute has a value.

Description of the addon parameter.

func (*AddonParameter) GetEditable

func (o *AddonParameter) GetEditable() (value bool, ok bool)

GetEditable returns the value of the 'editable' attribute and a flag indicating if the attribute has a value.

Indicates if this parameter can be edited after creation.

func (*AddonParameter) GetEditableDirection

func (o *AddonParameter) GetEditableDirection() (value string, ok bool)

GetEditableDirection returns the value of the 'editable_direction' attribute and a flag indicating if the attribute has a value.

Restricts if the parameter can be upscaled/downscaled Expected values are "up", "down", or "" (no restriction).

func (*AddonParameter) GetEnabled

func (o *AddonParameter) GetEnabled() (value bool, ok bool)

GetEnabled returns the value of the 'enabled' attribute and a flag indicating if the attribute has a value.

Indicates if this parameter is enabled for the addon.

func (*AddonParameter) GetID

func (o *AddonParameter) GetID() (value string, ok bool)

GetID returns the value of the 'ID' attribute and a flag indicating if the attribute has a value.

ID for this addon parameter

func (*AddonParameter) GetName

func (o *AddonParameter) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

Name of the addon parameter.

func (*AddonParameter) GetOptions

func (o *AddonParameter) GetOptions() (value []*AddonParameterOption, ok bool)

GetOptions returns the value of the 'options' attribute and a flag indicating if the attribute has a value.

List of options for the addon parameter value.

func (*AddonParameter) GetRequired

func (o *AddonParameter) GetRequired() (value bool, ok bool)

GetRequired returns the value of the 'required' attribute and a flag indicating if the attribute has a value.

Indicates if this parameter is required by the addon.

func (*AddonParameter) GetValidation

func (o *AddonParameter) GetValidation() (value string, ok bool)

GetValidation returns the value of the 'validation' attribute and a flag indicating if the attribute has a value.

Validation rule for the addon parameter.

func (*AddonParameter) GetValidationErrMsg

func (o *AddonParameter) GetValidationErrMsg() (value string, ok bool)

GetValidationErrMsg returns the value of the 'validation_err_msg' attribute and a flag indicating if the attribute has a value.

Error message to return should the parameter be invalid.

func (*AddonParameter) GetValueType

func (o *AddonParameter) GetValueType() (value AddonParameterValueType, ok bool)

GetValueType returns the value of the 'value_type' attribute and a flag indicating if the attribute has a value.

Type of value of the addon parameter.

func (*AddonParameter) ID

func (o *AddonParameter) ID() string

ID returns the value of the 'ID' attribute, or the zero value of the type if the attribute doesn't have a value.

ID for this addon parameter

func (*AddonParameter) Name

func (o *AddonParameter) Name() string

Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.

Name of the addon parameter.

func (*AddonParameter) Options

func (o *AddonParameter) Options() []*AddonParameterOption

Options returns the value of the 'options' attribute, or the zero value of the type if the attribute doesn't have a value.

List of options for the addon parameter value.

func (*AddonParameter) Required

func (o *AddonParameter) Required() bool

Required returns the value of the 'required' attribute, or the zero value of the type if the attribute doesn't have a value.

Indicates if this parameter is required by the addon.

func (*AddonParameter) Validation

func (o *AddonParameter) Validation() string

Validation returns the value of the 'validation' attribute, or the zero value of the type if the attribute doesn't have a value.

Validation rule for the addon parameter.

func (*AddonParameter) ValidationErrMsg

func (o *AddonParameter) ValidationErrMsg() string

ValidationErrMsg returns the value of the 'validation_err_msg' attribute, or the zero value of the type if the attribute doesn't have a value.

Error message to return should the parameter be invalid.

func (*AddonParameter) ValueType

func (o *AddonParameter) ValueType() AddonParameterValueType

ValueType returns the value of the 'value_type' attribute, or the zero value of the type if the attribute doesn't have a value.

Type of value of the addon parameter.

type AddonParameterBuilder

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

AddonParameterBuilder contains the data and logic needed to build 'addon_parameter' objects.

Representation of an addon parameter.

func NewAddonParameter

func NewAddonParameter() *AddonParameterBuilder

NewAddonParameter creates a new builder of 'addon_parameter' objects.

func (*AddonParameterBuilder) Build

func (b *AddonParameterBuilder) Build() (object *AddonParameter, err error)

Build creates a 'addon_parameter' object using the configuration stored in the builder.

func (*AddonParameterBuilder) Conditions

Conditions sets the value of the 'conditions' attribute to the given values.

func (*AddonParameterBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*AddonParameterBuilder) DefaultValue

func (b *AddonParameterBuilder) DefaultValue(value string) *AddonParameterBuilder

DefaultValue sets the value of the 'default_value' attribute to the given value.

func (*AddonParameterBuilder) Description

func (b *AddonParameterBuilder) Description(value string) *AddonParameterBuilder

Description sets the value of the 'description' attribute to the given value.

func (*AddonParameterBuilder) Editable

func (b *AddonParameterBuilder) Editable(value bool) *AddonParameterBuilder

Editable sets the value of the 'editable' attribute to the given value.

func (*AddonParameterBuilder) EditableDirection

func (b *AddonParameterBuilder) EditableDirection(value string) *AddonParameterBuilder

EditableDirection sets the value of the 'editable_direction' attribute to the given value.

func (*AddonParameterBuilder) Empty

func (b *AddonParameterBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*AddonParameterBuilder) Enabled

Enabled sets the value of the 'enabled' attribute to the given value.

func (*AddonParameterBuilder) ID

ID sets the value of the 'ID' attribute to the given value.

func (*AddonParameterBuilder) Name

Name sets the value of the 'name' attribute to the given value.

func (*AddonParameterBuilder) Options

Options sets the value of the 'options' attribute to the given values.

func (*AddonParameterBuilder) Required

func (b *AddonParameterBuilder) Required(value bool) *AddonParameterBuilder

Required sets the value of the 'required' attribute to the given value.

func (*AddonParameterBuilder) Validation

func (b *AddonParameterBuilder) Validation(value string) *AddonParameterBuilder

Validation sets the value of the 'validation' attribute to the given value.

func (*AddonParameterBuilder) ValidationErrMsg

func (b *AddonParameterBuilder) ValidationErrMsg(value string) *AddonParameterBuilder

ValidationErrMsg sets the value of the 'validation_err_msg' attribute to the given value.

func (*AddonParameterBuilder) ValueType

ValueType sets the value of the 'value_type' attribute to the given value.

Representation of the value type for this specific addon parameter

type AddonParameterList

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

AddonParameterList is a list of values of the 'addon_parameter' type.

func (*AddonParameterList) Each

func (l *AddonParameterList) Each(f func(item *AddonParameter) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonParameterList) Empty

func (l *AddonParameterList) Empty() bool

Empty returns true if the list is empty.

func (*AddonParameterList) Get

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*AddonParameterList) Len

func (l *AddonParameterList) Len() int

Len returns the length of the list.

func (*AddonParameterList) Range

func (l *AddonParameterList) Range(f func(index int, item *AddonParameter) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonParameterList) Slice

func (l *AddonParameterList) Slice() []*AddonParameter

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type AddonParameterListBuilder

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

AddonParameterListBuilder contains the data and logic needed to build 'addon_parameter' objects.

func NewAddonParameterList

func NewAddonParameterList() *AddonParameterListBuilder

NewAddonParameterList creates a new builder of 'addon_parameter' objects.

func (*AddonParameterListBuilder) Build

func (b *AddonParameterListBuilder) Build() (list *AddonParameterList, err error)

Build creates a list of 'addon_parameter' objects using the configuration stored in the builder.

func (*AddonParameterListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*AddonParameterListBuilder) Empty

func (b *AddonParameterListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*AddonParameterListBuilder) Items

Items sets the items of the list.

type AddonParameterOption

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

AddonParameterOption represents the values of the 'addon_parameter_option' type.

Representation of an addon parameter option.

func UnmarshalAddonParameterOption

func UnmarshalAddonParameterOption(source interface{}) (object *AddonParameterOption, err error)

UnmarshalAddonParameterOption reads a value of the 'addon_parameter_option' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalAddonParameterOptionList

func UnmarshalAddonParameterOptionList(source interface{}) (items []*AddonParameterOption, err error)

UnmarshalAddonParameterOptionList reads a list of values of the 'addon_parameter_option' type from the given source, which can be a slice of bytes, a string or a reader.

func (*AddonParameterOption) Empty

func (o *AddonParameterOption) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*AddonParameterOption) GetName

func (o *AddonParameterOption) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

Name of the addon parameter option.

func (*AddonParameterOption) GetRank

func (o *AddonParameterOption) GetRank() (value int, ok bool)

GetRank returns the value of the 'rank' attribute and a flag indicating if the attribute has a value.

Rank of option to be used in cases where editable direction should be restricted.

func (*AddonParameterOption) GetRequirements

func (o *AddonParameterOption) GetRequirements() (value []*AddonRequirement, ok bool)

GetRequirements returns the value of the 'requirements' attribute and a flag indicating if the attribute has a value.

List of addon requirements for this parameter option.

func (*AddonParameterOption) GetValue

func (o *AddonParameterOption) GetValue() (value string, ok bool)

GetValue returns the value of the 'value' attribute and a flag indicating if the attribute has a value.

Value of the addon parameter option.

func (*AddonParameterOption) Name

func (o *AddonParameterOption) Name() string

Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.

Name of the addon parameter option.

func (*AddonParameterOption) Rank

func (o *AddonParameterOption) Rank() int

Rank returns the value of the 'rank' attribute, or the zero value of the type if the attribute doesn't have a value.

Rank of option to be used in cases where editable direction should be restricted.

func (*AddonParameterOption) Requirements

func (o *AddonParameterOption) Requirements() []*AddonRequirement

Requirements returns the value of the 'requirements' attribute, or the zero value of the type if the attribute doesn't have a value.

List of addon requirements for this parameter option.

func (*AddonParameterOption) Value

func (o *AddonParameterOption) Value() string

Value returns the value of the 'value' attribute, or the zero value of the type if the attribute doesn't have a value.

Value of the addon parameter option.

type AddonParameterOptionBuilder

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

AddonParameterOptionBuilder contains the data and logic needed to build 'addon_parameter_option' objects.

Representation of an addon parameter option.

func NewAddonParameterOption

func NewAddonParameterOption() *AddonParameterOptionBuilder

NewAddonParameterOption creates a new builder of 'addon_parameter_option' objects.

func (*AddonParameterOptionBuilder) Build

func (b *AddonParameterOptionBuilder) Build() (object *AddonParameterOption, err error)

Build creates a 'addon_parameter_option' object using the configuration stored in the builder.

func (*AddonParameterOptionBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*AddonParameterOptionBuilder) Empty

func (b *AddonParameterOptionBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*AddonParameterOptionBuilder) Name

Name sets the value of the 'name' attribute to the given value.

func (*AddonParameterOptionBuilder) Rank

Rank sets the value of the 'rank' attribute to the given value.

func (*AddonParameterOptionBuilder) Requirements

Requirements sets the value of the 'requirements' attribute to the given values.

func (*AddonParameterOptionBuilder) Value

Value sets the value of the 'value' attribute to the given value.

type AddonParameterOptionList

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

AddonParameterOptionList is a list of values of the 'addon_parameter_option' type.

func (*AddonParameterOptionList) Each

func (l *AddonParameterOptionList) Each(f func(item *AddonParameterOption) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonParameterOptionList) Empty

func (l *AddonParameterOptionList) Empty() bool

Empty returns true if the list is empty.

func (*AddonParameterOptionList) Get

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*AddonParameterOptionList) Len

func (l *AddonParameterOptionList) Len() int

Len returns the length of the list.

func (*AddonParameterOptionList) Range

func (l *AddonParameterOptionList) Range(f func(index int, item *AddonParameterOption) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonParameterOptionList) Slice

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type AddonParameterOptionListBuilder

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

AddonParameterOptionListBuilder contains the data and logic needed to build 'addon_parameter_option' objects.

func NewAddonParameterOptionList

func NewAddonParameterOptionList() *AddonParameterOptionListBuilder

NewAddonParameterOptionList creates a new builder of 'addon_parameter_option' objects.

func (*AddonParameterOptionListBuilder) Build

Build creates a list of 'addon_parameter_option' objects using the configuration stored in the builder.

func (*AddonParameterOptionListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*AddonParameterOptionListBuilder) Empty

Empty returns true if the list is empty.

func (*AddonParameterOptionListBuilder) Items

Items sets the items of the list.

type AddonParameterValueType

type AddonParameterValueType string

AddonParameterValueType represents the values of the 'addon_parameter_value_type' enumerated type.

const (
	// This value type enforces a valid CIDR value to be passed as parameter value
	AddonParameterValueTypeCIDR AddonParameterValueType = "cidr"
	// This value type must be a valid boolean
	AddonParameterValueTypeBoolean AddonParameterValueType = "boolean"
	// This value type must be a valid number, this includes integer and float type numbers
	AddonParameterValueTypeNumber AddonParameterValueType = "number"
	// This value must match a valid SKU resource in OCM
	AddonParameterValueTypeResource AddonParameterValueType = "resource"
	// This value must match a valid SKU resource in OCM and allows for validation of SKU resource in OCM
	AddonParameterValueTypeResourceRequirement AddonParameterValueType = "resource_requirement"
	// This value type must be a valid string
	AddonParameterValueTypeString AddonParameterValueType = "string"
)

func UnmarshalAddonParameterValueTypeList

func UnmarshalAddonParameterValueTypeList(source interface{}) (items []AddonParameterValueType, err error)

UnmarshalAddonParameterValueTypeList reads a list of values of the 'addon_parameter_value_type' type from the given source, which can be a slice of bytes, a string or a reader.

type AddonPollRequest

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

AddonPollRequest is the request for the Poll method.

func (*AddonPollRequest) Header

func (r *AddonPollRequest) Header(name string, value interface{}) *AddonPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*AddonPollRequest) Interval

func (r *AddonPollRequest) Interval(value time.Duration) *AddonPollRequest

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*AddonPollRequest) Parameter

func (r *AddonPollRequest) Parameter(name string, value interface{}) *AddonPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*AddonPollRequest) Predicate

func (r *AddonPollRequest) Predicate(value func(*AddonGetResponse) bool) *AddonPollRequest

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*AddonPollRequest) StartContext

func (r *AddonPollRequest) StartContext(ctx context.Context) (response *AddonPollResponse, err error)

StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.

The context must have a timeout or deadline, otherwise this method will immediately return an error.

func (*AddonPollRequest) Status

func (r *AddonPollRequest) Status(value int) *AddonPollRequest

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type AddonPollResponse

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

AddonPollResponse is the response for the Poll method.

func (*AddonPollResponse) Body

func (r *AddonPollResponse) Body() *Addon

Body returns the value of the 'body' parameter.

func (*AddonPollResponse) Error

func (r *AddonPollResponse) Error() *errors.Error

Error returns the response error.

func (*AddonPollResponse) GetBody

func (r *AddonPollResponse) GetBody() (value *Addon, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*AddonPollResponse) Header

func (r *AddonPollResponse) Header() http.Header

Header returns header of the response.

func (*AddonPollResponse) Status

func (r *AddonPollResponse) Status() int

Status returns the response status code.

type AddonRequirement

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

AddonRequirement represents the values of the 'addon_requirement' type.

Representation of an addon requirement.

func UnmarshalAddonRequirement

func UnmarshalAddonRequirement(source interface{}) (object *AddonRequirement, err error)

UnmarshalAddonRequirement reads a value of the 'addon_requirement' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalAddonRequirementList

func UnmarshalAddonRequirementList(source interface{}) (items []*AddonRequirement, err error)

UnmarshalAddonRequirementList reads a list of values of the 'addon_requirement' type from the given source, which can be a slice of bytes, a string or a reader.

func (*AddonRequirement) Data

func (o *AddonRequirement) Data() map[string]interface{}

Data returns the value of the 'data' attribute, or the zero value of the type if the attribute doesn't have a value.

Data for the addon requirement.

func (*AddonRequirement) Empty

func (o *AddonRequirement) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*AddonRequirement) Enabled

func (o *AddonRequirement) Enabled() bool

Enabled returns the value of the 'enabled' attribute, or the zero value of the type if the attribute doesn't have a value.

Indicates if this requirement is enabled for the addon.

func (*AddonRequirement) GetData

func (o *AddonRequirement) GetData() (value map[string]interface{}, ok bool)

GetData returns the value of the 'data' attribute and a flag indicating if the attribute has a value.

Data for the addon requirement.

func (*AddonRequirement) GetEnabled

func (o *AddonRequirement) GetEnabled() (value bool, ok bool)

GetEnabled returns the value of the 'enabled' attribute and a flag indicating if the attribute has a value.

Indicates if this requirement is enabled for the addon.

func (*AddonRequirement) GetID

func (o *AddonRequirement) GetID() (value string, ok bool)

GetID returns the value of the 'ID' attribute and a flag indicating if the attribute has a value.

ID of the addon requirement.

func (*AddonRequirement) GetResource

func (o *AddonRequirement) GetResource() (value AddonRequirementResource, ok bool)

GetResource returns the value of the 'resource' attribute and a flag indicating if the attribute has a value.

Type of resource of the addon requirement.

func (*AddonRequirement) GetStatus

func (o *AddonRequirement) GetStatus() (value *AddonRequirementStatus, ok bool)

GetStatus returns the value of the 'status' attribute and a flag indicating if the attribute has a value.

Optional cluster specific status for the addon.

func (*AddonRequirement) ID

func (o *AddonRequirement) ID() string

ID returns the value of the 'ID' attribute, or the zero value of the type if the attribute doesn't have a value.

ID of the addon requirement.

func (*AddonRequirement) Resource

Resource returns the value of the 'resource' attribute, or the zero value of the type if the attribute doesn't have a value.

Type of resource of the addon requirement.

func (*AddonRequirement) Status

Status returns the value of the 'status' attribute, or the zero value of the type if the attribute doesn't have a value.

Optional cluster specific status for the addon.

type AddonRequirementBuilder

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

AddonRequirementBuilder contains the data and logic needed to build 'addon_requirement' objects.

Representation of an addon requirement.

func NewAddonRequirement

func NewAddonRequirement() *AddonRequirementBuilder

NewAddonRequirement creates a new builder of 'addon_requirement' objects.

func (*AddonRequirementBuilder) Build

func (b *AddonRequirementBuilder) Build() (object *AddonRequirement, err error)

Build creates a 'addon_requirement' object using the configuration stored in the builder.

func (*AddonRequirementBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*AddonRequirementBuilder) Data

func (b *AddonRequirementBuilder) Data(value map[string]interface{}) *AddonRequirementBuilder

Data sets the value of the 'data' attribute to the given value.

func (*AddonRequirementBuilder) Empty

func (b *AddonRequirementBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*AddonRequirementBuilder) Enabled

Enabled sets the value of the 'enabled' attribute to the given value.

func (*AddonRequirementBuilder) ID

ID sets the value of the 'ID' attribute to the given value.

func (*AddonRequirementBuilder) Resource

Resource sets the value of the 'resource' attribute to the given value.

Addon requirement resource type

func (*AddonRequirementBuilder) Status

Status sets the value of the 'status' attribute to the given value.

Representation of an addon requirement status.

type AddonRequirementList

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

AddonRequirementList is a list of values of the 'addon_requirement' type.

func (*AddonRequirementList) Each

func (l *AddonRequirementList) Each(f func(item *AddonRequirement) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonRequirementList) Empty

func (l *AddonRequirementList) Empty() bool

Empty returns true if the list is empty.

func (*AddonRequirementList) Get

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*AddonRequirementList) Len

func (l *AddonRequirementList) Len() int

Len returns the length of the list.

func (*AddonRequirementList) Range

func (l *AddonRequirementList) Range(f func(index int, item *AddonRequirement) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonRequirementList) Slice

func (l *AddonRequirementList) Slice() []*AddonRequirement

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type AddonRequirementListBuilder

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

AddonRequirementListBuilder contains the data and logic needed to build 'addon_requirement' objects.

func NewAddonRequirementList

func NewAddonRequirementList() *AddonRequirementListBuilder

NewAddonRequirementList creates a new builder of 'addon_requirement' objects.

func (*AddonRequirementListBuilder) Build

func (b *AddonRequirementListBuilder) Build() (list *AddonRequirementList, err error)

Build creates a list of 'addon_requirement' objects using the configuration stored in the builder.

func (*AddonRequirementListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*AddonRequirementListBuilder) Empty

func (b *AddonRequirementListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*AddonRequirementListBuilder) Items

Items sets the items of the list.

type AddonRequirementResource

type AddonRequirementResource string

AddonRequirementResource represents the values of the 'addon_requirement_resource' enumerated type.

const (
	// This requirement resource data will be validated and checked against addon installation resources
	AddonRequirementResourceAddon AddonRequirementResource = "addon"
	// This requirement resource data will be validated and checked against cluster resources
	AddonRequirementResourceCluster AddonRequirementResource = "cluster"
	// This requirement resource data will be validated and checked against machine pool resources
	AddonRequirementResourceMachinePool AddonRequirementResource = "machine_pool"
)

func UnmarshalAddonRequirementResourceList

func UnmarshalAddonRequirementResourceList(source interface{}) (items []AddonRequirementResource, err error)

UnmarshalAddonRequirementResourceList reads a list of values of the 'addon_requirement_resource' type from the given source, which can be a slice of bytes, a string or a reader.

type AddonRequirementStatus

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

AddonRequirementStatus represents the values of the 'addon_requirement_status' type.

Representation of an addon requirement status.

func UnmarshalAddonRequirementStatus

func UnmarshalAddonRequirementStatus(source interface{}) (object *AddonRequirementStatus, err error)

UnmarshalAddonRequirementStatus reads a value of the 'addon_requirement_status' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalAddonRequirementStatusList

func UnmarshalAddonRequirementStatusList(source interface{}) (items []*AddonRequirementStatus, err error)

UnmarshalAddonRequirementStatusList reads a list of values of the 'addon_requirement_status' type from the given source, which can be a slice of bytes, a string or a reader.

func (*AddonRequirementStatus) Empty

func (o *AddonRequirementStatus) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*AddonRequirementStatus) ErrorMsgs

func (o *AddonRequirementStatus) ErrorMsgs() []string

ErrorMsgs returns the value of the 'error_msgs' attribute, or the zero value of the type if the attribute doesn't have a value.

Error messages detailing reasons for unfulfilled requirements.

func (*AddonRequirementStatus) Fulfilled

func (o *AddonRequirementStatus) Fulfilled() bool

Fulfilled returns the value of the 'fulfilled' attribute, or the zero value of the type if the attribute doesn't have a value.

Indicates if this requirement is fulfilled.

func (*AddonRequirementStatus) GetErrorMsgs

func (o *AddonRequirementStatus) GetErrorMsgs() (value []string, ok bool)

GetErrorMsgs returns the value of the 'error_msgs' attribute and a flag indicating if the attribute has a value.

Error messages detailing reasons for unfulfilled requirements.

func (*AddonRequirementStatus) GetFulfilled

func (o *AddonRequirementStatus) GetFulfilled() (value bool, ok bool)

GetFulfilled returns the value of the 'fulfilled' attribute and a flag indicating if the attribute has a value.

Indicates if this requirement is fulfilled.

type AddonRequirementStatusBuilder

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

AddonRequirementStatusBuilder contains the data and logic needed to build 'addon_requirement_status' objects.

Representation of an addon requirement status.

func NewAddonRequirementStatus

func NewAddonRequirementStatus() *AddonRequirementStatusBuilder

NewAddonRequirementStatus creates a new builder of 'addon_requirement_status' objects.

func (*AddonRequirementStatusBuilder) Build

Build creates a 'addon_requirement_status' object using the configuration stored in the builder.

func (*AddonRequirementStatusBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*AddonRequirementStatusBuilder) Empty

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*AddonRequirementStatusBuilder) ErrorMsgs

ErrorMsgs sets the value of the 'error_msgs' attribute to the given values.

func (*AddonRequirementStatusBuilder) Fulfilled

Fulfilled sets the value of the 'fulfilled' attribute to the given value.

type AddonRequirementStatusList

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

AddonRequirementStatusList is a list of values of the 'addon_requirement_status' type.

func (*AddonRequirementStatusList) Each

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonRequirementStatusList) Empty

func (l *AddonRequirementStatusList) Empty() bool

Empty returns true if the list is empty.

func (*AddonRequirementStatusList) Get

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*AddonRequirementStatusList) Len

Len returns the length of the list.

func (*AddonRequirementStatusList) Range

func (l *AddonRequirementStatusList) Range(f func(index int, item *AddonRequirementStatus) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonRequirementStatusList) Slice

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type AddonRequirementStatusListBuilder

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

AddonRequirementStatusListBuilder contains the data and logic needed to build 'addon_requirement_status' objects.

func NewAddonRequirementStatusList

func NewAddonRequirementStatusList() *AddonRequirementStatusListBuilder

NewAddonRequirementStatusList creates a new builder of 'addon_requirement_status' objects.

func (*AddonRequirementStatusListBuilder) Build

Build creates a list of 'addon_requirement_status' objects using the configuration stored in the builder.

func (*AddonRequirementStatusListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*AddonRequirementStatusListBuilder) Empty

Empty returns true if the list is empty.

func (*AddonRequirementStatusListBuilder) Items

Items sets the items of the list.

type AddonSecretPropagation

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

AddonSecretPropagation represents the values of the 'addon_secret_propagation' type.

Representation of an addon secret propagation

func UnmarshalAddonSecretPropagation

func UnmarshalAddonSecretPropagation(source interface{}) (object *AddonSecretPropagation, err error)

UnmarshalAddonSecretPropagation reads a value of the 'addon_secret_propagation' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalAddonSecretPropagationList

func UnmarshalAddonSecretPropagationList(source interface{}) (items []*AddonSecretPropagation, err error)

UnmarshalAddonSecretPropagationList reads a list of values of the 'addon_secret_propagation' type from the given source, which can be a slice of bytes, a string or a reader.

func (*AddonSecretPropagation) DestinationSecret

func (o *AddonSecretPropagation) DestinationSecret() string

DestinationSecret returns the value of the 'destination_secret' attribute, or the zero value of the type if the attribute doesn't have a value.

DestinationSecret is location of the secret to be added

func (*AddonSecretPropagation) Empty

func (o *AddonSecretPropagation) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*AddonSecretPropagation) Enabled

func (o *AddonSecretPropagation) Enabled() bool

Enabled returns the value of the 'enabled' attribute, or the zero value of the type if the attribute doesn't have a value.

Indicates is this secret propagation is enabled for the addon

func (*AddonSecretPropagation) GetDestinationSecret

func (o *AddonSecretPropagation) GetDestinationSecret() (value string, ok bool)

GetDestinationSecret returns the value of the 'destination_secret' attribute and a flag indicating if the attribute has a value.

DestinationSecret is location of the secret to be added

func (*AddonSecretPropagation) GetEnabled

func (o *AddonSecretPropagation) GetEnabled() (value bool, ok bool)

GetEnabled returns the value of the 'enabled' attribute and a flag indicating if the attribute has a value.

Indicates is this secret propagation is enabled for the addon

func (*AddonSecretPropagation) GetID

func (o *AddonSecretPropagation) GetID() (value string, ok bool)

GetID returns the value of the 'ID' attribute and a flag indicating if the attribute has a value.

ID of the secret propagation

func (*AddonSecretPropagation) GetSourceSecret

func (o *AddonSecretPropagation) GetSourceSecret() (value string, ok bool)

GetSourceSecret returns the value of the 'source_secret' attribute and a flag indicating if the attribute has a value.

SourceSecret is location of the source secret

func (*AddonSecretPropagation) ID

ID returns the value of the 'ID' attribute, or the zero value of the type if the attribute doesn't have a value.

ID of the secret propagation

func (*AddonSecretPropagation) SourceSecret

func (o *AddonSecretPropagation) SourceSecret() string

SourceSecret returns the value of the 'source_secret' attribute, or the zero value of the type if the attribute doesn't have a value.

SourceSecret is location of the source secret

type AddonSecretPropagationBuilder

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

AddonSecretPropagationBuilder contains the data and logic needed to build 'addon_secret_propagation' objects.

Representation of an addon secret propagation

func NewAddonSecretPropagation

func NewAddonSecretPropagation() *AddonSecretPropagationBuilder

NewAddonSecretPropagation creates a new builder of 'addon_secret_propagation' objects.

func (*AddonSecretPropagationBuilder) Build

Build creates a 'addon_secret_propagation' object using the configuration stored in the builder.

func (*AddonSecretPropagationBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*AddonSecretPropagationBuilder) DestinationSecret

DestinationSecret sets the value of the 'destination_secret' attribute to the given value.

func (*AddonSecretPropagationBuilder) Empty

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*AddonSecretPropagationBuilder) Enabled

Enabled sets the value of the 'enabled' attribute to the given value.

func (*AddonSecretPropagationBuilder) ID

ID sets the value of the 'ID' attribute to the given value.

func (*AddonSecretPropagationBuilder) SourceSecret

SourceSecret sets the value of the 'source_secret' attribute to the given value.

type AddonSecretPropagationList

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

AddonSecretPropagationList is a list of values of the 'addon_secret_propagation' type.

func (*AddonSecretPropagationList) Each

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonSecretPropagationList) Empty

func (l *AddonSecretPropagationList) Empty() bool

Empty returns true if the list is empty.

func (*AddonSecretPropagationList) Get

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*AddonSecretPropagationList) Len

Len returns the length of the list.

func (*AddonSecretPropagationList) Range

func (l *AddonSecretPropagationList) Range(f func(index int, item *AddonSecretPropagation) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonSecretPropagationList) Slice

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type AddonSecretPropagationListBuilder

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

AddonSecretPropagationListBuilder contains the data and logic needed to build 'addon_secret_propagation' objects.

func NewAddonSecretPropagationList

func NewAddonSecretPropagationList() *AddonSecretPropagationListBuilder

NewAddonSecretPropagationList creates a new builder of 'addon_secret_propagation' objects.

func (*AddonSecretPropagationListBuilder) Build

Build creates a list of 'addon_secret_propagation' objects using the configuration stored in the builder.

func (*AddonSecretPropagationListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*AddonSecretPropagationListBuilder) Empty

Empty returns true if the list is empty.

func (*AddonSecretPropagationListBuilder) Items

Items sets the items of the list.

type AddonStatus

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

AddonStatus represents the values of the 'addon_status' type.

Representation of an addon status.

func UnmarshalAddonStatus

func UnmarshalAddonStatus(source interface{}) (object *AddonStatus, err error)

UnmarshalAddonStatus reads a value of the 'addon_status' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalAddonStatusList

func UnmarshalAddonStatusList(source interface{}) (items []*AddonStatus, err error)

UnmarshalAddonStatusList reads a list of values of the 'addon_status' type from the given source, which can be a slice of bytes, a string or a reader.

func (*AddonStatus) AddonId

func (o *AddonStatus) AddonId() string

AddonId returns the value of the 'addon_id' attribute, or the zero value of the type if the attribute doesn't have a value.

ID of the addon whose status belongs to.

func (*AddonStatus) CorrelationID

func (o *AddonStatus) CorrelationID() string

CorrelationID returns the value of the 'correlation_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

Identifier for co-relating current AddonCR revision and reported status.

func (*AddonStatus) Empty

func (o *AddonStatus) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*AddonStatus) GetAddonId

func (o *AddonStatus) GetAddonId() (value string, ok bool)

GetAddonId returns the value of the 'addon_id' attribute and a flag indicating if the attribute has a value.

ID of the addon whose status belongs to.

func (*AddonStatus) GetCorrelationID

func (o *AddonStatus) GetCorrelationID() (value string, ok bool)

GetCorrelationID returns the value of the 'correlation_ID' attribute and a flag indicating if the attribute has a value.

Identifier for co-relating current AddonCR revision and reported status.

func (*AddonStatus) GetHREF

func (o *AddonStatus) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*AddonStatus) GetID

func (o *AddonStatus) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*AddonStatus) GetStatusConditions

func (o *AddonStatus) GetStatusConditions() (value []*AddonStatusCondition, ok bool)

GetStatusConditions returns the value of the 'status_conditions' attribute and a flag indicating if the attribute has a value.

List of reported addon status conditions

func (*AddonStatus) HREF

func (o *AddonStatus) HREF() string

HREF returns the link to the object.

func (*AddonStatus) ID

func (o *AddonStatus) ID() string

ID returns the identifier of the object.

func (*AddonStatus) Kind

func (o *AddonStatus) Kind() string

Kind returns the name of the type of the object.

func (o *AddonStatus) Link() bool

Link returns true iif this is a link.

func (*AddonStatus) StatusConditions

func (o *AddonStatus) StatusConditions() []*AddonStatusCondition

StatusConditions returns the value of the 'status_conditions' attribute, or the zero value of the type if the attribute doesn't have a value.

List of reported addon status conditions

type AddonStatusBuilder

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

AddonStatusBuilder contains the data and logic needed to build 'addon_status' objects.

Representation of an addon status.

func NewAddonStatus

func NewAddonStatus() *AddonStatusBuilder

NewAddonStatus creates a new builder of 'addon_status' objects.

func (*AddonStatusBuilder) AddonId

func (b *AddonStatusBuilder) AddonId(value string) *AddonStatusBuilder

AddonId sets the value of the 'addon_id' attribute to the given value.

func (*AddonStatusBuilder) Build

func (b *AddonStatusBuilder) Build() (object *AddonStatus, err error)

Build creates a 'addon_status' object using the configuration stored in the builder.

func (*AddonStatusBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*AddonStatusBuilder) CorrelationID

func (b *AddonStatusBuilder) CorrelationID(value string) *AddonStatusBuilder

CorrelationID sets the value of the 'correlation_ID' attribute to the given value.

func (*AddonStatusBuilder) Empty

func (b *AddonStatusBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*AddonStatusBuilder) HREF

HREF sets the link to the object.

func (*AddonStatusBuilder) ID

ID sets the identifier of the object.

func (b *AddonStatusBuilder) Link(value bool) *AddonStatusBuilder

Link sets the flag that indicates if this is a link.

func (*AddonStatusBuilder) StatusConditions

func (b *AddonStatusBuilder) StatusConditions(values ...*AddonStatusConditionBuilder) *AddonStatusBuilder

StatusConditions sets the value of the 'status_conditions' attribute to the given values.

type AddonStatusClient

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

AddonStatusClient is the client of the 'addon_status' resource.

Manages a specific addon status.

func NewAddonStatusClient

func NewAddonStatusClient(transport http.RoundTripper, path string) *AddonStatusClient

NewAddonStatusClient creates a new client for the 'addon_status' resource using the given transport to send the requests and receive the responses.

func (*AddonStatusClient) Delete

Delete creates a request for the 'delete' method.

Deletes the addon version.

func (*AddonStatusClient) Get

Get creates a request for the 'get' method.

Retrieves the details of the addon version.

func (*AddonStatusClient) Poll

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

func (*AddonStatusClient) Update

Update creates a request for the 'update' method.

Updates the addon version.

type AddonStatusCondition

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

AddonStatusCondition represents the values of the 'addon_status_condition' type.

Representation of an addon status condition type.

func UnmarshalAddonStatusCondition

func UnmarshalAddonStatusCondition(source interface{}) (object *AddonStatusCondition, err error)

UnmarshalAddonStatusCondition reads a value of the 'addon_status_condition' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalAddonStatusConditionList

func UnmarshalAddonStatusConditionList(source interface{}) (items []*AddonStatusCondition, err error)

UnmarshalAddonStatusConditionList reads a list of values of the 'addon_status_condition' type from the given source, which can be a slice of bytes, a string or a reader.

func (*AddonStatusCondition) Empty

func (o *AddonStatusCondition) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*AddonStatusCondition) GetReason

func (o *AddonStatusCondition) GetReason() (value string, ok bool)

GetReason returns the value of the 'reason' attribute and a flag indicating if the attribute has a value.

Reason for the condition

func (*AddonStatusCondition) GetStatusType

func (o *AddonStatusCondition) GetStatusType() (value AddonStatusConditionType, ok bool)

GetStatusType returns the value of the 'status_type' attribute and a flag indicating if the attribute has a value.

Type of the reported addon status condition

func (*AddonStatusCondition) GetStatusValue

func (o *AddonStatusCondition) GetStatusValue() (value AddonStatusConditionValue, ok bool)

GetStatusValue returns the value of the 'status_value' attribute and a flag indicating if the attribute has a value.

Value of the reported addon status condition

func (*AddonStatusCondition) Reason

func (o *AddonStatusCondition) Reason() string

Reason returns the value of the 'reason' attribute, or the zero value of the type if the attribute doesn't have a value.

Reason for the condition

func (*AddonStatusCondition) StatusType

StatusType returns the value of the 'status_type' attribute, or the zero value of the type if the attribute doesn't have a value.

Type of the reported addon status condition

func (*AddonStatusCondition) StatusValue

StatusValue returns the value of the 'status_value' attribute, or the zero value of the type if the attribute doesn't have a value.

Value of the reported addon status condition

type AddonStatusConditionBuilder

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

AddonStatusConditionBuilder contains the data and logic needed to build 'addon_status_condition' objects.

Representation of an addon status condition type.

func NewAddonStatusCondition

func NewAddonStatusCondition() *AddonStatusConditionBuilder

NewAddonStatusCondition creates a new builder of 'addon_status_condition' objects.

func (*AddonStatusConditionBuilder) Build

func (b *AddonStatusConditionBuilder) Build() (object *AddonStatusCondition, err error)

Build creates a 'addon_status_condition' object using the configuration stored in the builder.

func (*AddonStatusConditionBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*AddonStatusConditionBuilder) Empty

func (b *AddonStatusConditionBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*AddonStatusConditionBuilder) Reason

Reason sets the value of the 'reason' attribute to the given value.

func (*AddonStatusConditionBuilder) StatusType

StatusType sets the value of the 'status_type' attribute to the given value.

Representation of an addon status condition type field.

func (*AddonStatusConditionBuilder) StatusValue

StatusValue sets the value of the 'status_value' attribute to the given value.

Representation of an addon status condition value field.

type AddonStatusConditionList

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

AddonStatusConditionList is a list of values of the 'addon_status_condition' type.

func (*AddonStatusConditionList) Each

func (l *AddonStatusConditionList) Each(f func(item *AddonStatusCondition) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonStatusConditionList) Empty

func (l *AddonStatusConditionList) Empty() bool

Empty returns true if the list is empty.

func (*AddonStatusConditionList) Get

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*AddonStatusConditionList) Len

func (l *AddonStatusConditionList) Len() int

Len returns the length of the list.

func (*AddonStatusConditionList) Range

func (l *AddonStatusConditionList) Range(f func(index int, item *AddonStatusCondition) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonStatusConditionList) Slice

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type AddonStatusConditionListBuilder

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

AddonStatusConditionListBuilder contains the data and logic needed to build 'addon_status_condition' objects.

func NewAddonStatusConditionList

func NewAddonStatusConditionList() *AddonStatusConditionListBuilder

NewAddonStatusConditionList creates a new builder of 'addon_status_condition' objects.

func (*AddonStatusConditionListBuilder) Build

Build creates a list of 'addon_status_condition' objects using the configuration stored in the builder.

func (*AddonStatusConditionListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*AddonStatusConditionListBuilder) Empty

Empty returns true if the list is empty.

func (*AddonStatusConditionListBuilder) Items

Items sets the items of the list.

type AddonStatusConditionType

type AddonStatusConditionType string

AddonStatusConditionType represents the values of the 'addon_status_condition_type' enumerated type.

const (
	//
	AddonStatusConditionTypeAvailable AddonStatusConditionType = "Available"
	//
	AddonStatusConditionTypeDegraded AddonStatusConditionType = "Degraded"
	//
	AddonStatusConditionTypeHealthy AddonStatusConditionType = "Healthy"
	//
	AddonStatusConditionTypeInstalled AddonStatusConditionType = "Installed"
	//
	AddonStatusConditionTypePaused AddonStatusConditionType = "Paused"
	//
	AddonStatusConditionTypeUpgrading AddonStatusConditionType = "Upgrading"
)

func UnmarshalAddonStatusConditionTypeList

func UnmarshalAddonStatusConditionTypeList(source interface{}) (items []AddonStatusConditionType, err error)

UnmarshalAddonStatusConditionTypeList reads a list of values of the 'addon_status_condition_type' type from the given source, which can be a slice of bytes, a string or a reader.

type AddonStatusConditionValue

type AddonStatusConditionValue string

AddonStatusConditionValue represents the values of the 'addon_status_condition_value' enumerated type.

const (
	//
	AddonStatusConditionValueFalse AddonStatusConditionValue = "False"
	//
	AddonStatusConditionValueTrue AddonStatusConditionValue = "True"
	//
	AddonStatusConditionValueUnknown AddonStatusConditionValue = "Unknown"
)

func UnmarshalAddonStatusConditionValueList

func UnmarshalAddonStatusConditionValueList(source interface{}) (items []AddonStatusConditionValue, err error)

UnmarshalAddonStatusConditionValueList reads a list of values of the 'addon_status_condition_value' type from the given source, which can be a slice of bytes, a string or a reader.

type AddonStatusDeleteRequest

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

AddonStatusDeleteRequest is the request for the 'delete' method.

func (*AddonStatusDeleteRequest) Header

func (r *AddonStatusDeleteRequest) Header(name string, value interface{}) *AddonStatusDeleteRequest

Header adds a request header.

func (*AddonStatusDeleteRequest) Impersonate

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AddonStatusDeleteRequest) Parameter

func (r *AddonStatusDeleteRequest) Parameter(name string, value interface{}) *AddonStatusDeleteRequest

Parameter adds a query parameter.

func (*AddonStatusDeleteRequest) Send

func (r *AddonStatusDeleteRequest) Send() (result *AddonStatusDeleteResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AddonStatusDeleteRequest) SendContext

func (r *AddonStatusDeleteRequest) SendContext(ctx context.Context) (result *AddonStatusDeleteResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type AddonStatusDeleteResponse

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

AddonStatusDeleteResponse is the response for the 'delete' method.

func (*AddonStatusDeleteResponse) Error

Error returns the response error.

func (*AddonStatusDeleteResponse) Header

Header returns header of the response.

func (*AddonStatusDeleteResponse) Status

func (r *AddonStatusDeleteResponse) Status() int

Status returns the response status code.

type AddonStatusGetRequest

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

AddonStatusGetRequest is the request for the 'get' method.

func (*AddonStatusGetRequest) Header

func (r *AddonStatusGetRequest) Header(name string, value interface{}) *AddonStatusGetRequest

Header adds a request header.

func (*AddonStatusGetRequest) Impersonate

func (r *AddonStatusGetRequest) Impersonate(user string) *AddonStatusGetRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AddonStatusGetRequest) Parameter

func (r *AddonStatusGetRequest) Parameter(name string, value interface{}) *AddonStatusGetRequest

Parameter adds a query parameter.

func (*AddonStatusGetRequest) Send

func (r *AddonStatusGetRequest) Send() (result *AddonStatusGetResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AddonStatusGetRequest) SendContext

func (r *AddonStatusGetRequest) SendContext(ctx context.Context) (result *AddonStatusGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type AddonStatusGetResponse

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

AddonStatusGetResponse is the response for the 'get' method.

func (*AddonStatusGetResponse) Body

Body returns the value of the 'body' parameter.

func (*AddonStatusGetResponse) Error

func (r *AddonStatusGetResponse) Error() *errors.Error

Error returns the response error.

func (*AddonStatusGetResponse) GetBody

func (r *AddonStatusGetResponse) GetBody() (value *AddonStatus, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*AddonStatusGetResponse) Header

func (r *AddonStatusGetResponse) Header() http.Header

Header returns header of the response.

func (*AddonStatusGetResponse) Status

func (r *AddonStatusGetResponse) Status() int

Status returns the response status code.

type AddonStatusList

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

AddonStatusList is a list of values of the 'addon_status' type.

func (*AddonStatusList) Each

func (l *AddonStatusList) Each(f func(item *AddonStatus) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonStatusList) Empty

func (l *AddonStatusList) Empty() bool

Empty returns true if the list is empty.

func (*AddonStatusList) Get

func (l *AddonStatusList) Get(i int) *AddonStatus

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*AddonStatusList) GetHREF

func (l *AddonStatusList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*AddonStatusList) HREF

func (l *AddonStatusList) HREF() string

HREF returns the link to the list.

func (*AddonStatusList) Kind

func (l *AddonStatusList) Kind() string

Kind returns the name of the type of the object.

func (*AddonStatusList) Len

func (l *AddonStatusList) Len() int

Len returns the length of the list.

func (l *AddonStatusList) Link() bool

Link returns true iif this is a link.

func (*AddonStatusList) Range

func (l *AddonStatusList) Range(f func(index int, item *AddonStatus) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonStatusList) Slice

func (l *AddonStatusList) Slice() []*AddonStatus

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type AddonStatusListBuilder

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

AddonStatusListBuilder contains the data and logic needed to build 'addon_status' objects.

func NewAddonStatusList

func NewAddonStatusList() *AddonStatusListBuilder

NewAddonStatusList creates a new builder of 'addon_status' objects.

func (*AddonStatusListBuilder) Build

func (b *AddonStatusListBuilder) Build() (list *AddonStatusList, err error)

Build creates a list of 'addon_status' objects using the configuration stored in the builder.

func (*AddonStatusListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*AddonStatusListBuilder) Empty

func (b *AddonStatusListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*AddonStatusListBuilder) Items

Items sets the items of the list.

type AddonStatusPollRequest

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

AddonStatusPollRequest is the request for the Poll method.

func (*AddonStatusPollRequest) Header

func (r *AddonStatusPollRequest) Header(name string, value interface{}) *AddonStatusPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*AddonStatusPollRequest) Interval

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*AddonStatusPollRequest) Parameter

func (r *AddonStatusPollRequest) Parameter(name string, value interface{}) *AddonStatusPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*AddonStatusPollRequest) Predicate

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*AddonStatusPollRequest) StartContext

func (r *AddonStatusPollRequest) StartContext(ctx context.Context) (response *AddonStatusPollResponse, err error)

StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.

The context must have a timeout or deadline, otherwise this method will immediately return an error.

func (*AddonStatusPollRequest) Status

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type AddonStatusPollResponse

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

AddonStatusPollResponse is the response for the Poll method.

func (*AddonStatusPollResponse) Body

Body returns the value of the 'body' parameter.

func (*AddonStatusPollResponse) Error

func (r *AddonStatusPollResponse) Error() *errors.Error

Error returns the response error.

func (*AddonStatusPollResponse) GetBody

func (r *AddonStatusPollResponse) GetBody() (value *AddonStatus, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*AddonStatusPollResponse) Header

func (r *AddonStatusPollResponse) Header() http.Header

Header returns header of the response.

func (*AddonStatusPollResponse) Status

func (r *AddonStatusPollResponse) Status() int

Status returns the response status code.

type AddonStatusUpdateRequest

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

AddonStatusUpdateRequest is the request for the 'update' method.

func (*AddonStatusUpdateRequest) Body

Body sets the value of the 'body' parameter.

func (*AddonStatusUpdateRequest) Header

func (r *AddonStatusUpdateRequest) Header(name string, value interface{}) *AddonStatusUpdateRequest

Header adds a request header.

func (*AddonStatusUpdateRequest) Impersonate

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AddonStatusUpdateRequest) Parameter

func (r *AddonStatusUpdateRequest) Parameter(name string, value interface{}) *AddonStatusUpdateRequest

Parameter adds a query parameter.

func (*AddonStatusUpdateRequest) Send

func (r *AddonStatusUpdateRequest) Send() (result *AddonStatusUpdateResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AddonStatusUpdateRequest) SendContext

func (r *AddonStatusUpdateRequest) SendContext(ctx context.Context) (result *AddonStatusUpdateResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type AddonStatusUpdateResponse

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

AddonStatusUpdateResponse is the response for the 'update' method.

func (*AddonStatusUpdateResponse) Body

Body returns the value of the 'body' parameter.

func (*AddonStatusUpdateResponse) Error

Error returns the response error.

func (*AddonStatusUpdateResponse) GetBody

func (r *AddonStatusUpdateResponse) GetBody() (value *AddonStatus, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*AddonStatusUpdateResponse) Header

Header returns header of the response.

func (*AddonStatusUpdateResponse) Status

func (r *AddonStatusUpdateResponse) Status() int

Status returns the response status code.

type AddonStatusesAddRequest

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

AddonStatusesAddRequest is the request for the 'add' method.

func (*AddonStatusesAddRequest) Body

Body sets the value of the 'body' parameter.

Description of the addon status.

func (*AddonStatusesAddRequest) Header

func (r *AddonStatusesAddRequest) Header(name string, value interface{}) *AddonStatusesAddRequest

Header adds a request header.

func (*AddonStatusesAddRequest) Impersonate

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AddonStatusesAddRequest) Parameter

func (r *AddonStatusesAddRequest) Parameter(name string, value interface{}) *AddonStatusesAddRequest

Parameter adds a query parameter.

func (*AddonStatusesAddRequest) Send

func (r *AddonStatusesAddRequest) Send() (result *AddonStatusesAddResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AddonStatusesAddRequest) SendContext

func (r *AddonStatusesAddRequest) SendContext(ctx context.Context) (result *AddonStatusesAddResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type AddonStatusesAddResponse

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

AddonStatusesAddResponse is the response for the 'add' method.

func (*AddonStatusesAddResponse) Body

Body returns the value of the 'body' parameter.

Description of the addon status.

func (*AddonStatusesAddResponse) Error

Error returns the response error.

func (*AddonStatusesAddResponse) GetBody

func (r *AddonStatusesAddResponse) GetBody() (value *AddonStatus, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Description of the addon status.

func (*AddonStatusesAddResponse) Header

func (r *AddonStatusesAddResponse) Header() http.Header

Header returns header of the response.

func (*AddonStatusesAddResponse) Status

func (r *AddonStatusesAddResponse) Status() int

Status returns the response status code.

type AddonStatusesClient

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

AddonStatusesClient is the client of the 'addon_statuses' resource.

Manages the collection of addon statuses for a cluster.

func NewAddonStatusesClient

func NewAddonStatusesClient(transport http.RoundTripper, path string) *AddonStatusesClient

NewAddonStatusesClient creates a new client for the 'addon_statuses' resource using the given transport to send the requests and receive the responses.

func (*AddonStatusesClient) Add

Add creates a request for the 'add' method.

Create a new addon status and add it to the collection of addons statuses.

func (*AddonStatusesClient) Addon

Addon returns the target 'addon_status' resource for the given identifier.

Returns a reference to a specific addon status.

func (*AddonStatusesClient) List

List creates a request for the 'list' method.

Retrieves the list of addon statuses for a cluster.

type AddonStatusesListRequest

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

AddonStatusesListRequest is the request for the 'list' method.

func (*AddonStatusesListRequest) Header

func (r *AddonStatusesListRequest) Header(name string, value interface{}) *AddonStatusesListRequest

Header adds a request header.

func (*AddonStatusesListRequest) Impersonate

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AddonStatusesListRequest) Order

Order sets the value of the 'order' parameter.

If the parameter isn't provided, or if the value is empty, then the order of the results is undefined.

func (*AddonStatusesListRequest) Page

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*AddonStatusesListRequest) Parameter

func (r *AddonStatusesListRequest) Parameter(name string, value interface{}) *AddonStatusesListRequest

Parameter adds a query parameter.

func (*AddonStatusesListRequest) Send

func (r *AddonStatusesListRequest) Send() (result *AddonStatusesListResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AddonStatusesListRequest) SendContext

func (r *AddonStatusesListRequest) SendContext(ctx context.Context) (result *AddonStatusesListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*AddonStatusesListRequest) Size

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type AddonStatusesListResponse

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

AddonStatusesListResponse is the response for the 'list' method.

func (*AddonStatusesListResponse) Error

Error returns the response error.

func (*AddonStatusesListResponse) GetItems

func (r *AddonStatusesListResponse) GetItems() (value *AddonStatusList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of addon status conditions

func (*AddonStatusesListResponse) GetPage

func (r *AddonStatusesListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*AddonStatusesListResponse) GetSize

func (r *AddonStatusesListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*AddonStatusesListResponse) GetTotal

func (r *AddonStatusesListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection regardless of the size of the page.

func (*AddonStatusesListResponse) Header

Header returns header of the response.

func (*AddonStatusesListResponse) Items

Items returns the value of the 'items' parameter.

Retrieved list of addon status conditions

func (*AddonStatusesListResponse) Page

func (r *AddonStatusesListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*AddonStatusesListResponse) Size

func (r *AddonStatusesListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*AddonStatusesListResponse) Status

func (r *AddonStatusesListResponse) Status() int

Status returns the response status code.

func (*AddonStatusesListResponse) Total

func (r *AddonStatusesListResponse) Total() int

Total returns the value of the 'total' parameter.

Total number of items of the collection regardless of the size of the page.

type AddonSubOperator

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

AddonSubOperator represents the values of the 'addon_sub_operator' type.

Representation of an addon sub operator. A sub operator is an operator who's life cycle is controlled by the addon umbrella operator.

func UnmarshalAddonSubOperator

func UnmarshalAddonSubOperator(source interface{}) (object *AddonSubOperator, err error)

UnmarshalAddonSubOperator reads a value of the 'addon_sub_operator' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalAddonSubOperatorList

func UnmarshalAddonSubOperatorList(source interface{}) (items []*AddonSubOperator, err error)

UnmarshalAddonSubOperatorList reads a list of values of the 'addon_sub_operator' type from the given source, which can be a slice of bytes, a string or a reader.

func (*AddonSubOperator) Empty

func (o *AddonSubOperator) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*AddonSubOperator) Enabled

func (o *AddonSubOperator) Enabled() bool

Enabled returns the value of the 'enabled' attribute, or the zero value of the type if the attribute doesn't have a value.

Indicates if the sub operator is enabled for the addon

func (*AddonSubOperator) GetEnabled

func (o *AddonSubOperator) GetEnabled() (value bool, ok bool)

GetEnabled returns the value of the 'enabled' attribute and a flag indicating if the attribute has a value.

Indicates if the sub operator is enabled for the addon

func (*AddonSubOperator) GetOperatorName

func (o *AddonSubOperator) GetOperatorName() (value string, ok bool)

GetOperatorName returns the value of the 'operator_name' attribute and a flag indicating if the attribute has a value.

Name of the addon sub operator

func (*AddonSubOperator) GetOperatorNamespace

func (o *AddonSubOperator) GetOperatorNamespace() (value string, ok bool)

GetOperatorNamespace returns the value of the 'operator_namespace' attribute and a flag indicating if the attribute has a value.

Namespace of the addon sub operator

func (*AddonSubOperator) OperatorName

func (o *AddonSubOperator) OperatorName() string

OperatorName returns the value of the 'operator_name' attribute, or the zero value of the type if the attribute doesn't have a value.

Name of the addon sub operator

func (*AddonSubOperator) OperatorNamespace

func (o *AddonSubOperator) OperatorNamespace() string

OperatorNamespace returns the value of the 'operator_namespace' attribute, or the zero value of the type if the attribute doesn't have a value.

Namespace of the addon sub operator

type AddonSubOperatorBuilder

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

AddonSubOperatorBuilder contains the data and logic needed to build 'addon_sub_operator' objects.

Representation of an addon sub operator. A sub operator is an operator who's life cycle is controlled by the addon umbrella operator.

func NewAddonSubOperator

func NewAddonSubOperator() *AddonSubOperatorBuilder

NewAddonSubOperator creates a new builder of 'addon_sub_operator' objects.

func (*AddonSubOperatorBuilder) Build

func (b *AddonSubOperatorBuilder) Build() (object *AddonSubOperator, err error)

Build creates a 'addon_sub_operator' object using the configuration stored in the builder.

func (*AddonSubOperatorBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*AddonSubOperatorBuilder) Empty

func (b *AddonSubOperatorBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*AddonSubOperatorBuilder) Enabled

Enabled sets the value of the 'enabled' attribute to the given value.

func (*AddonSubOperatorBuilder) OperatorName

func (b *AddonSubOperatorBuilder) OperatorName(value string) *AddonSubOperatorBuilder

OperatorName sets the value of the 'operator_name' attribute to the given value.

func (*AddonSubOperatorBuilder) OperatorNamespace

func (b *AddonSubOperatorBuilder) OperatorNamespace(value string) *AddonSubOperatorBuilder

OperatorNamespace sets the value of the 'operator_namespace' attribute to the given value.

type AddonSubOperatorList

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

AddonSubOperatorList is a list of values of the 'addon_sub_operator' type.

func (*AddonSubOperatorList) Each

func (l *AddonSubOperatorList) Each(f func(item *AddonSubOperator) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonSubOperatorList) Empty

func (l *AddonSubOperatorList) Empty() bool

Empty returns true if the list is empty.

func (*AddonSubOperatorList) Get

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*AddonSubOperatorList) Len

func (l *AddonSubOperatorList) Len() int

Len returns the length of the list.

func (*AddonSubOperatorList) Range

func (l *AddonSubOperatorList) Range(f func(index int, item *AddonSubOperator) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonSubOperatorList) Slice

func (l *AddonSubOperatorList) Slice() []*AddonSubOperator

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type AddonSubOperatorListBuilder

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

AddonSubOperatorListBuilder contains the data and logic needed to build 'addon_sub_operator' objects.

func NewAddonSubOperatorList

func NewAddonSubOperatorList() *AddonSubOperatorListBuilder

NewAddonSubOperatorList creates a new builder of 'addon_sub_operator' objects.

func (*AddonSubOperatorListBuilder) Build

func (b *AddonSubOperatorListBuilder) Build() (list *AddonSubOperatorList, err error)

Build creates a list of 'addon_sub_operator' objects using the configuration stored in the builder.

func (*AddonSubOperatorListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*AddonSubOperatorListBuilder) Empty

func (b *AddonSubOperatorListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*AddonSubOperatorListBuilder) Items

Items sets the items of the list.

type AddonUpdateRequest

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

AddonUpdateRequest is the request for the 'update' method.

func (*AddonUpdateRequest) Body

func (r *AddonUpdateRequest) Body(value *Addon) *AddonUpdateRequest

Body sets the value of the 'body' parameter.

func (*AddonUpdateRequest) DryRun

func (r *AddonUpdateRequest) DryRun(value bool) *AddonUpdateRequest

DryRun sets the value of the 'dry_run' parameter.

DryRun indicates the request body will not be persisted when dryRun=true.

func (*AddonUpdateRequest) Header

func (r *AddonUpdateRequest) Header(name string, value interface{}) *AddonUpdateRequest

Header adds a request header.

func (*AddonUpdateRequest) Impersonate

func (r *AddonUpdateRequest) Impersonate(user string) *AddonUpdateRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AddonUpdateRequest) Parameter

func (r *AddonUpdateRequest) Parameter(name string, value interface{}) *AddonUpdateRequest

Parameter adds a query parameter.

func (*AddonUpdateRequest) Send

func (r *AddonUpdateRequest) Send() (result *AddonUpdateResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AddonUpdateRequest) SendContext

func (r *AddonUpdateRequest) SendContext(ctx context.Context) (result *AddonUpdateResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type AddonUpdateResponse

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

AddonUpdateResponse is the response for the 'update' method.

func (*AddonUpdateResponse) Body

func (r *AddonUpdateResponse) Body() *Addon

Body returns the value of the 'body' parameter.

func (*AddonUpdateResponse) Error

func (r *AddonUpdateResponse) Error() *errors.Error

Error returns the response error.

func (*AddonUpdateResponse) GetBody

func (r *AddonUpdateResponse) GetBody() (value *Addon, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*AddonUpdateResponse) Header

func (r *AddonUpdateResponse) Header() http.Header

Header returns header of the response.

func (*AddonUpdateResponse) Status

func (r *AddonUpdateResponse) Status() int

Status returns the response status code.

type AddonVersion

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

AddonVersion represents the values of the 'addon_version' type.

Representation of an addon version.

func UnmarshalAddonVersion

func UnmarshalAddonVersion(source interface{}) (object *AddonVersion, err error)

UnmarshalAddonVersion reads a value of the 'addon_version' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalAddonVersionList

func UnmarshalAddonVersionList(source interface{}) (items []*AddonVersion, err error)

UnmarshalAddonVersionList reads a list of values of the 'addon_version' type from the given source, which can be a slice of bytes, a string or a reader.

func (*AddonVersion) AdditionalCatalogSources

func (o *AddonVersion) AdditionalCatalogSources() []*AdditionalCatalogSource

AdditionalCatalogSources returns the value of the 'additional_catalog_sources' attribute, or the zero value of the type if the attribute doesn't have a value.

Additional catalog sources associated with this addon version

func (*AddonVersion) AvailableUpgrades

func (o *AddonVersion) AvailableUpgrades() []string

AvailableUpgrades returns the value of the 'available_upgrades' attribute, or the zero value of the type if the attribute doesn't have a value.

AvailableUpgrades is the list of versions this version can be upgraded to.

func (*AddonVersion) Channel

func (o *AddonVersion) Channel() string

Channel returns the value of the 'channel' attribute, or the zero value of the type if the attribute doesn't have a value.

The specific addon catalog source channel of packages

func (*AddonVersion) Config

func (o *AddonVersion) Config() *AddonConfig

Config returns the value of the 'config' attribute, or the zero value of the type if the attribute doesn't have a value.

Additional configs to be used by the addon once its installed in the cluster.

func (*AddonVersion) Empty

func (o *AddonVersion) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*AddonVersion) Enabled

func (o *AddonVersion) Enabled() bool

Enabled returns the value of the 'enabled' attribute, or the zero value of the type if the attribute doesn't have a value.

Indicates if this addon version can be added to clusters.

func (*AddonVersion) GetAdditionalCatalogSources

func (o *AddonVersion) GetAdditionalCatalogSources() (value []*AdditionalCatalogSource, ok bool)

GetAdditionalCatalogSources returns the value of the 'additional_catalog_sources' attribute and a flag indicating if the attribute has a value.

Additional catalog sources associated with this addon version

func (*AddonVersion) GetAvailableUpgrades

func (o *AddonVersion) GetAvailableUpgrades() (value []string, ok bool)

GetAvailableUpgrades returns the value of the 'available_upgrades' attribute and a flag indicating if the attribute has a value.

AvailableUpgrades is the list of versions this version can be upgraded to.

func (*AddonVersion) GetChannel

func (o *AddonVersion) GetChannel() (value string, ok bool)

GetChannel returns the value of the 'channel' attribute and a flag indicating if the attribute has a value.

The specific addon catalog source channel of packages

func (*AddonVersion) GetConfig

func (o *AddonVersion) GetConfig() (value *AddonConfig, ok bool)

GetConfig returns the value of the 'config' attribute and a flag indicating if the attribute has a value.

Additional configs to be used by the addon once its installed in the cluster.

func (*AddonVersion) GetEnabled

func (o *AddonVersion) GetEnabled() (value bool, ok bool)

GetEnabled returns the value of the 'enabled' attribute and a flag indicating if the attribute has a value.

Indicates if this addon version can be added to clusters.

func (*AddonVersion) GetHREF

func (o *AddonVersion) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*AddonVersion) GetID

func (o *AddonVersion) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*AddonVersion) GetParameters

func (o *AddonVersion) GetParameters() (value []*AddonParameter, ok bool)

GetParameters returns the value of the 'parameters' attribute and a flag indicating if the attribute has a value.

List of parameters for this addon version.

func (*AddonVersion) GetPullSecretName

func (o *AddonVersion) GetPullSecretName() (value string, ok bool)

GetPullSecretName returns the value of the 'pull_secret_name' attribute and a flag indicating if the attribute has a value.

The pull secret name used for this addon version.

func (*AddonVersion) GetRequirements

func (o *AddonVersion) GetRequirements() (value []*AddonRequirement, ok bool)

GetRequirements returns the value of the 'requirements' attribute and a flag indicating if the attribute has a value.

List of requirements for this addon version.

func (*AddonVersion) GetSourceImage

func (o *AddonVersion) GetSourceImage() (value string, ok bool)

GetSourceImage returns the value of the 'source_image' attribute and a flag indicating if the attribute has a value.

The catalog source image for this addon version.

func (*AddonVersion) GetSubOperators

func (o *AddonVersion) GetSubOperators() (value []*AddonSubOperator, ok bool)

GetSubOperators returns the value of the 'sub_operators' attribute and a flag indicating if the attribute has a value.

List of sub operators for this addon version.

func (*AddonVersion) HREF

func (o *AddonVersion) HREF() string

HREF returns the link to the object.

func (*AddonVersion) ID

func (o *AddonVersion) ID() string

ID returns the identifier of the object.

func (*AddonVersion) Kind

func (o *AddonVersion) Kind() string

Kind returns the name of the type of the object.

func (o *AddonVersion) Link() bool

Link returns true iif this is a link.

func (*AddonVersion) Parameters

func (o *AddonVersion) Parameters() []*AddonParameter

Parameters returns the value of the 'parameters' attribute, or the zero value of the type if the attribute doesn't have a value.

List of parameters for this addon version.

func (*AddonVersion) PullSecretName

func (o *AddonVersion) PullSecretName() string

PullSecretName returns the value of the 'pull_secret_name' attribute, or the zero value of the type if the attribute doesn't have a value.

The pull secret name used for this addon version.

func (*AddonVersion) Requirements

func (o *AddonVersion) Requirements() []*AddonRequirement

Requirements returns the value of the 'requirements' attribute, or the zero value of the type if the attribute doesn't have a value.

List of requirements for this addon version.

func (*AddonVersion) SourceImage

func (o *AddonVersion) SourceImage() string

SourceImage returns the value of the 'source_image' attribute, or the zero value of the type if the attribute doesn't have a value.

The catalog source image for this addon version.

func (*AddonVersion) SubOperators

func (o *AddonVersion) SubOperators() []*AddonSubOperator

SubOperators returns the value of the 'sub_operators' attribute, or the zero value of the type if the attribute doesn't have a value.

List of sub operators for this addon version.

type AddonVersionBuilder

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

AddonVersionBuilder contains the data and logic needed to build 'addon_version' objects.

Representation of an addon version.

func NewAddonVersion

func NewAddonVersion() *AddonVersionBuilder

NewAddonVersion creates a new builder of 'addon_version' objects.

func (*AddonVersionBuilder) AdditionalCatalogSources

func (b *AddonVersionBuilder) AdditionalCatalogSources(values ...*AdditionalCatalogSourceBuilder) *AddonVersionBuilder

AdditionalCatalogSources sets the value of the 'additional_catalog_sources' attribute to the given values.

func (*AddonVersionBuilder) AvailableUpgrades

func (b *AddonVersionBuilder) AvailableUpgrades(values ...string) *AddonVersionBuilder

AvailableUpgrades sets the value of the 'available_upgrades' attribute to the given values.

func (*AddonVersionBuilder) Build

func (b *AddonVersionBuilder) Build() (object *AddonVersion, err error)

Build creates a 'addon_version' object using the configuration stored in the builder.

func (*AddonVersionBuilder) Channel

func (b *AddonVersionBuilder) Channel(value string) *AddonVersionBuilder

Channel sets the value of the 'channel' attribute to the given value.

func (*AddonVersionBuilder) Config

Config sets the value of the 'config' attribute to the given value.

Representation of an addon config. The attributes under it are to be used by the addon once its installed in the cluster.

func (*AddonVersionBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*AddonVersionBuilder) Empty

func (b *AddonVersionBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*AddonVersionBuilder) Enabled

func (b *AddonVersionBuilder) Enabled(value bool) *AddonVersionBuilder

Enabled sets the value of the 'enabled' attribute to the given value.

func (*AddonVersionBuilder) HREF

HREF sets the link to the object.

func (*AddonVersionBuilder) ID

ID sets the identifier of the object.

Link sets the flag that indicates if this is a link.

func (*AddonVersionBuilder) Parameters

Parameters sets the value of the 'parameters' attribute to the given values.

func (*AddonVersionBuilder) PullSecretName

func (b *AddonVersionBuilder) PullSecretName(value string) *AddonVersionBuilder

PullSecretName sets the value of the 'pull_secret_name' attribute to the given value.

func (*AddonVersionBuilder) Requirements

Requirements sets the value of the 'requirements' attribute to the given values.

func (*AddonVersionBuilder) SourceImage

func (b *AddonVersionBuilder) SourceImage(value string) *AddonVersionBuilder

SourceImage sets the value of the 'source_image' attribute to the given value.

func (*AddonVersionBuilder) SubOperators

SubOperators sets the value of the 'sub_operators' attribute to the given values.

type AddonVersionClient

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

AddonVersionClient is the client of the 'addon_version' resource.

Manages a specific addon version.

func NewAddonVersionClient

func NewAddonVersionClient(transport http.RoundTripper, path string) *AddonVersionClient

NewAddonVersionClient creates a new client for the 'addon_version' resource using the given transport to send the requests and receive the responses.

func (*AddonVersionClient) Delete

Delete creates a request for the 'delete' method.

Deletes the addon version.

func (*AddonVersionClient) Get

Get creates a request for the 'get' method.

Retrieves the details of the addon version.

func (*AddonVersionClient) Poll

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

func (*AddonVersionClient) Update

Update creates a request for the 'update' method.

Updates the addon version.

type AddonVersionDeleteRequest

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

AddonVersionDeleteRequest is the request for the 'delete' method.

func (*AddonVersionDeleteRequest) Header

func (r *AddonVersionDeleteRequest) Header(name string, value interface{}) *AddonVersionDeleteRequest

Header adds a request header.

func (*AddonVersionDeleteRequest) Impersonate

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AddonVersionDeleteRequest) Parameter

func (r *AddonVersionDeleteRequest) Parameter(name string, value interface{}) *AddonVersionDeleteRequest

Parameter adds a query parameter.

func (*AddonVersionDeleteRequest) Send

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AddonVersionDeleteRequest) SendContext

func (r *AddonVersionDeleteRequest) SendContext(ctx context.Context) (result *AddonVersionDeleteResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type AddonVersionDeleteResponse

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

AddonVersionDeleteResponse is the response for the 'delete' method.

func (*AddonVersionDeleteResponse) Error

Error returns the response error.

func (*AddonVersionDeleteResponse) Header

Header returns header of the response.

func (*AddonVersionDeleteResponse) Status

func (r *AddonVersionDeleteResponse) Status() int

Status returns the response status code.

type AddonVersionGetRequest

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

AddonVersionGetRequest is the request for the 'get' method.

func (*AddonVersionGetRequest) Header

func (r *AddonVersionGetRequest) Header(name string, value interface{}) *AddonVersionGetRequest

Header adds a request header.

func (*AddonVersionGetRequest) Impersonate

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AddonVersionGetRequest) Parameter

func (r *AddonVersionGetRequest) Parameter(name string, value interface{}) *AddonVersionGetRequest

Parameter adds a query parameter.

func (*AddonVersionGetRequest) Send

func (r *AddonVersionGetRequest) Send() (result *AddonVersionGetResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AddonVersionGetRequest) SendContext

func (r *AddonVersionGetRequest) SendContext(ctx context.Context) (result *AddonVersionGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type AddonVersionGetResponse

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

AddonVersionGetResponse is the response for the 'get' method.

func (*AddonVersionGetResponse) Body

Body returns the value of the 'body' parameter.

func (*AddonVersionGetResponse) Error

func (r *AddonVersionGetResponse) Error() *errors.Error

Error returns the response error.

func (*AddonVersionGetResponse) GetBody

func (r *AddonVersionGetResponse) GetBody() (value *AddonVersion, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*AddonVersionGetResponse) Header

func (r *AddonVersionGetResponse) Header() http.Header

Header returns header of the response.

func (*AddonVersionGetResponse) Status

func (r *AddonVersionGetResponse) Status() int

Status returns the response status code.

type AddonVersionList

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

AddonVersionList is a list of values of the 'addon_version' type.

func (*AddonVersionList) Each

func (l *AddonVersionList) Each(f func(item *AddonVersion) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonVersionList) Empty

func (l *AddonVersionList) Empty() bool

Empty returns true if the list is empty.

func (*AddonVersionList) Get

func (l *AddonVersionList) Get(i int) *AddonVersion

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*AddonVersionList) GetHREF

func (l *AddonVersionList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*AddonVersionList) HREF

func (l *AddonVersionList) HREF() string

HREF returns the link to the list.

func (*AddonVersionList) Kind

func (l *AddonVersionList) Kind() string

Kind returns the name of the type of the object.

func (*AddonVersionList) Len

func (l *AddonVersionList) Len() int

Len returns the length of the list.

func (l *AddonVersionList) Link() bool

Link returns true iif this is a link.

func (*AddonVersionList) Range

func (l *AddonVersionList) Range(f func(index int, item *AddonVersion) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AddonVersionList) Slice

func (l *AddonVersionList) Slice() []*AddonVersion

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type AddonVersionListBuilder

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

AddonVersionListBuilder contains the data and logic needed to build 'addon_version' objects.

func NewAddonVersionList

func NewAddonVersionList() *AddonVersionListBuilder

NewAddonVersionList creates a new builder of 'addon_version' objects.

func (*AddonVersionListBuilder) Build

func (b *AddonVersionListBuilder) Build() (list *AddonVersionList, err error)

Build creates a list of 'addon_version' objects using the configuration stored in the builder.

func (*AddonVersionListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*AddonVersionListBuilder) Empty

func (b *AddonVersionListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*AddonVersionListBuilder) Items

Items sets the items of the list.

type AddonVersionPollRequest

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

AddonVersionPollRequest is the request for the Poll method.

func (*AddonVersionPollRequest) Header

func (r *AddonVersionPollRequest) Header(name string, value interface{}) *AddonVersionPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*AddonVersionPollRequest) Interval

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*AddonVersionPollRequest) Parameter

func (r *AddonVersionPollRequest) Parameter(name string, value interface{}) *AddonVersionPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*AddonVersionPollRequest) Predicate

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*AddonVersionPollRequest) StartContext

func (r *AddonVersionPollRequest) StartContext(ctx context.Context) (response *AddonVersionPollResponse, err error)

StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.

The context must have a timeout or deadline, otherwise this method will immediately return an error.

func (*AddonVersionPollRequest) Status

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type AddonVersionPollResponse

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

AddonVersionPollResponse is the response for the Poll method.

func (*AddonVersionPollResponse) Body

Body returns the value of the 'body' parameter.

func (*AddonVersionPollResponse) Error

Error returns the response error.

func (*AddonVersionPollResponse) GetBody

func (r *AddonVersionPollResponse) GetBody() (value *AddonVersion, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*AddonVersionPollResponse) Header

func (r *AddonVersionPollResponse) Header() http.Header

Header returns header of the response.

func (*AddonVersionPollResponse) Status

func (r *AddonVersionPollResponse) Status() int

Status returns the response status code.

type AddonVersionUpdateRequest

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

AddonVersionUpdateRequest is the request for the 'update' method.

func (*AddonVersionUpdateRequest) Body

Body sets the value of the 'body' parameter.

func (*AddonVersionUpdateRequest) DryRun

DryRun sets the value of the 'dry_run' parameter.

DryRun indicates the request body will not be persisted when dryRun=true.

func (*AddonVersionUpdateRequest) Header

func (r *AddonVersionUpdateRequest) Header(name string, value interface{}) *AddonVersionUpdateRequest

Header adds a request header.

func (*AddonVersionUpdateRequest) Impersonate

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AddonVersionUpdateRequest) Parameter

func (r *AddonVersionUpdateRequest) Parameter(name string, value interface{}) *AddonVersionUpdateRequest

Parameter adds a query parameter.

func (*AddonVersionUpdateRequest) Send

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AddonVersionUpdateRequest) SendContext

func (r *AddonVersionUpdateRequest) SendContext(ctx context.Context) (result *AddonVersionUpdateResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type AddonVersionUpdateResponse

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

AddonVersionUpdateResponse is the response for the 'update' method.

func (*AddonVersionUpdateResponse) Body

Body returns the value of the 'body' parameter.

func (*AddonVersionUpdateResponse) Error

Error returns the response error.

func (*AddonVersionUpdateResponse) GetBody

func (r *AddonVersionUpdateResponse) GetBody() (value *AddonVersion, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*AddonVersionUpdateResponse) Header

Header returns header of the response.

func (*AddonVersionUpdateResponse) Status

func (r *AddonVersionUpdateResponse) Status() int

Status returns the response status code.

type AddonVersionsAddRequest

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

AddonVersionsAddRequest is the request for the 'add' method.

func (*AddonVersionsAddRequest) Body

Body sets the value of the 'body' parameter.

Description of the addon version.

func (*AddonVersionsAddRequest) DryRun

DryRun sets the value of the 'dry_run' parameter.

DryRun indicates the request body will not be persisted when dryRun=true.

func (*AddonVersionsAddRequest) Header

func (r *AddonVersionsAddRequest) Header(name string, value interface{}) *AddonVersionsAddRequest

Header adds a request header.

func (*AddonVersionsAddRequest) Impersonate

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AddonVersionsAddRequest) Parameter

func (r *AddonVersionsAddRequest) Parameter(name string, value interface{}) *AddonVersionsAddRequest

Parameter adds a query parameter.

func (*AddonVersionsAddRequest) Send

func (r *AddonVersionsAddRequest) Send() (result *AddonVersionsAddResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AddonVersionsAddRequest) SendContext

func (r *AddonVersionsAddRequest) SendContext(ctx context.Context) (result *AddonVersionsAddResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type AddonVersionsAddResponse

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

AddonVersionsAddResponse is the response for the 'add' method.

func (*AddonVersionsAddResponse) Body

Body returns the value of the 'body' parameter.

Description of the addon version.

func (*AddonVersionsAddResponse) Error

Error returns the response error.

func (*AddonVersionsAddResponse) GetBody

func (r *AddonVersionsAddResponse) GetBody() (value *AddonVersion, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Description of the addon version.

func (*AddonVersionsAddResponse) Header

func (r *AddonVersionsAddResponse) Header() http.Header

Header returns header of the response.

func (*AddonVersionsAddResponse) Status

func (r *AddonVersionsAddResponse) Status() int

Status returns the response status code.

type AddonVersionsClient

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

AddonVersionsClient is the client of the 'addon_versions' resource.

Manages the collection of addon versions.

func NewAddonVersionsClient

func NewAddonVersionsClient(transport http.RoundTripper, path string) *AddonVersionsClient

NewAddonVersionsClient creates a new client for the 'addon_versions' resource using the given transport to send the requests and receive the responses.

func (*AddonVersionsClient) Add

Add creates a request for the 'add' method.

Create a new addon version and add it to the collection of addons.

func (*AddonVersionsClient) List

List creates a request for the 'list' method.

Retrieves the list of addon versions.

func (*AddonVersionsClient) Version

Version returns the target 'addon_version' resource for the given identifier.

Returns a reference to the service that manages a specific addon version.

type AddonVersionsListRequest

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

AddonVersionsListRequest is the request for the 'list' method.

func (*AddonVersionsListRequest) Header

func (r *AddonVersionsListRequest) Header(name string, value interface{}) *AddonVersionsListRequest

Header adds a request header.

func (*AddonVersionsListRequest) Impersonate

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AddonVersionsListRequest) Order

Order sets the value of the 'order' parameter.

Order criteria.

The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the addon instead of the names of the columns of a table. For example, in order to sort the addon versions descending by id the value should be:

```sql id desc ```

If the parameter isn't provided, or if the value is empty, then the order of the results is undefined.

func (*AddonVersionsListRequest) Page

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*AddonVersionsListRequest) Parameter

func (r *AddonVersionsListRequest) Parameter(name string, value interface{}) *AddonVersionsListRequest

Parameter adds a query parameter.

func (*AddonVersionsListRequest) Search

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the addon version instead of the names of the columns of a table. For example, in order to retrieve all the addon versions with an id starting with `0.1` the value should be:

```sql id like '0.1.%' ```

If the parameter isn't provided, or if the value is empty, then all the addon versions that the user has permission to see will be returned.

func (*AddonVersionsListRequest) Send

func (r *AddonVersionsListRequest) Send() (result *AddonVersionsListResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AddonVersionsListRequest) SendContext

func (r *AddonVersionsListRequest) SendContext(ctx context.Context) (result *AddonVersionsListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*AddonVersionsListRequest) Size

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type AddonVersionsListResponse

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

AddonVersionsListResponse is the response for the 'list' method.

func (*AddonVersionsListResponse) Error

Error returns the response error.

func (*AddonVersionsListResponse) GetItems

func (r *AddonVersionsListResponse) GetItems() (value *AddonVersionList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of addon versions.

func (*AddonVersionsListResponse) GetPage

func (r *AddonVersionsListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*AddonVersionsListResponse) GetSize

func (r *AddonVersionsListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*AddonVersionsListResponse) GetTotal

func (r *AddonVersionsListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

func (*AddonVersionsListResponse) Header

Header returns header of the response.

func (*AddonVersionsListResponse) Items

Items returns the value of the 'items' parameter.

Retrieved list of addon versions.

func (*AddonVersionsListResponse) Page

func (r *AddonVersionsListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*AddonVersionsListResponse) Size

func (r *AddonVersionsListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*AddonVersionsListResponse) Status

func (r *AddonVersionsListResponse) Status() int

Status returns the response status code.

func (*AddonVersionsListResponse) Total

func (r *AddonVersionsListResponse) Total() int

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

type AddonsAddRequest

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

AddonsAddRequest is the request for the 'add' method.

func (*AddonsAddRequest) Body

func (r *AddonsAddRequest) Body(value *Addon) *AddonsAddRequest

Body sets the value of the 'body' parameter.

Description of the addon.

func (*AddonsAddRequest) DryRun

func (r *AddonsAddRequest) DryRun(value bool) *AddonsAddRequest

DryRun sets the value of the 'dry_run' parameter.

DryRun indicates the request body will not be persisted when dryRun=true.

func (*AddonsAddRequest) Header

func (r *AddonsAddRequest) Header(name string, value interface{}) *AddonsAddRequest

Header adds a request header.

func (*AddonsAddRequest) Impersonate

func (r *AddonsAddRequest) Impersonate(user string) *AddonsAddRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AddonsAddRequest) Parameter

func (r *AddonsAddRequest) Parameter(name string, value interface{}) *AddonsAddRequest

Parameter adds a query parameter.

func (*AddonsAddRequest) Send

func (r *AddonsAddRequest) Send() (result *AddonsAddResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AddonsAddRequest) SendContext

func (r *AddonsAddRequest) SendContext(ctx context.Context) (result *AddonsAddResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type AddonsAddResponse

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

AddonsAddResponse is the response for the 'add' method.

func (*AddonsAddResponse) Body

func (r *AddonsAddResponse) Body() *Addon

Body returns the value of the 'body' parameter.

Description of the addon.

func (*AddonsAddResponse) Error

func (r *AddonsAddResponse) Error() *errors.Error

Error returns the response error.

func (*AddonsAddResponse) GetBody

func (r *AddonsAddResponse) GetBody() (value *Addon, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Description of the addon.

func (*AddonsAddResponse) Header

func (r *AddonsAddResponse) Header() http.Header

Header returns header of the response.

func (*AddonsAddResponse) Status

func (r *AddonsAddResponse) Status() int

Status returns the response status code.

type AddonsClient

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

AddonsClient is the client of the 'addons' resource.

Manages the collection of addons.

func NewAddonsClient

func NewAddonsClient(transport http.RoundTripper, path string) *AddonsClient

NewAddonsClient creates a new client for the 'addons' resource using the given transport to send the requests and receive the responses.

func (*AddonsClient) Add

func (c *AddonsClient) Add() *AddonsAddRequest

Add creates a request for the 'add' method.

Create a new addon and add it to the collection of addons.

func (*AddonsClient) Addon

func (c *AddonsClient) Addon(id string) *AddonClient

Addon returns the target 'addon' resource for the given identifier.

Returns a reference to the service that manages a specific addon.

func (*AddonsClient) List

func (c *AddonsClient) List() *AddonsListRequest

List creates a request for the 'list' method.

Retrieves the list of addons.

type AddonsListRequest

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

AddonsListRequest is the request for the 'list' method.

func (*AddonsListRequest) Header

func (r *AddonsListRequest) Header(name string, value interface{}) *AddonsListRequest

Header adds a request header.

func (*AddonsListRequest) Impersonate

func (r *AddonsListRequest) Impersonate(user string) *AddonsListRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AddonsListRequest) Order

func (r *AddonsListRequest) Order(value string) *AddonsListRequest

Order sets the value of the 'order' parameter.

Order criteria.

The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the addon instead of the names of the columns of a table. For example, in order to sort the addons descending by name the value should be:

```sql name desc ```

If the parameter isn't provided, or if the value is empty, then the order of the results is undefined.

func (*AddonsListRequest) Page

func (r *AddonsListRequest) Page(value int) *AddonsListRequest

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*AddonsListRequest) Parameter

func (r *AddonsListRequest) Parameter(name string, value interface{}) *AddonsListRequest

Parameter adds a query parameter.

func (*AddonsListRequest) Search

func (r *AddonsListRequest) Search(value string) *AddonsListRequest

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the addon instead of the names of the columns of a table. For example, in order to retrieve all the addons with a name starting with `my` the value should be:

```sql name like 'my%' ```

If the parameter isn't provided, or if the value is empty, then all the addons that the user has permission to see will be returned.

func (*AddonsListRequest) Send

func (r *AddonsListRequest) Send() (result *AddonsListResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AddonsListRequest) SendContext

func (r *AddonsListRequest) SendContext(ctx context.Context) (result *AddonsListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*AddonsListRequest) Size

func (r *AddonsListRequest) Size(value int) *AddonsListRequest

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type AddonsListResponse

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

AddonsListResponse is the response for the 'list' method.

func (*AddonsListResponse) Error

func (r *AddonsListResponse) Error() *errors.Error

Error returns the response error.

func (*AddonsListResponse) GetItems

func (r *AddonsListResponse) GetItems() (value *AddonList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of add-ons.

func (*AddonsListResponse) GetPage

func (r *AddonsListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*AddonsListResponse) GetSize

func (r *AddonsListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*AddonsListResponse) GetTotal

func (r *AddonsListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

func (*AddonsListResponse) Header

func (r *AddonsListResponse) Header() http.Header

Header returns header of the response.

func (*AddonsListResponse) Items

func (r *AddonsListResponse) Items() *AddonList

Items returns the value of the 'items' parameter.

Retrieved list of add-ons.

func (*AddonsListResponse) Page

func (r *AddonsListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*AddonsListResponse) Size

func (r *AddonsListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*AddonsListResponse) Status

func (r *AddonsListResponse) Status() int

Status returns the response status code.

func (*AddonsListResponse) Total

func (r *AddonsListResponse) Total() int

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

type Client

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

Client is the client of the 'root' resource.

Root of the tree of resources of the Addons Management.

func NewClient

func NewClient(transport http.RoundTripper, path string) *Client

NewClient creates a new client for the 'root' resource using the given transport to send the requests and receive the responses.

func (*Client) Addons

func (c *Client) Addons() *AddonsClient

Addons returns the target 'addons' resource.

Reference to the resource that manages the collection of Addons.

func (*Client) Clusters

func (c *Client) Clusters() *ClustersClient

Clusters returns the target 'clusters' resource.

func (*Client) Get

func (c *Client) Get() *MetadataRequest

Creates a new request for the method that retrieves the metadata.

type ClusterClient

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

ClusterClient is the client of the 'cluster' resource.

Manages a specific cluster.

func NewClusterClient

func NewClusterClient(transport http.RoundTripper, path string) *ClusterClient

NewClusterClient creates a new client for the 'cluster' resource using the given transport to send the requests and receive the responses.

func (*ClusterClient) AddonInquiries

func (c *ClusterClient) AddonInquiries() *AddonInquiriesClient

AddonInquiries returns the target 'addon_inquiries' resource.

Reference to the inquiries of addons on a specific cluster

func (*ClusterClient) Status

func (c *ClusterClient) Status() *AddonStatusesClient

Status returns the target 'addon_statuses' resource.

Reference to the status of addon installation on a specific cluster

type ClustersClient

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

ClustersClient is the client of the 'clusters' resource.

Manages a list of clusters.

func NewClustersClient

func NewClustersClient(transport http.RoundTripper, path string) *ClustersClient

NewClustersClient creates a new client for the 'clusters' resource using the given transport to send the requests and receive the responses.

func (*ClustersClient) Cluster

func (c *ClustersClient) Cluster(id string) *ClusterClient

Cluster returns the target 'cluster' resource for the given identifier.

Reference to the specific cluster which an addon can be installed on

type CredentialRequest

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

CredentialRequest represents the values of the 'credential_request' type.

Contains the necessary attributes to allow each operator to access the necessary AWS resources

func UnmarshalCredentialRequest

func UnmarshalCredentialRequest(source interface{}) (object *CredentialRequest, err error)

UnmarshalCredentialRequest reads a value of the 'credential_request' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalCredentialRequestList

func UnmarshalCredentialRequestList(source interface{}) (items []*CredentialRequest, err error)

UnmarshalCredentialRequestList reads a list of values of the 'credential_request' type from the given source, which can be a slice of bytes, a string or a reader.

func (*CredentialRequest) Empty

func (o *CredentialRequest) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*CredentialRequest) GetName

func (o *CredentialRequest) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

Name of the credentials secret used to access cloud resources

func (*CredentialRequest) GetNamespace

func (o *CredentialRequest) GetNamespace() (value string, ok bool)

GetNamespace returns the value of the 'namespace' attribute and a flag indicating if the attribute has a value.

Namespace where the credentials secret lives in the cluster

func (*CredentialRequest) GetPolicyPermissions

func (o *CredentialRequest) GetPolicyPermissions() (value []string, ok bool)

GetPolicyPermissions returns the value of the 'policy_permissions' attribute and a flag indicating if the attribute has a value.

List of policy permissions needed to access cloud resources

func (*CredentialRequest) GetServiceAccount

func (o *CredentialRequest) GetServiceAccount() (value string, ok bool)

GetServiceAccount returns the value of the 'service_account' attribute and a flag indicating if the attribute has a value.

Service account name to use when authenticating

func (*CredentialRequest) Name

func (o *CredentialRequest) Name() string

Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.

Name of the credentials secret used to access cloud resources

func (*CredentialRequest) Namespace

func (o *CredentialRequest) Namespace() string

Namespace returns the value of the 'namespace' attribute, or the zero value of the type if the attribute doesn't have a value.

Namespace where the credentials secret lives in the cluster

func (*CredentialRequest) PolicyPermissions

func (o *CredentialRequest) PolicyPermissions() []string

PolicyPermissions returns the value of the 'policy_permissions' attribute, or the zero value of the type if the attribute doesn't have a value.

List of policy permissions needed to access cloud resources

func (*CredentialRequest) ServiceAccount

func (o *CredentialRequest) ServiceAccount() string

ServiceAccount returns the value of the 'service_account' attribute, or the zero value of the type if the attribute doesn't have a value.

Service account name to use when authenticating

type CredentialRequestBuilder

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

CredentialRequestBuilder contains the data and logic needed to build 'credential_request' objects.

Contains the necessary attributes to allow each operator to access the necessary AWS resources

func NewCredentialRequest

func NewCredentialRequest() *CredentialRequestBuilder

NewCredentialRequest creates a new builder of 'credential_request' objects.

func (*CredentialRequestBuilder) Build

func (b *CredentialRequestBuilder) Build() (object *CredentialRequest, err error)

Build creates a 'credential_request' object using the configuration stored in the builder.

func (*CredentialRequestBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*CredentialRequestBuilder) Empty

func (b *CredentialRequestBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*CredentialRequestBuilder) Name

Name sets the value of the 'name' attribute to the given value.

func (*CredentialRequestBuilder) Namespace

Namespace sets the value of the 'namespace' attribute to the given value.

func (*CredentialRequestBuilder) PolicyPermissions

func (b *CredentialRequestBuilder) PolicyPermissions(values ...string) *CredentialRequestBuilder

PolicyPermissions sets the value of the 'policy_permissions' attribute to the given values.

func (*CredentialRequestBuilder) ServiceAccount

func (b *CredentialRequestBuilder) ServiceAccount(value string) *CredentialRequestBuilder

ServiceAccount sets the value of the 'service_account' attribute to the given value.

type CredentialRequestList

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

CredentialRequestList is a list of values of the 'credential_request' type.

func (*CredentialRequestList) Each

func (l *CredentialRequestList) Each(f func(item *CredentialRequest) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*CredentialRequestList) Empty

func (l *CredentialRequestList) Empty() bool

Empty returns true if the list is empty.

func (*CredentialRequestList) Get

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*CredentialRequestList) Len

func (l *CredentialRequestList) Len() int

Len returns the length of the list.

func (*CredentialRequestList) Range

func (l *CredentialRequestList) Range(f func(index int, item *CredentialRequest) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*CredentialRequestList) Slice

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type CredentialRequestListBuilder

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

CredentialRequestListBuilder contains the data and logic needed to build 'credential_request' objects.

func NewCredentialRequestList

func NewCredentialRequestList() *CredentialRequestListBuilder

NewCredentialRequestList creates a new builder of 'credential_request' objects.

func (*CredentialRequestListBuilder) Build

Build creates a list of 'credential_request' objects using the configuration stored in the builder.

func (*CredentialRequestListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*CredentialRequestListBuilder) Empty

Empty returns true if the list is empty.

func (*CredentialRequestListBuilder) Items

Items sets the items of the list.

type Metadata

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

Metadata contains the version metadata.

func UnmarshalMetadata

func UnmarshalMetadata(source interface{}) (object *Metadata, err error)

UnmarshalMetadata reads a value of the metadata type from the given source, which which can be a reader, a slice of byte or a string.

func (*Metadata) GetServerVersion

func (m *Metadata) GetServerVersion() (value string, ok bool)

GetServerVersion returns the value of the server version and a flag indicating if the attribute has a value.

func (*Metadata) ServerVersion

func (m *Metadata) ServerVersion() string

ServerVersion returns the version of the server.

type MetadataRequest

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

MetadataRequest is the request to retrieve the metadata.

func (*MetadataRequest) Header

func (r *MetadataRequest) Header(name string, value interface{}) *MetadataRequest

Header adds a request header.

func (*MetadataRequest) Parameter

func (r *MetadataRequest) Parameter(name string, value interface{}) *MetadataRequest

Parameter adds a query parameter.

func (*MetadataRequest) Send

func (r *MetadataRequest) Send() (result *MetadataResponse, err error)

Send sends the metadata request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*MetadataRequest) SendContext

func (r *MetadataRequest) SendContext(ctx context.Context) (result *MetadataResponse, err error)

SendContext sends the metadata request, waits for the response, and returns it.

type MetadataResponse

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

MetadataResponse is the response for the metadata request.

func (*MetadataResponse) Body

func (r *MetadataResponse) Body() *Metadata

Body returns the response body.

func (*MetadataResponse) Error

func (r *MetadataResponse) Error() *errors.Error

Error returns the response error.

func (*MetadataResponse) Header

func (r *MetadataResponse) Header() http.Header

Header returns header of the response.

func (*MetadataResponse) Status

func (r *MetadataResponse) Status() int

Status returns the response status code.

Source Files

Jump to

Keyboard shortcuts

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