Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupPolicy ¶
type BackupPolicy struct {
metav1.TypeMeta `json:",inline"`
// Standard object's metadata.
// +optional
metav1.ObjectMeta `json:"metadata,omitempty"`
// Rules holds all the PolicyRules for this BackupPolicy
// +optional
Rules []BackupRule `json:"rules"`
Fields []string `json:"fields"`
RPOPolicy *rpo.RPOPolicy `json:"rpoPolicy,omitempty"`
}
func (BackupPolicy) RuleFor ¶
func (b BackupPolicy) RuleFor(rev store.Revision) *BackupRule
type BackupRule ¶
type BackupRule struct {
APIGroups []string `json:"apiGroups,omitempty"`
// Resources is a list of resources this rule applies to. ResourceAll represents all resources.
// +optional
Resources []string `json:"resources,omitempty"`
// ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
// +optional
ResourceNames []string `json:"resourceNames,omitempty"`
Namespaces []string `json:"namespaces,omitempty"`
Fields []string `json:"fields"`
LabelSelector *PolicyLabelSelector `json:"labelSelector,omitempty"`
RPOPolicy *rpo.RPOPolicy `json:"rpoPolicy,omitempty"`
}
type PolicyLabelSelector ¶
func (*PolicyLabelSelector) UnmarshalJSON ¶
func (p *PolicyLabelSelector) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.