v1alpha1

package
v1.0.0-beta.16 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ResourceMeta = yaml.ResourceMeta{
	TypeMeta: yaml.TypeMeta{
		APIVersion: "config.google.com/v1alpha1",
		Kind:       "Plan",
	},
	ObjectMeta: yaml.ObjectMeta{
		NameMeta: yaml.NameMeta{
			Name: "plan",
		},
		Annotations: map[string]string{
			"config.kubernetes.io/local-config": "true",
		},
	},
}

Functions

This section is empty.

Types

type Action

type Action struct {
	Type      ActionType                 `json:"action,omitempty" yaml:"action,omitempty"`
	Group     string                     `json:"apiVersion,omitempty" yaml:"apiVersion,omitempty"`
	Kind      string                     `json:"kind,omitempty" yaml:"kind,omitempty"`
	Name      string                     `json:"name,omitempty" yaml:"name,omitempty"`
	Namespace string                     `json:"namespace,omitempty" yaml:"namespace,omitempty"`
	Before    *unstructured.Unstructured `json:"before,omitempty" yaml:"before,omitempty"`
	After     *unstructured.Unstructured `json:"after,omitempty" yaml:"after,omitempty"`
	Error     string                     `json:"error,omitempty" yaml:"error,omitempty"`
}

type ActionType

type ActionType string
const (
	Create    ActionType = "Create"
	Unchanged ActionType = "Unchanged"
	Delete    ActionType = "Delete"
	Update    ActionType = "Update"
	Skip      ActionType = "Skip"
	Error     ActionType = "Error"
)

type Plan

type Plan struct {
	yaml.ResourceMeta `yaml:",inline" json:",inline"`

	Spec PlanSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
}

type PlanSpec

type PlanSpec struct {
	Actions []Action `json:"actions,omitempty"`
}

Jump to

Keyboard shortcuts

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