core

package
v0.0.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelSignals

type CancelSignals struct{}

func (CancelSignals) Watch

func (CancelSignals) Watch(stopFunc func())

type ConfigFactory

type ConfigFactory interface {
	ConfigurePathResolver(func() (string, error))
	ConfigureContextResolver(func() (string, error))
	RESTConfig() (*rest.Config, error)
	DefaultNamespace() (string, error)
}

type ConfigFactoryImpl

type ConfigFactoryImpl struct {
	// contains filtered or unexported fields
}

func NewConfigFactoryImpl

func NewConfigFactoryImpl() *ConfigFactoryImpl

func (*ConfigFactoryImpl) ConfigureContextResolver

func (f *ConfigFactoryImpl) ConfigureContextResolver(resolverFunc func() (string, error))

func (*ConfigFactoryImpl) ConfigurePathResolver

func (f *ConfigFactoryImpl) ConfigurePathResolver(resolverFunc func() (string, error))

func (*ConfigFactoryImpl) DefaultNamespace

func (f *ConfigFactoryImpl) DefaultNamespace() (string, error)

func (*ConfigFactoryImpl) RESTConfig

func (f *ConfigFactoryImpl) RESTConfig() (*rest.Config, error)

type DepsFactory

type DepsFactory interface {
	DynamicClient() (dynamic.Interface, error)
	CoreClient() (kubernetes.Interface, error)
}

type DepsFactoryImpl

type DepsFactoryImpl struct {
	// contains filtered or unexported fields
}

func NewDepsFactoryImpl

func NewDepsFactoryImpl(configFactory ConfigFactory) *DepsFactoryImpl

func (*DepsFactoryImpl) CoreClient

func (f *DepsFactoryImpl) CoreClient() (kubernetes.Interface, error)

func (*DepsFactoryImpl) DynamicClient

func (f *DepsFactoryImpl) DynamicClient() (dynamic.Interface, error)

type FlagsFactory

type FlagsFactory struct {
	// contains filtered or unexported fields
}

func NewFlagsFactory

func NewFlagsFactory(configFactory ConfigFactory, depsFactory DepsFactory) FlagsFactory

func (FlagsFactory) NewNamespaceNameFlag

func (f FlagsFactory) NewNamespaceNameFlag(str *string) *NamespaceNameFlag

type GenerateNameFlags

type GenerateNameFlags struct {
	GenerateName bool
}

func (*GenerateNameFlags) Apply

func (*GenerateNameFlags) Set

func (s *GenerateNameFlags) Set(cmd *cobra.Command, flagsFactory FlagsFactory)

type KubeconfigContextFlag

type KubeconfigContextFlag struct {
	// contains filtered or unexported fields
}

func NewKubeconfigContextFlag

func NewKubeconfigContextFlag() *KubeconfigContextFlag

func (*KubeconfigContextFlag) Resolve

func (s *KubeconfigContextFlag) Resolve() error

func (*KubeconfigContextFlag) Set

func (s *KubeconfigContextFlag) Set(val string) error

func (*KubeconfigContextFlag) String

func (s *KubeconfigContextFlag) String() string

func (*KubeconfigContextFlag) Type

func (s *KubeconfigContextFlag) Type() string

func (*KubeconfigContextFlag) Value

func (s *KubeconfigContextFlag) Value() (string, error)

type KubeconfigFlags

type KubeconfigFlags struct {
	Path    *KubeconfigPathFlag
	Context *KubeconfigContextFlag
}

func (*KubeconfigFlags) Set

func (f *KubeconfigFlags) Set(cmd *cobra.Command, flagsFactory FlagsFactory)

type KubeconfigPathFlag

type KubeconfigPathFlag struct {
	// contains filtered or unexported fields
}

func NewKubeconfigPathFlag

func NewKubeconfigPathFlag() *KubeconfigPathFlag

func (*KubeconfigPathFlag) Resolve

func (s *KubeconfigPathFlag) Resolve() error

func (*KubeconfigPathFlag) Set

func (s *KubeconfigPathFlag) Set(val string) error

func (*KubeconfigPathFlag) String

func (s *KubeconfigPathFlag) String() string

func (*KubeconfigPathFlag) Type

func (s *KubeconfigPathFlag) Type() string

func (*KubeconfigPathFlag) Value

func (s *KubeconfigPathFlag) Value() (string, error)

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(ui ui.UI) Logger

func NewLoggerWithDebug

func NewLoggerWithDebug(ui ui.UI, debug bool) Logger

func (Logger) Debug

func (l Logger) Debug(tag string, msg string, args ...interface{})

func (Logger) Error

func (l Logger) Error(tag string, msg string, args ...interface{})

func (Logger) Info

func (l Logger) Info(tag string, msg string, args ...interface{})

type NamespaceFlags

type NamespaceFlags struct {
	Name string
}

func (*NamespaceFlags) Set

func (s *NamespaceFlags) Set(cmd *cobra.Command, flagsFactory FlagsFactory)

type NamespaceNameFlag

type NamespaceNameFlag struct {
	// contains filtered or unexported fields
}

func NewNamespaceNameFlag

func NewNamespaceNameFlag(value *string, configFactory ConfigFactory) *NamespaceNameFlag

func (*NamespaceNameFlag) Resolve

func (s *NamespaceNameFlag) Resolve() error

func (*NamespaceNameFlag) Set

func (s *NamespaceNameFlag) Set(val string) error

func (*NamespaceNameFlag) String

func (s *NamespaceNameFlag) String() string

func (*NamespaceNameFlag) Type

func (s *NamespaceNameFlag) Type() string

type ValueAge

type ValueAge struct {
	T time.Time
}

func NewValueAge

func NewValueAge(t time.Time) ValueAge

func (ValueAge) Compare

func (t ValueAge) Compare(other uitable.Value) int

func (ValueAge) String

func (t ValueAge) String() string

func (ValueAge) Value

func (t ValueAge) Value() uitable.Value

type ValueStringsSingleLine

type ValueStringsSingleLine struct {
	S []string
}

func NewValueStringsSingleLine

func NewValueStringsSingleLine(s []string) ValueStringsSingleLine

func (ValueStringsSingleLine) Compare

func (t ValueStringsSingleLine) Compare(other uitable.Value) int

func (ValueStringsSingleLine) String

func (t ValueStringsSingleLine) String() string

func (ValueStringsSingleLine) Value

Jump to

Keyboard shortcuts

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