context

package
v0.0.0-...-d7aa82b Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExportFolder = "export"
)

Variables

This section is empty.

Functions

func LookupOrCreateFolder

func LookupOrCreateFolder(c Context, path ...string) string

Types

type Context

type Context interface {
	RootFolder() string
}

type ExporterContext

type ExporterContext struct {
	OutputFolder     string
	ConnectionStatus *connect.ConnectionStatus

	Debug bool
	// contains filtered or unexported fields
}

func (*ExporterContext) InitFromConfig

func (c *ExporterContext) InitFromConfig(config *config.Config, connectionStatus *connect.ConnectionStatus, logger *logrus.Logger, debug bool)

func (*ExporterContext) KubeConfig

func (c *ExporterContext) KubeConfig() *rest.Config

func (*ExporterContext) KubeConfigPath

func (c *ExporterContext) KubeConfigPath() string

func (*ExporterContext) Logger

func (c *ExporterContext) Logger() *logrus.Logger

func (*ExporterContext) RootFolder

func (c *ExporterContext) RootFolder() string

Jump to

Keyboard shortcuts

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