Documentation ¶
Index ¶
- Constants
- func FromTrait(from common.ApplicationTrait) (apis.Trait, error)
- type KeySecret
- func (o *KeySecret) GetKey() string
- func (o *KeySecret) GetKeyOk() (*string, bool)
- func (o *KeySecret) GetSecret() string
- func (o *KeySecret) GetSecretOk() (*string, bool)
- func (o *KeySecret) HasKey() bool
- func (o KeySecret) MarshalJSON() ([]byte, error)
- func (o *KeySecret) SetKey(v string) *KeySecret
- func (o *KeySecret) SetSecret(v string) *KeySecret
- func (o KeySecret) ToMap() (map[string]interface{}, error)
- func (o *KeySecret) Validate() error
- type NullableKeySecret
- type NullableServiceBindingSpec
- func (v *NullableServiceBindingSpec) Get() *ServiceBindingSpec
- func (v *NullableServiceBindingSpec) IsSet() bool
- func (v NullableServiceBindingSpec) MarshalJSON() ([]byte, error)
- func (v *NullableServiceBindingSpec) Set(val *ServiceBindingSpec)
- func (v *NullableServiceBindingSpec) UnmarshalJSON(src []byte) error
- func (v *NullableServiceBindingSpec) Unset()
- type ServiceBindingSpec
- func NewServiceBindingSpec() *ServiceBindingSpec
- func NewServiceBindingSpecEmpty() *ServiceBindingSpec
- func NewServiceBindingSpecList(ps ...*ServiceBindingSpec) []ServiceBindingSpec
- func NewServiceBindingSpecWith(envMappings map[string]KeySecret) *ServiceBindingSpec
- func NewServiceBindingSpecWithDefault() *ServiceBindingSpec
- type ServiceBindingTrait
- func (s *ServiceBindingTrait) Build() common.ApplicationTrait
- func (s *ServiceBindingTrait) DefType() string
- func (s *ServiceBindingTrait) FromTrait(from common.ApplicationTrait) (*ServiceBindingTrait, error)
- func (o *ServiceBindingTrait) GetEnvMappings() map[string]KeySecret
- func (o *ServiceBindingTrait) GetEnvMappingsOk() (map[string]KeySecret, bool)
- func (o *ServiceBindingTrait) SetEnvMappings(v map[string]KeySecret) *ServiceBindingTrait
- func (o *ServiceBindingTrait) Validate() error
Constants ¶
const ServiceBindingType = "service-binding"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KeySecret ¶
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 ¶
NewKeySecrets converts a list KeySecret pointers to objects. This is helpful when the SetKeySecret requires a list of objects
func NewKeySecretWith ¶
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) GetKeyOk ¶
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) GetSecretOk ¶
GetSecretOk returns a tuple with the Secret field value and a boolean to check if the value has been set.
func (KeySecret) MarshalJSON ¶
func (*KeySecret) SetKey ¶
SetKey gets a reference to the given string and assigns it to the key field. Key:
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 (v *NullableServiceBindingSpec) Get() *ServiceBindingSpec
func (*NullableServiceBindingSpec) IsSet ¶
func (v *NullableServiceBindingSpec) IsSet() bool
func (NullableServiceBindingSpec) MarshalJSON ¶
func (v NullableServiceBindingSpec) MarshalJSON() ([]byte, error)
func (*NullableServiceBindingSpec) Set ¶
func (v *NullableServiceBindingSpec) Set(val *ServiceBindingSpec)
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 (s *ServiceBindingTrait) Build() common.ApplicationTrait
func (*ServiceBindingTrait) DefType ¶
func (s *ServiceBindingTrait) DefType() string
func (*ServiceBindingTrait) FromTrait ¶
func (s *ServiceBindingTrait) FromTrait(from common.ApplicationTrait) (*ServiceBindingTrait, error)
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