service_binding

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

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

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

Documentation

Index

Constants

View Source
const ServiceBindingType = "service-binding"

Variables

This section is empty.

Functions

func FromTrait

func FromTrait(from common.ApplicationTrait) (apis.Trait, error)

Types

type KeySecret

type KeySecret struct {
	Key    *string `json:"key,omitempty"`
	Secret *string `json:"secret"`
}

KeySecret struct for KeySecret

func NewKeySecret

func NewKeySecret() *KeySecret

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

func NewKeySecretEmpty

func NewKeySecretEmpty() *KeySecret

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

func NewKeySecretList

func NewKeySecretList(ps ...*KeySecret) []KeySecret

NewKeySecrets converts a list KeySecret pointers to objects. This is helpful when the SetKeySecret requires a list of objects

func NewKeySecretWith

func NewKeySecretWith(secret string) *KeySecret

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

func NewKeySecretWithDefault

func NewKeySecretWithDefault() *KeySecret

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

func (*KeySecret) GetKey

func (o *KeySecret) GetKey() string

GetKey returns the Key field value if set, zero value otherwise.

func (*KeySecret) GetKeyOk

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

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

func (*KeySecret) GetSecret

func (o *KeySecret) GetSecret() string

GetSecret returns the Secret field value

func (*KeySecret) GetSecretOk

func (o *KeySecret) GetSecretOk() (*string, bool)

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

func (*KeySecret) HasKey

func (o *KeySecret) HasKey() bool

HasKey returns a boolean if a field has been set.

func (KeySecret) MarshalJSON

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

func (*KeySecret) SetKey

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

SetKey gets a reference to the given string and assigns it to the key field. Key:

func (*KeySecret) SetSecret

func (o *KeySecret) SetSecret(v string) *KeySecret

SetSecret sets field value

func (KeySecret) ToMap

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

func (*KeySecret) Validate

func (o *KeySecret) Validate() error

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

type NullableKeySecret

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

func NewNullableKeySecret

func NewNullableKeySecret(val *KeySecret) *NullableKeySecret

func (*NullableKeySecret) Get

func (v *NullableKeySecret) Get() *KeySecret

func (*NullableKeySecret) IsSet

func (v *NullableKeySecret) IsSet() bool

func (NullableKeySecret) MarshalJSON

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

func (*NullableKeySecret) Set

func (v *NullableKeySecret) Set(val *KeySecret)

func (*NullableKeySecret) UnmarshalJSON

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

func (*NullableKeySecret) Unset

func (v *NullableKeySecret) Unset()

type NullableServiceBindingSpec

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

func NewNullableServiceBindingSpec

func NewNullableServiceBindingSpec(val *ServiceBindingSpec) *NullableServiceBindingSpec

func (*NullableServiceBindingSpec) Get

func (*NullableServiceBindingSpec) IsSet

func (v *NullableServiceBindingSpec) IsSet() bool

func (NullableServiceBindingSpec) MarshalJSON

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

func (*NullableServiceBindingSpec) Set

func (*NullableServiceBindingSpec) UnmarshalJSON

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

func (*NullableServiceBindingSpec) Unset

func (v *NullableServiceBindingSpec) Unset()

type ServiceBindingSpec

type ServiceBindingSpec struct {
	// The mapping of environment variables to secret
	EnvMappings map[string]KeySecret `json:"envMappings"`
}

ServiceBindingSpec struct for ServiceBindingSpec

func NewServiceBindingSpec

func NewServiceBindingSpec() *ServiceBindingSpec

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

func NewServiceBindingSpecEmpty

func NewServiceBindingSpecEmpty() *ServiceBindingSpec

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

func NewServiceBindingSpecList

func NewServiceBindingSpecList(ps ...*ServiceBindingSpec) []ServiceBindingSpec

NewServiceBindingSpecs converts a list ServiceBindingSpec pointers to objects. This is helpful when the SetServiceBindingSpec requires a list of objects

func NewServiceBindingSpecWith

func NewServiceBindingSpecWith(envMappings map[string]KeySecret) *ServiceBindingSpec

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

func NewServiceBindingSpecWithDefault

func NewServiceBindingSpecWithDefault() *ServiceBindingSpec

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

func (ServiceBindingSpec) MarshalJSON

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

func (ServiceBindingSpec) ToMap

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

type ServiceBindingTrait

type ServiceBindingTrait struct {
	Base       apis.TraitBase
	Properties ServiceBindingSpec
}

func ServiceBinding

func ServiceBinding() *ServiceBindingTrait

func (*ServiceBindingTrait) Build

func (*ServiceBindingTrait) DefType

func (s *ServiceBindingTrait) DefType() string

func (*ServiceBindingTrait) FromTrait

func (*ServiceBindingTrait) GetEnvMappings

func (o *ServiceBindingTrait) GetEnvMappings() map[string]KeySecret

GetEnvMappings returns the EnvMappings field value

func (*ServiceBindingTrait) GetEnvMappingsOk

func (o *ServiceBindingTrait) GetEnvMappingsOk() (map[string]KeySecret, bool)

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

func (*ServiceBindingTrait) SetEnvMappings

func (o *ServiceBindingTrait) SetEnvMappings(v map[string]KeySecret) *ServiceBindingTrait

SetEnvMappings sets field value

func (*ServiceBindingTrait) Validate

func (o *ServiceBindingTrait) Validate() error

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

Jump to

Keyboard shortcuts

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