policy

package
v0.0.1 Latest Latest
Warning

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

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

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

type PolicyLabelSelector struct {
	labels.Selector
}

func (*PolicyLabelSelector) UnmarshalJSON

func (p *PolicyLabelSelector) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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