bridge

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotLoaded = errors.New("bunnyshell not loaded")

	ErrResourceNotFound = errors.New("resource %s not found")

	ErrNoComponentResources = errors.New("no component resources available")
)
View Source
var ErrInvalidResourceSpec = errors.New("invalid resource spec")

Functions

This section is empty.

Types

type EnvironmentComponent

type EnvironmentComponent struct {
	Environment *sdk.EnvironmentItem
	Component   *sdk.ComponentItem
	// contains filtered or unexported fields
}

func NewEnvironmentComponent

func NewEnvironmentComponent() *EnvironmentComponent

func (*EnvironmentComponent) IsLoaded

func (ec *EnvironmentComponent) IsLoaded() bool

func (*EnvironmentComponent) Load

func (ec *EnvironmentComponent) Load(profile config.Profile) error

type ResourceLoader

type ResourceLoader struct {
	EnvironmentComponent

	ManualSelectSingleResource bool
	// contains filtered or unexported fields
}

func NewResourceLoader

func NewResourceLoader() *ResourceLoader

func (*ResourceLoader) CountResources

func (loader *ResourceLoader) CountResources() int

func (*ResourceLoader) GetResource

func (loader *ResourceLoader) GetResource() *sdk.ComponentResourceItem

func (*ResourceLoader) LoadResources

func (loader *ResourceLoader) LoadResources() error

func (*ResourceLoader) SelectResource

func (loader *ResourceLoader) SelectResource() error

func (*ResourceLoader) SelectResourceFromSpec

func (loader *ResourceLoader) SelectResourceFromSpec(spec *ResourceSpec) error

func (*ResourceLoader) SelectResourceFromString

func (loader *ResourceLoader) SelectResourceFromString(spec string) error

type ResourceSpec

type ResourceSpec struct {
	Namespace string
	Kind      string
	Name      string
}

func NewResourceSpec

func NewResourceSpec(spec string) *ResourceSpec

func (*ResourceSpec) Match

func (r *ResourceSpec) Match(resource sdk.ComponentResourceItem) bool

func (*ResourceSpec) MatchString

func (r *ResourceSpec) MatchString(spec string) bool

func (*ResourceSpec) String

func (r *ResourceSpec) String() string

Jump to

Keyboard shortcuts

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