injection

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectLogger

func InjectLogger(logger logr.Logger) plugin.InitHook

func InjectWorkspace

func InjectWorkspace() plugin.InitHook

Types

type DefaultInjectionMixin

type DefaultInjectionMixin struct {
	Logger    logr.Logger
	Workspace string
}

func NewDefaultInjectionMixin

func NewDefaultInjectionMixin() *DefaultInjectionMixin

func (*DefaultInjectionMixin) InjectLogger

func (m *DefaultInjectionMixin) InjectLogger(logger logr.Logger)

func (*DefaultInjectionMixin) InjectWorkspace

func (m *DefaultInjectionMixin) InjectWorkspace(ws string)

type RequiresLogger

type RequiresLogger interface {
	InjectLogger(obj logr.Logger)
}

RequiresValidation indicate the subcommand requires a logger

type RequiresWorkspace

type RequiresWorkspace interface {
	InjectWorkspace(ws string)
}

RequiresValidation indicate the subcommand requires workspace

Jump to

Keyboard shortcuts

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