anno

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PodDecorationCodec = scheme.Codecs.LegacyCodec(appsv1alpha1.SchemeGroupVersion)

Functions

func ApplyPatch

func ApplyPatch(revision *appsv1.ControllerRevision) (*appsv1alpha1.PodDecoration, error)

func CurrentRevision

func CurrentRevision(pod *corev1.Pod, podDecorationName string) *string

func GetDecorationInfoString

func GetDecorationInfoString(podDecorations map[string]*appsv1alpha1.PodDecoration) string

func GetPodDecorationFromRevision

func GetPodDecorationFromRevision(revision *appsv1.ControllerRevision) (*appsv1alpha1.PodDecoration, error)

func SetDecorationInfo

func SetDecorationInfo(pod *corev1.Pod, podDecorations map[string]*appsv1alpha1.PodDecoration)

Types

type DecorationInfo

type DecorationInfo struct {
	Name     string `json:"name"`
	Revision string `json:"revision"`
}

func UnmarshallFromString

func UnmarshallFromString(val string) ([]*DecorationInfo, error)

type DecorationRevisionInfo

type DecorationRevisionInfo []*DecorationInfo

func GetDecorationRevisionInfo

func GetDecorationRevisionInfo(pod *corev1.Pod) (info DecorationRevisionInfo)

func (DecorationRevisionInfo) GetRevision

func (d DecorationRevisionInfo) GetRevision(name string) *string

func (DecorationRevisionInfo) Size

func (d DecorationRevisionInfo) Size() int

Jump to

Keyboard shortcuts

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