resourcepolicies

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// currently only support configmap type of resource config
	ConfigmapRefType string           = "configmap"
	Skip             VolumeActionType = "skip"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	// Type defined specific type of action, currently only support 'skip'
	Type VolumeActionType `yaml:"type"`
	// Parameters defined map of parameters when executing a specific action
	Parameters map[string]interface{} `yaml:"parameters,omitempty"`
}

Action defined as one action for a specific way of backup

type Policies

type Policies struct {
	// contains filtered or unexported fields
}

func GetResourcePoliciesFromConfig

func GetResourcePoliciesFromConfig(cm *v1.ConfigMap) (*Policies, error)

func (*Policies) GetMatchAction

func (p *Policies) GetMatchAction(res interface{}) (*Action, error)

func (*Policies) Validate

func (p *Policies) Validate() error

type VolumeActionType

type VolumeActionType string

Jump to

Keyboard shortcuts

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