shared

package
v0.0.0-...-540bb61 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCommandInPod

func ExecuteCommandInPod(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