Documentation
¶
Index ¶
- Constants
- func DiscoverOperatorPod(binary string) (string, error)
- func ExecuteCommandInPod(ctx context.Context, k kclient.Client, container, podName, namespace string, ...) error
- func WithDefinitions[T meta.Object](ctx context.Context, logger zerolog.Logger, client kclient.Client, ...) error
- func WithGVRPrefix(files chan<- File, t reflect.Type) (chan<- File, func())
- func WithItem[T meta.Object](ctx context.Context, logger zerolog.Logger, client kclient.Client, ...) error
- func WithPrefix(files chan<- File, f string, args ...any) (chan<- File, func())
- func WithSlash(files chan<- File) (chan<- File, func())
- type ArangoOperatorExecFunc
- type DataFunc
- type Extract
- type Factory
- type FactoryGen
- type File
- type GenFunc
- type IterateOverItemsFunc
Constants ¶
View Source
const LocalBinDir = "/usr/bin/arangodb_operator"
Variables ¶
This section is empty.
Functions ¶
func DiscoverOperatorPod ¶
func ExecuteCommandInPod ¶
func ExecuteCommandInPod(ctx context.Context, k kclient.Client, container, podName, namespace string, command []string, stdin io.Reader, stdout io.Writer, stderr io.Writer) error
ExecuteCommandInPod executes command in pod with the given pod name and namespace.
func WithDefinitions ¶
Types ¶
type ArangoOperatorExecFunc ¶
func DiscoverExecFunc ¶
func DiscoverExecFunc() (ArangoOperatorExecFunc, error)
func LocalExecFunc ¶
func LocalExecFunc(binary string) (ArangoOperatorExecFunc, error)
func RemoteExecFunc ¶
func RemoteExecFunc(binary, pod, container string) (ArangoOperatorExecFunc, error)
func RemoteOperatorExecFunc ¶
func RemoteOperatorExecFunc(binary string) (ArangoOperatorExecFunc, error)
type DataFunc ¶
func GenerateDataFuncP1 ¶
type Factory ¶
type FactoryGen ¶
type FactoryGen interface { AddSection(name string) FactoryGen Register(name string, enabled bool, gens GenFunc) FactoryGen Extend(in func(f FactoryGen)) FactoryGen Get() []Factory }
func NewFactoryGen ¶
func NewFactoryGen() FactoryGen
type GenFunc ¶
func WithKubernetesItems ¶
func WithKubernetesItems[T meta.Object](extract Extract[T], iterators ...IterateOverItemsFunc[T]) GenFunc
type IterateOverItemsFunc ¶
type IterateOverItemsFunc[T meta.Object] func(ctx context.Context, logger zerolog.Logger, client kclient.Client, files chan<- File, item T) error
func WithModification ¶
func WithModification[T meta.Object](in IterateOverItemsFunc[T], mods ...util.ModR[T]) IterateOverItemsFunc[T]
Click to show internal directories.
Click to hide internal directories.