resources

package
v0.0.0-...-f2576f8 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockResources

type MockResources struct{}

func (*MockResources) GetConfigMap

func (mp *MockResources) GetConfigMap(namespace string, name string, key string) (string, error)

func (*MockResources) GetSecret

func (mp *MockResources) GetSecret(namespace string, name string, key string) (string, error)

func (*MockResources) Init

func (mp *MockResources) Init() error

type ResourceManager

type ResourceManager interface {
	GetSecret(namespace string, name string, key string) (string, error)
	GetConfigMap(namespace string, name string, key string) (string, error)
	Init() error
}

func NewMockResources

func NewMockResources() ResourceManager

func NewResources

func NewResources() ResourceManager

type Resources

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

func (*Resources) GetConfigMap

func (mp *Resources) GetConfigMap(namespace string, name string, key string) (string, error)

func (*Resources) GetSecret

func (mp *Resources) GetSecret(namespace string, name string, key string) (string, error)

func (*Resources) Init

func (mp *Resources) Init() error

Jump to

Keyboard shortcuts

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