Documentation ¶
Index ¶
- Constants
- func FromPolicy(from v1beta1.AppPolicy) (apis.Policy, error)
- type NullableReplicationSpec
- func (v *NullableReplicationSpec) Get() *ReplicationSpec
- func (v *NullableReplicationSpec) IsSet() bool
- func (v NullableReplicationSpec) MarshalJSON() ([]byte, error)
- func (v *NullableReplicationSpec) Set(val *ReplicationSpec)
- func (v *NullableReplicationSpec) UnmarshalJSON(src []byte) error
- func (v *NullableReplicationSpec) Unset()
- type ReplicationPolicy
- func (r *ReplicationPolicy) Build() v1beta1.AppPolicy
- func (r *ReplicationPolicy) DefType() string
- func (r *ReplicationPolicy) FromPolicy(from v1beta1.AppPolicy) (*ReplicationPolicy, error)
- func (o *ReplicationPolicy) GetKeys() []string
- func (o *ReplicationPolicy) GetKeysOk() ([]string, bool)
- func (o *ReplicationPolicy) GetSelector() []string
- func (o *ReplicationPolicy) GetSelectorOk() ([]string, bool)
- func (o *ReplicationPolicy) HasSelector() bool
- func (r *ReplicationPolicy) PolicyName() string
- func (o *ReplicationPolicy) SetKeys(v []string) *ReplicationPolicy
- func (o *ReplicationPolicy) SetSelector(v []string) *ReplicationPolicy
- func (o *ReplicationPolicy) Validate() error
- type ReplicationSpec
Constants ¶
const ReplicationType = "replication"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NullableReplicationSpec ¶
type NullableReplicationSpec struct {
// contains filtered or unexported fields
}
func NewNullableReplicationSpec ¶
func NewNullableReplicationSpec(val *ReplicationSpec) *NullableReplicationSpec
func (*NullableReplicationSpec) Get ¶
func (v *NullableReplicationSpec) Get() *ReplicationSpec
func (*NullableReplicationSpec) IsSet ¶
func (v *NullableReplicationSpec) IsSet() bool
func (NullableReplicationSpec) MarshalJSON ¶
func (v NullableReplicationSpec) MarshalJSON() ([]byte, error)
func (*NullableReplicationSpec) Set ¶
func (v *NullableReplicationSpec) Set(val *ReplicationSpec)
func (*NullableReplicationSpec) UnmarshalJSON ¶
func (v *NullableReplicationSpec) UnmarshalJSON(src []byte) error
func (*NullableReplicationSpec) Unset ¶
func (v *NullableReplicationSpec) Unset()
type ReplicationPolicy ¶
type ReplicationPolicy struct { Base apis.PolicyBase Properties ReplicationSpec }
func Replication ¶
func Replication(name string) *ReplicationPolicy
func (*ReplicationPolicy) Build ¶
func (r *ReplicationPolicy) Build() v1beta1.AppPolicy
func (*ReplicationPolicy) DefType ¶
func (r *ReplicationPolicy) DefType() string
func (*ReplicationPolicy) FromPolicy ¶
func (r *ReplicationPolicy) FromPolicy(from v1beta1.AppPolicy) (*ReplicationPolicy, error)
func (*ReplicationPolicy) GetKeys ¶
func (o *ReplicationPolicy) GetKeys() []string
GetKeys returns the Keys field value
func (*ReplicationPolicy) GetKeysOk ¶
func (o *ReplicationPolicy) GetKeysOk() ([]string, bool)
GetKeysOk returns a tuple with the Keys field value and a boolean to check if the value has been set.
func (*ReplicationPolicy) GetSelector ¶
func (o *ReplicationPolicy) GetSelector() []string
GetSelector returns the Selector field value if set, zero value otherwise.
func (*ReplicationPolicy) GetSelectorOk ¶
func (o *ReplicationPolicy) GetSelectorOk() ([]string, bool)
GetSelectorOk returns a tuple with the Selector field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ReplicationPolicy) HasSelector ¶
func (o *ReplicationPolicy) HasSelector() bool
HasSelector returns a boolean if a field has been set.
func (*ReplicationPolicy) PolicyName ¶
func (r *ReplicationPolicy) PolicyName() string
func (*ReplicationPolicy) SetKeys ¶
func (o *ReplicationPolicy) SetKeys(v []string) *ReplicationPolicy
SetKeys sets field value
func (*ReplicationPolicy) SetSelector ¶
func (o *ReplicationPolicy) SetSelector(v []string) *ReplicationPolicy
SetSelector gets a reference to the given []string and assigns it to the selector field. Selector: Specify the components which will be replicated.
func (*ReplicationPolicy) Validate ¶
func (o *ReplicationPolicy) Validate() error
Validate validates this ReplicationSpec 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 ReplicationSpec ¶
type ReplicationSpec struct { // Spicify the keys of replication. Every key coresponds to a replication components Keys []string `json:"keys"` // Specify the components which will be replicated. Selector []string `json:"selector,omitempty"` }
ReplicationSpec struct for ReplicationSpec
func NewReplicationSpec ¶
func NewReplicationSpec() *ReplicationSpec
NewReplicationSpec is short for NewReplicationSpecWithDefault which instantiates a new ReplicationSpec 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 NewReplicationSpecEmpty ¶
func NewReplicationSpecEmpty() *ReplicationSpec
NewReplicationSpecEmpty instantiates a new ReplicationSpec object with no properties set. This constructor will not assign any default values to properties.
func NewReplicationSpecList ¶
func NewReplicationSpecList(ps ...*ReplicationSpec) []ReplicationSpec
NewReplicationSpecs converts a list ReplicationSpec pointers to objects. This is helpful when the SetReplicationSpec requires a list of objects
func NewReplicationSpecWith ¶
func NewReplicationSpecWith(keys []string) *ReplicationSpec
NewReplicationSpecWith instantiates a new ReplicationSpec 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 NewReplicationSpecWithDefault ¶
func NewReplicationSpecWithDefault() *ReplicationSpec
NewReplicationSpecWithDefault instantiates a new ReplicationSpec 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 (ReplicationSpec) MarshalJSON ¶
func (o ReplicationSpec) MarshalJSON() ([]byte, error)
func (ReplicationSpec) ToMap ¶
func (o ReplicationSpec) ToMap() (map[string]interface{}, error)