utils

package
v0.0.0-...-9ef13ba Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	AnnotationModuleMark = "charlecd.io/module"
	AnnotationCircleMark = "charlecd.io/circle"
	AnnotationManagedBy  = "app.kubernetes.io/managed-by"
	AnnotationCircles    = "charlescd.io/circles"

	ManagedBy = "charlescd"
)

Variables

This section is empty.

Functions

func AddCircleToLabels

func AddCircleToLabels(circleReference string, currentLabels map[string]string) string

func GetObjectKeyByPath

func GetObjectKeyByPath(path string) client.ObjectKey

func MessageToStruct

func MessageToStruct(message proto.Message, obj *interface{}) error

func StructToMessage

func StructToMessage(obj interface{}, message proto.Message) error

Types

type ResourceInfo

type ResourceInfo struct {
	ModuleMark string
	CircleMark string
	ManagedBy  string
}

Jump to

Keyboard shortcuts

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