shared

package
v0.0.0-...-3a511c3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

type Factory

type Factory interface {
	Name() string
	Generate(logger zerolog.Logger, files chan<- File) error
	Enabled() bool
}

func NewFactory

func NewFactory(name string, enabled bool, gen GenFunc) Factory

type File

type File interface {
	Path() string
	Write() ([]byte, error)
}

func NewFile

func NewFile(path string, write func() ([]byte, error)) File

func NewJSONFile

func NewJSONFile[T interface{}](path string, write func() ([]T, error)) File

func NewYAMLFile

func NewYAMLFile[T interface{}](path string, write func() ([]T, error)) File

type GenFunc

type GenFunc func(logger zerolog.Logger, files chan<- File) error

Jump to

Keyboard shortcuts

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