Documentation ¶
Index ¶
- Constants
- func FromPolicy(from v1beta1.AppPolicy) (apis.Policy, error)
- type GarbageCollectPolicy
- func (g *GarbageCollectPolicy) Build() v1beta1.AppPolicy
- func (g *GarbageCollectPolicy) DefType() string
- func (g *GarbageCollectPolicy) FromPolicy(from v1beta1.AppPolicy) (*GarbageCollectPolicy, error)
- func (o *GarbageCollectPolicy) GetApplicationRevisionLimit() int32
- func (o *GarbageCollectPolicy) GetApplicationRevisionLimitOk() (*int32, bool)
- func (o *GarbageCollectPolicy) GetContinueOnFailure() bool
- func (o *GarbageCollectPolicy) GetContinueOnFailureOk() (*bool, bool)
- func (o *GarbageCollectPolicy) GetKeepLegacyResource() bool
- func (o *GarbageCollectPolicy) GetKeepLegacyResourceOk() (*bool, bool)
- func (o *GarbageCollectPolicy) GetRules() []GarbageCollectPolicyRule
- func (o *GarbageCollectPolicy) GetRulesOk() ([]GarbageCollectPolicyRule, bool)
- func (o *GarbageCollectPolicy) HasApplicationRevisionLimit() bool
- func (o *GarbageCollectPolicy) HasRules() bool
- func (g *GarbageCollectPolicy) PolicyName() string
- func (o *GarbageCollectPolicy) SetApplicationRevisionLimit(v int32) *GarbageCollectPolicy
- func (o *GarbageCollectPolicy) SetContinueOnFailure(v bool) *GarbageCollectPolicy
- func (o *GarbageCollectPolicy) SetKeepLegacyResource(v bool) *GarbageCollectPolicy
- func (o *GarbageCollectPolicy) SetRules(v []GarbageCollectPolicyRule) *GarbageCollectPolicy
- func (o *GarbageCollectPolicy) Validate() error
- type GarbageCollectPolicyRule
- func NewGarbageCollectPolicyRule() *GarbageCollectPolicyRule
- func NewGarbageCollectPolicyRuleEmpty() *GarbageCollectPolicyRule
- func NewGarbageCollectPolicyRuleList(ps ...*GarbageCollectPolicyRule) []GarbageCollectPolicyRule
- func NewGarbageCollectPolicyRuleWith(selector ResourcePolicyRuleSelector, strategy string) *GarbageCollectPolicyRule
- func NewGarbageCollectPolicyRuleWithDefault() *GarbageCollectPolicyRule
- func (o *GarbageCollectPolicyRule) GetPropagation() string
- func (o *GarbageCollectPolicyRule) GetPropagationOk() (*string, bool)
- func (o *GarbageCollectPolicyRule) GetSelector() ResourcePolicyRuleSelector
- func (o *GarbageCollectPolicyRule) GetSelectorOk() (*ResourcePolicyRuleSelector, bool)
- func (o *GarbageCollectPolicyRule) GetStrategy() string
- func (o *GarbageCollectPolicyRule) GetStrategyOk() (*string, bool)
- func (o *GarbageCollectPolicyRule) HasPropagation() bool
- func (o GarbageCollectPolicyRule) MarshalJSON() ([]byte, error)
- func (o *GarbageCollectPolicyRule) SetPropagation(v string) *GarbageCollectPolicyRule
- func (o *GarbageCollectPolicyRule) SetSelector(v ResourcePolicyRuleSelector) *GarbageCollectPolicyRule
- func (o *GarbageCollectPolicyRule) SetStrategy(v string) *GarbageCollectPolicyRule
- func (o GarbageCollectPolicyRule) ToMap() (map[string]interface{}, error)
- func (o *GarbageCollectPolicyRule) Validate() error
- type GarbageCollectSpec
- func NewGarbageCollectSpec() *GarbageCollectSpec
- func NewGarbageCollectSpecEmpty() *GarbageCollectSpec
- func NewGarbageCollectSpecList(ps ...*GarbageCollectSpec) []GarbageCollectSpec
- func NewGarbageCollectSpecWith(continueOnFailure bool, keepLegacyResource bool) *GarbageCollectSpec
- func NewGarbageCollectSpecWithDefault() *GarbageCollectSpec
- type NullableGarbageCollectPolicyRule
- func (v *NullableGarbageCollectPolicyRule) Get() *GarbageCollectPolicyRule
- func (v *NullableGarbageCollectPolicyRule) IsSet() bool
- func (v NullableGarbageCollectPolicyRule) MarshalJSON() ([]byte, error)
- func (v *NullableGarbageCollectPolicyRule) Set(val *GarbageCollectPolicyRule)
- func (v *NullableGarbageCollectPolicyRule) UnmarshalJSON(src []byte) error
- func (v *NullableGarbageCollectPolicyRule) Unset()
- type NullableGarbageCollectSpec
- func (v *NullableGarbageCollectSpec) Get() *GarbageCollectSpec
- func (v *NullableGarbageCollectSpec) IsSet() bool
- func (v NullableGarbageCollectSpec) MarshalJSON() ([]byte, error)
- func (v *NullableGarbageCollectSpec) Set(val *GarbageCollectSpec)
- func (v *NullableGarbageCollectSpec) UnmarshalJSON(src []byte) error
- func (v *NullableGarbageCollectSpec) Unset()
- type NullableResourcePolicyRuleSelector
- func (v *NullableResourcePolicyRuleSelector) Get() *ResourcePolicyRuleSelector
- func (v *NullableResourcePolicyRuleSelector) IsSet() bool
- func (v NullableResourcePolicyRuleSelector) MarshalJSON() ([]byte, error)
- func (v *NullableResourcePolicyRuleSelector) Set(val *ResourcePolicyRuleSelector)
- func (v *NullableResourcePolicyRuleSelector) UnmarshalJSON(src []byte) error
- func (v *NullableResourcePolicyRuleSelector) Unset()
- type ResourcePolicyRuleSelector
- func NewResourcePolicyRuleSelector() *ResourcePolicyRuleSelector
- func NewResourcePolicyRuleSelectorEmpty() *ResourcePolicyRuleSelector
- func NewResourcePolicyRuleSelectorList(ps ...*ResourcePolicyRuleSelector) []ResourcePolicyRuleSelector
- func NewResourcePolicyRuleSelectorWith() *ResourcePolicyRuleSelector
- func NewResourcePolicyRuleSelectorWithDefault() *ResourcePolicyRuleSelector
- func (o *ResourcePolicyRuleSelector) GetComponentNames() []string
- func (o *ResourcePolicyRuleSelector) GetComponentNamesOk() ([]string, bool)
- func (o *ResourcePolicyRuleSelector) GetComponentTypes() []string
- func (o *ResourcePolicyRuleSelector) GetComponentTypesOk() ([]string, bool)
- func (o *ResourcePolicyRuleSelector) GetOamTypes() []string
- func (o *ResourcePolicyRuleSelector) GetOamTypesOk() ([]string, bool)
- func (o *ResourcePolicyRuleSelector) GetResourceNames() []string
- func (o *ResourcePolicyRuleSelector) GetResourceNamesOk() ([]string, bool)
- func (o *ResourcePolicyRuleSelector) GetResourceTypes() []string
- func (o *ResourcePolicyRuleSelector) GetResourceTypesOk() ([]string, bool)
- func (o *ResourcePolicyRuleSelector) GetTraitTypes() []string
- func (o *ResourcePolicyRuleSelector) GetTraitTypesOk() ([]string, bool)
- func (o *ResourcePolicyRuleSelector) HasComponentNames() bool
- func (o *ResourcePolicyRuleSelector) HasComponentTypes() bool
- func (o *ResourcePolicyRuleSelector) HasOamTypes() bool
- func (o *ResourcePolicyRuleSelector) HasResourceNames() bool
- func (o *ResourcePolicyRuleSelector) HasResourceTypes() bool
- func (o *ResourcePolicyRuleSelector) HasTraitTypes() bool
- func (o ResourcePolicyRuleSelector) MarshalJSON() ([]byte, error)
- func (o *ResourcePolicyRuleSelector) SetComponentNames(v []string) *ResourcePolicyRuleSelector
- func (o *ResourcePolicyRuleSelector) SetComponentTypes(v []string) *ResourcePolicyRuleSelector
- func (o *ResourcePolicyRuleSelector) SetOamTypes(v []string) *ResourcePolicyRuleSelector
- func (o *ResourcePolicyRuleSelector) SetResourceNames(v []string) *ResourcePolicyRuleSelector
- func (o *ResourcePolicyRuleSelector) SetResourceTypes(v []string) *ResourcePolicyRuleSelector
- func (o *ResourcePolicyRuleSelector) SetTraitTypes(v []string) *ResourcePolicyRuleSelector
- func (o ResourcePolicyRuleSelector) ToMap() (map[string]interface{}, error)
- func (o *ResourcePolicyRuleSelector) Validate() error
Constants ¶
const GarbageCollectType = "garbage-collect"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GarbageCollectPolicy ¶
type GarbageCollectPolicy struct { Base apis.PolicyBase Properties GarbageCollectSpec }
func GarbageCollect ¶
func GarbageCollect(name string) *GarbageCollectPolicy
func (*GarbageCollectPolicy) Build ¶
func (g *GarbageCollectPolicy) Build() v1beta1.AppPolicy
func (*GarbageCollectPolicy) DefType ¶
func (g *GarbageCollectPolicy) DefType() string
func (*GarbageCollectPolicy) FromPolicy ¶
func (g *GarbageCollectPolicy) FromPolicy(from v1beta1.AppPolicy) (*GarbageCollectPolicy, error)
func (*GarbageCollectPolicy) GetApplicationRevisionLimit ¶
func (o *GarbageCollectPolicy) GetApplicationRevisionLimit() int32
GetApplicationRevisionLimit returns the ApplicationRevisionLimit field value if set, zero value otherwise.
func (*GarbageCollectPolicy) GetApplicationRevisionLimitOk ¶
func (o *GarbageCollectPolicy) GetApplicationRevisionLimitOk() (*int32, bool)
GetApplicationRevisionLimitOk returns a tuple with the ApplicationRevisionLimit field value if set, nil otherwise and a boolean to check if the value has been set.
func (*GarbageCollectPolicy) GetContinueOnFailure ¶
func (o *GarbageCollectPolicy) GetContinueOnFailure() bool
GetContinueOnFailure returns the ContinueOnFailure field value
func (*GarbageCollectPolicy) GetContinueOnFailureOk ¶
func (o *GarbageCollectPolicy) GetContinueOnFailureOk() (*bool, bool)
GetContinueOnFailureOk returns a tuple with the ContinueOnFailure field value and a boolean to check if the value has been set.
func (*GarbageCollectPolicy) GetKeepLegacyResource ¶
func (o *GarbageCollectPolicy) GetKeepLegacyResource() bool
GetKeepLegacyResource returns the KeepLegacyResource field value
func (*GarbageCollectPolicy) GetKeepLegacyResourceOk ¶
func (o *GarbageCollectPolicy) GetKeepLegacyResourceOk() (*bool, bool)
GetKeepLegacyResourceOk returns a tuple with the KeepLegacyResource field value and a boolean to check if the value has been set.
func (*GarbageCollectPolicy) GetRules ¶
func (o *GarbageCollectPolicy) GetRules() []GarbageCollectPolicyRule
GetRules returns the Rules field value if set, zero value otherwise.
func (*GarbageCollectPolicy) GetRulesOk ¶
func (o *GarbageCollectPolicy) GetRulesOk() ([]GarbageCollectPolicyRule, bool)
GetRulesOk returns a tuple with the Rules field value if set, nil otherwise and a boolean to check if the value has been set.
func (*GarbageCollectPolicy) HasApplicationRevisionLimit ¶
func (o *GarbageCollectPolicy) HasApplicationRevisionLimit() bool
HasApplicationRevisionLimit returns a boolean if a field has been set.
func (*GarbageCollectPolicy) HasRules ¶
func (o *GarbageCollectPolicy) HasRules() bool
HasRules returns a boolean if a field has been set.
func (*GarbageCollectPolicy) PolicyName ¶
func (g *GarbageCollectPolicy) PolicyName() string
func (*GarbageCollectPolicy) SetApplicationRevisionLimit ¶
func (o *GarbageCollectPolicy) SetApplicationRevisionLimit(v int32) *GarbageCollectPolicy
SetApplicationRevisionLimit gets a reference to the given int32 and assigns it to the applicationRevisionLimit field. ApplicationRevisionLimit: If set, it will override the default revision limit number and customize this number for the current application
func (*GarbageCollectPolicy) SetContinueOnFailure ¶
func (o *GarbageCollectPolicy) SetContinueOnFailure(v bool) *GarbageCollectPolicy
SetContinueOnFailure sets field value
func (*GarbageCollectPolicy) SetKeepLegacyResource ¶
func (o *GarbageCollectPolicy) SetKeepLegacyResource(v bool) *GarbageCollectPolicy
SetKeepLegacyResource sets field value
func (*GarbageCollectPolicy) SetRules ¶
func (o *GarbageCollectPolicy) SetRules(v []GarbageCollectPolicyRule) *GarbageCollectPolicy
SetRules gets a reference to the given []GarbageCollectPolicyRule and assigns it to the rules field. Rules: Specify the list of rules to control gc strategy at resource level, if one resource is controlled by multiple rules, first rule will be used
func (*GarbageCollectPolicy) Validate ¶
func (o *GarbageCollectPolicy) Validate() error
Validate validates this GarbageCollectSpec 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 GarbageCollectPolicyRule ¶
type GarbageCollectPolicyRule struct { // Specify the deletion propagation strategy for target resource to delete Propagation *string `json:"propagation,omitempty"` Selector *ResourcePolicyRuleSelector `json:"selector"` // Specify the strategy for target resource to recycle Strategy *string `json:"strategy"` }
GarbageCollectPolicyRule struct for GarbageCollectPolicyRule
func NewGarbageCollectPolicyRule ¶
func NewGarbageCollectPolicyRule() *GarbageCollectPolicyRule
NewGarbageCollectPolicyRule is short for NewGarbageCollectPolicyRuleWithDefault which instantiates a new GarbageCollectPolicyRule 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 NewGarbageCollectPolicyRuleEmpty ¶
func NewGarbageCollectPolicyRuleEmpty() *GarbageCollectPolicyRule
NewGarbageCollectPolicyRuleEmpty instantiates a new GarbageCollectPolicyRule object with no properties set. This constructor will not assign any default values to properties.
func NewGarbageCollectPolicyRuleList ¶
func NewGarbageCollectPolicyRuleList(ps ...*GarbageCollectPolicyRule) []GarbageCollectPolicyRule
NewGarbageCollectPolicyRules converts a list GarbageCollectPolicyRule pointers to objects. This is helpful when the SetGarbageCollectPolicyRule requires a list of objects
func NewGarbageCollectPolicyRuleWith ¶
func NewGarbageCollectPolicyRuleWith(selector ResourcePolicyRuleSelector, strategy string) *GarbageCollectPolicyRule
NewGarbageCollectPolicyRuleWith instantiates a new GarbageCollectPolicyRule 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 NewGarbageCollectPolicyRuleWithDefault ¶
func NewGarbageCollectPolicyRuleWithDefault() *GarbageCollectPolicyRule
NewGarbageCollectPolicyRuleWithDefault instantiates a new GarbageCollectPolicyRule 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 (*GarbageCollectPolicyRule) GetPropagation ¶
func (o *GarbageCollectPolicyRule) GetPropagation() string
GetPropagation returns the Propagation field value if set, zero value otherwise.
func (*GarbageCollectPolicyRule) GetPropagationOk ¶
func (o *GarbageCollectPolicyRule) GetPropagationOk() (*string, bool)
GetPropagationOk returns a tuple with the Propagation field value if set, nil otherwise and a boolean to check if the value has been set.
func (*GarbageCollectPolicyRule) GetSelector ¶
func (o *GarbageCollectPolicyRule) GetSelector() ResourcePolicyRuleSelector
GetSelector returns the Selector field value
func (*GarbageCollectPolicyRule) GetSelectorOk ¶
func (o *GarbageCollectPolicyRule) GetSelectorOk() (*ResourcePolicyRuleSelector, bool)
GetSelectorOk returns a tuple with the Selector field value and a boolean to check if the value has been set.
func (*GarbageCollectPolicyRule) GetStrategy ¶
func (o *GarbageCollectPolicyRule) GetStrategy() string
GetStrategy returns the Strategy field value
func (*GarbageCollectPolicyRule) GetStrategyOk ¶
func (o *GarbageCollectPolicyRule) GetStrategyOk() (*string, bool)
GetStrategyOk returns a tuple with the Strategy field value and a boolean to check if the value has been set.
func (*GarbageCollectPolicyRule) HasPropagation ¶
func (o *GarbageCollectPolicyRule) HasPropagation() bool
HasPropagation returns a boolean if a field has been set.
func (GarbageCollectPolicyRule) MarshalJSON ¶
func (o GarbageCollectPolicyRule) MarshalJSON() ([]byte, error)
func (*GarbageCollectPolicyRule) SetPropagation ¶
func (o *GarbageCollectPolicyRule) SetPropagation(v string) *GarbageCollectPolicyRule
SetPropagation gets a reference to the given string and assigns it to the propagation field. Propagation: Specify the deletion propagation strategy for target resource to delete
func (*GarbageCollectPolicyRule) SetSelector ¶
func (o *GarbageCollectPolicyRule) SetSelector(v ResourcePolicyRuleSelector) *GarbageCollectPolicyRule
SetSelector sets field value
func (*GarbageCollectPolicyRule) SetStrategy ¶
func (o *GarbageCollectPolicyRule) SetStrategy(v string) *GarbageCollectPolicyRule
SetStrategy sets field value
func (GarbageCollectPolicyRule) ToMap ¶
func (o GarbageCollectPolicyRule) ToMap() (map[string]interface{}, error)
func (*GarbageCollectPolicyRule) Validate ¶
func (o *GarbageCollectPolicyRule) Validate() error
Validate validates this GarbageCollectPolicyRule 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 GarbageCollectSpec ¶
type GarbageCollectSpec struct { // If set, it will override the default revision limit number and customize this number for the current application ApplicationRevisionLimit *int32 `json:"applicationRevisionLimit,omitempty"` // If is set, continue to execute gc when the workflow fails, by default gc will be executed only after the workflow succeeds ContinueOnFailure *bool `json:"continueOnFailure"` // If is set, outdated versioned resourcetracker will not be recycled automatically, outdated resources will be kept until resourcetracker be deleted manually KeepLegacyResource *bool `json:"keepLegacyResource"` // Specify the list of rules to control gc strategy at resource level, if one resource is controlled by multiple rules, first rule will be used Rules []GarbageCollectPolicyRule `json:"rules,omitempty"` }
GarbageCollectSpec struct for GarbageCollectSpec
func NewGarbageCollectSpec ¶
func NewGarbageCollectSpec() *GarbageCollectSpec
NewGarbageCollectSpec is short for NewGarbageCollectSpecWithDefault which instantiates a new GarbageCollectSpec 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 NewGarbageCollectSpecEmpty ¶
func NewGarbageCollectSpecEmpty() *GarbageCollectSpec
NewGarbageCollectSpecEmpty instantiates a new GarbageCollectSpec object with no properties set. This constructor will not assign any default values to properties.
func NewGarbageCollectSpecList ¶
func NewGarbageCollectSpecList(ps ...*GarbageCollectSpec) []GarbageCollectSpec
NewGarbageCollectSpecs converts a list GarbageCollectSpec pointers to objects. This is helpful when the SetGarbageCollectSpec requires a list of objects
func NewGarbageCollectSpecWith ¶
func NewGarbageCollectSpecWith(continueOnFailure bool, keepLegacyResource bool) *GarbageCollectSpec
NewGarbageCollectSpecWith instantiates a new GarbageCollectSpec 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 NewGarbageCollectSpecWithDefault ¶
func NewGarbageCollectSpecWithDefault() *GarbageCollectSpec
NewGarbageCollectSpecWithDefault instantiates a new GarbageCollectSpec 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 (GarbageCollectSpec) MarshalJSON ¶
func (o GarbageCollectSpec) MarshalJSON() ([]byte, error)
func (GarbageCollectSpec) ToMap ¶
func (o GarbageCollectSpec) ToMap() (map[string]interface{}, error)
type NullableGarbageCollectPolicyRule ¶
type NullableGarbageCollectPolicyRule struct {
// contains filtered or unexported fields
}
func NewNullableGarbageCollectPolicyRule ¶
func NewNullableGarbageCollectPolicyRule(val *GarbageCollectPolicyRule) *NullableGarbageCollectPolicyRule
func (*NullableGarbageCollectPolicyRule) Get ¶
func (v *NullableGarbageCollectPolicyRule) Get() *GarbageCollectPolicyRule
func (*NullableGarbageCollectPolicyRule) IsSet ¶
func (v *NullableGarbageCollectPolicyRule) IsSet() bool
func (NullableGarbageCollectPolicyRule) MarshalJSON ¶
func (v NullableGarbageCollectPolicyRule) MarshalJSON() ([]byte, error)
func (*NullableGarbageCollectPolicyRule) Set ¶
func (v *NullableGarbageCollectPolicyRule) Set(val *GarbageCollectPolicyRule)
func (*NullableGarbageCollectPolicyRule) UnmarshalJSON ¶
func (v *NullableGarbageCollectPolicyRule) UnmarshalJSON(src []byte) error
func (*NullableGarbageCollectPolicyRule) Unset ¶
func (v *NullableGarbageCollectPolicyRule) Unset()
type NullableGarbageCollectSpec ¶
type NullableGarbageCollectSpec struct {
// contains filtered or unexported fields
}
func NewNullableGarbageCollectSpec ¶
func NewNullableGarbageCollectSpec(val *GarbageCollectSpec) *NullableGarbageCollectSpec
func (*NullableGarbageCollectSpec) Get ¶
func (v *NullableGarbageCollectSpec) Get() *GarbageCollectSpec
func (*NullableGarbageCollectSpec) IsSet ¶
func (v *NullableGarbageCollectSpec) IsSet() bool
func (NullableGarbageCollectSpec) MarshalJSON ¶
func (v NullableGarbageCollectSpec) MarshalJSON() ([]byte, error)
func (*NullableGarbageCollectSpec) Set ¶
func (v *NullableGarbageCollectSpec) Set(val *GarbageCollectSpec)
func (*NullableGarbageCollectSpec) UnmarshalJSON ¶
func (v *NullableGarbageCollectSpec) UnmarshalJSON(src []byte) error
func (*NullableGarbageCollectSpec) Unset ¶
func (v *NullableGarbageCollectSpec) Unset()
type NullableResourcePolicyRuleSelector ¶
type NullableResourcePolicyRuleSelector struct {
// contains filtered or unexported fields
}
func NewNullableResourcePolicyRuleSelector ¶
func NewNullableResourcePolicyRuleSelector(val *ResourcePolicyRuleSelector) *NullableResourcePolicyRuleSelector
func (*NullableResourcePolicyRuleSelector) Get ¶
func (v *NullableResourcePolicyRuleSelector) Get() *ResourcePolicyRuleSelector
func (*NullableResourcePolicyRuleSelector) IsSet ¶
func (v *NullableResourcePolicyRuleSelector) IsSet() bool
func (NullableResourcePolicyRuleSelector) MarshalJSON ¶
func (v NullableResourcePolicyRuleSelector) MarshalJSON() ([]byte, error)
func (*NullableResourcePolicyRuleSelector) Set ¶
func (v *NullableResourcePolicyRuleSelector) Set(val *ResourcePolicyRuleSelector)
func (*NullableResourcePolicyRuleSelector) UnmarshalJSON ¶
func (v *NullableResourcePolicyRuleSelector) UnmarshalJSON(src []byte) error
func (*NullableResourcePolicyRuleSelector) Unset ¶
func (v *NullableResourcePolicyRuleSelector) Unset()
type ResourcePolicyRuleSelector ¶
type ResourcePolicyRuleSelector struct { // Select resources by component names ComponentNames []string `json:"componentNames,omitempty"` // Select resources by component types ComponentTypes []string `json:"componentTypes,omitempty"` // Select resources by oamTypes (COMPONENT or TRAIT) OamTypes []string `json:"oamTypes,omitempty"` // Select resources by their names ResourceNames []string `json:"resourceNames,omitempty"` // Select resources by resource types (like Deployment) ResourceTypes []string `json:"resourceTypes,omitempty"` // Select resources by trait types TraitTypes []string `json:"traitTypes,omitempty"` }
ResourcePolicyRuleSelector struct for ResourcePolicyRuleSelector
func NewResourcePolicyRuleSelector ¶
func NewResourcePolicyRuleSelector() *ResourcePolicyRuleSelector
NewResourcePolicyRuleSelector is short for NewResourcePolicyRuleSelectorWithDefault which instantiates a new ResourcePolicyRuleSelector 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 NewResourcePolicyRuleSelectorEmpty ¶
func NewResourcePolicyRuleSelectorEmpty() *ResourcePolicyRuleSelector
NewResourcePolicyRuleSelectorEmpty instantiates a new ResourcePolicyRuleSelector object with no properties set. This constructor will not assign any default values to properties.
func NewResourcePolicyRuleSelectorList ¶
func NewResourcePolicyRuleSelectorList(ps ...*ResourcePolicyRuleSelector) []ResourcePolicyRuleSelector
NewResourcePolicyRuleSelectors converts a list ResourcePolicyRuleSelector pointers to objects. This is helpful when the SetResourcePolicyRuleSelector requires a list of objects
func NewResourcePolicyRuleSelectorWith ¶
func NewResourcePolicyRuleSelectorWith() *ResourcePolicyRuleSelector
NewResourcePolicyRuleSelectorWith instantiates a new ResourcePolicyRuleSelector 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 NewResourcePolicyRuleSelectorWithDefault ¶
func NewResourcePolicyRuleSelectorWithDefault() *ResourcePolicyRuleSelector
NewResourcePolicyRuleSelectorWithDefault instantiates a new ResourcePolicyRuleSelector 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 (*ResourcePolicyRuleSelector) GetComponentNames ¶
func (o *ResourcePolicyRuleSelector) GetComponentNames() []string
GetComponentNames returns the ComponentNames field value if set, zero value otherwise.
func (*ResourcePolicyRuleSelector) GetComponentNamesOk ¶
func (o *ResourcePolicyRuleSelector) GetComponentNamesOk() ([]string, bool)
GetComponentNamesOk returns a tuple with the ComponentNames field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ResourcePolicyRuleSelector) GetComponentTypes ¶
func (o *ResourcePolicyRuleSelector) GetComponentTypes() []string
GetComponentTypes returns the ComponentTypes field value if set, zero value otherwise.
func (*ResourcePolicyRuleSelector) GetComponentTypesOk ¶
func (o *ResourcePolicyRuleSelector) GetComponentTypesOk() ([]string, bool)
GetComponentTypesOk returns a tuple with the ComponentTypes field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ResourcePolicyRuleSelector) GetOamTypes ¶
func (o *ResourcePolicyRuleSelector) GetOamTypes() []string
GetOamTypes returns the OamTypes field value if set, zero value otherwise.
func (*ResourcePolicyRuleSelector) GetOamTypesOk ¶
func (o *ResourcePolicyRuleSelector) GetOamTypesOk() ([]string, bool)
GetOamTypesOk returns a tuple with the OamTypes field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ResourcePolicyRuleSelector) GetResourceNames ¶
func (o *ResourcePolicyRuleSelector) GetResourceNames() []string
GetResourceNames returns the ResourceNames field value if set, zero value otherwise.
func (*ResourcePolicyRuleSelector) GetResourceNamesOk ¶
func (o *ResourcePolicyRuleSelector) GetResourceNamesOk() ([]string, bool)
GetResourceNamesOk returns a tuple with the ResourceNames field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ResourcePolicyRuleSelector) GetResourceTypes ¶
func (o *ResourcePolicyRuleSelector) GetResourceTypes() []string
GetResourceTypes returns the ResourceTypes field value if set, zero value otherwise.
func (*ResourcePolicyRuleSelector) GetResourceTypesOk ¶
func (o *ResourcePolicyRuleSelector) GetResourceTypesOk() ([]string, bool)
GetResourceTypesOk returns a tuple with the ResourceTypes field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ResourcePolicyRuleSelector) GetTraitTypes ¶
func (o *ResourcePolicyRuleSelector) GetTraitTypes() []string
GetTraitTypes returns the TraitTypes field value if set, zero value otherwise.
func (*ResourcePolicyRuleSelector) GetTraitTypesOk ¶
func (o *ResourcePolicyRuleSelector) GetTraitTypesOk() ([]string, bool)
GetTraitTypesOk returns a tuple with the TraitTypes field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ResourcePolicyRuleSelector) HasComponentNames ¶
func (o *ResourcePolicyRuleSelector) HasComponentNames() bool
HasComponentNames returns a boolean if a field has been set.
func (*ResourcePolicyRuleSelector) HasComponentTypes ¶
func (o *ResourcePolicyRuleSelector) HasComponentTypes() bool
HasComponentTypes returns a boolean if a field has been set.
func (*ResourcePolicyRuleSelector) HasOamTypes ¶
func (o *ResourcePolicyRuleSelector) HasOamTypes() bool
HasOamTypes returns a boolean if a field has been set.
func (*ResourcePolicyRuleSelector) HasResourceNames ¶
func (o *ResourcePolicyRuleSelector) HasResourceNames() bool
HasResourceNames returns a boolean if a field has been set.
func (*ResourcePolicyRuleSelector) HasResourceTypes ¶
func (o *ResourcePolicyRuleSelector) HasResourceTypes() bool
HasResourceTypes returns a boolean if a field has been set.
func (*ResourcePolicyRuleSelector) HasTraitTypes ¶
func (o *ResourcePolicyRuleSelector) HasTraitTypes() bool
HasTraitTypes returns a boolean if a field has been set.
func (ResourcePolicyRuleSelector) MarshalJSON ¶
func (o ResourcePolicyRuleSelector) MarshalJSON() ([]byte, error)
func (*ResourcePolicyRuleSelector) SetComponentNames ¶
func (o *ResourcePolicyRuleSelector) SetComponentNames(v []string) *ResourcePolicyRuleSelector
SetComponentNames gets a reference to the given []string and assigns it to the componentNames field. ComponentNames: Select resources by component names
func (*ResourcePolicyRuleSelector) SetComponentTypes ¶
func (o *ResourcePolicyRuleSelector) SetComponentTypes(v []string) *ResourcePolicyRuleSelector
SetComponentTypes gets a reference to the given []string and assigns it to the componentTypes field. ComponentTypes: Select resources by component types
func (*ResourcePolicyRuleSelector) SetOamTypes ¶
func (o *ResourcePolicyRuleSelector) SetOamTypes(v []string) *ResourcePolicyRuleSelector
SetOamTypes gets a reference to the given []string and assigns it to the oamTypes field. OamTypes: Select resources by oamTypes (COMPONENT or TRAIT)
func (*ResourcePolicyRuleSelector) SetResourceNames ¶
func (o *ResourcePolicyRuleSelector) SetResourceNames(v []string) *ResourcePolicyRuleSelector
SetResourceNames gets a reference to the given []string and assigns it to the resourceNames field. ResourceNames: Select resources by their names
func (*ResourcePolicyRuleSelector) SetResourceTypes ¶
func (o *ResourcePolicyRuleSelector) SetResourceTypes(v []string) *ResourcePolicyRuleSelector
SetResourceTypes gets a reference to the given []string and assigns it to the resourceTypes field. ResourceTypes: Select resources by resource types (like Deployment)
func (*ResourcePolicyRuleSelector) SetTraitTypes ¶
func (o *ResourcePolicyRuleSelector) SetTraitTypes(v []string) *ResourcePolicyRuleSelector
SetTraitTypes gets a reference to the given []string and assigns it to the traitTypes field. TraitTypes: Select resources by trait types
func (ResourcePolicyRuleSelector) ToMap ¶
func (o ResourcePolicyRuleSelector) ToMap() (map[string]interface{}, error)
func (*ResourcePolicyRuleSelector) Validate ¶
func (o *ResourcePolicyRuleSelector) Validate() error
Validate validates this ResourcePolicyRuleSelector 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