kubernetes

package
v0.0.0-...-687f649 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const LocalBinDir = "/usr/bin/arangodb_operator"

Variables

This section is empty.

Functions

func AgencyDump

func AgencyDump() shared.Factory

func Backup

func Backup() shared.Factory

func Deployments

func Deployments() shared.Factory

func Events

func Events() shared.Factory

func ListObjects

func ListObjects[L k8sutil.ListContinue, T meta.Object](ctx context.Context, k k8sutil.ListAPI[L], extract func(result L) []T) ([]T, error)

func ML

func ML() shared.Factory

func NewDeploymentAgencyInfo

func NewDeploymentAgencyInfo(out chan<- shared.File, name string, handler ArangoOperatorExecFunc)

func Pods

func Pods() shared.Factory

func Scheduler

func Scheduler() shared.Factory

func Secrets

func Secrets() shared.Factory

func Services

func Services() shared.Factory

Types

type ArangoOperatorExecFunc

type ArangoOperatorExecFunc func(args ...string) ([]byte, []byte, error)

type List

type List[T any] []T

func Extract

func Extract[T1, T2 any](in List[T1], ex func(in T1) T2) List[T2]

func (List[T]) Append

func (l List[T]) Append(obj ...T) List[T]

func (List[T]) Contains

func (l List[T]) Contains(f func(a T) bool) bool

func (List[T]) Filter

func (l List[T]) Filter(f func(a T) bool) List[T]

func (List[T]) Sort

func (l List[T]) Sort(pred func(a, b T) bool) List[T]

func (List[T]) Unique

func (l List[T]) Unique(f func(existing List[T], a T) bool) List[T]

type ObjectList

type ObjectList[T meta.Object] map[types.UID]T

func MapObjects

func MapObjects[L k8sutil.ListContinue, T meta.Object](ctx context.Context, k k8sutil.ListAPI[L], extract func(result L) []T) (ObjectList[T], error)

func (ObjectList[T]) AsList

func (d ObjectList[T]) AsList() List[T]

func (ObjectList[T]) ByName

func (d ObjectList[T]) ByName(name string) (T, bool)

Jump to

Keyboard shortcuts

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