patchk8sobjects

package
v0.0.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PatchK8sObjects

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

PatchK8sObjects patches k8s objects.

func (*PatchK8sObjects) AllowConcurrency

func (pko *PatchK8sObjects) AllowConcurrency() bool

func (*PatchK8sObjects) Init

func (pko *PatchK8sObjects) Init(c types.Common, properties map[string]interface{}) error

func (*PatchK8sObjects) New

func (pko *PatchK8sObjects) New() types.Action

func (*PatchK8sObjects) Run

func (pko *PatchK8sObjects) Run(ctx context.Context, sourceType string, event interface{}, data interface{}, _ []string) error

func (*PatchK8sObjects) Type

func (pko *PatchK8sObjects) Type() string

func (*PatchK8sObjects) Validate

func (pko *PatchK8sObjects) Validate(properties map[string]interface{}) error

type PatchTarget

type PatchTarget struct {
	APIVersion     string            `json:"apiVersion"`
	Kind           string            `json:"kind"`
	Namespace      string            `json:"namespace"`
	Name           string            `json:"name"`
	LabelSelectors map[string]string `json:"labelSelectors"`
}

type Properties

type Properties struct {
	PatchTarget      PatchTarget `json:"patchTarget"`
	Patch            string      `json:"patch"`
	AllowConcurrency bool        `json:"allowConcurrency"`
}

Jump to

Keyboard shortcuts

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