Documentation ¶
Index ¶
- Variables
- type EnvironmentComponent
- type ResourceLoader
- func (loader *ResourceLoader) CountResources() int
- func (loader *ResourceLoader) GetResource() *sdk.ComponentResourceItem
- func (loader *ResourceLoader) LoadResources() error
- func (loader *ResourceLoader) SelectResource() error
- func (loader *ResourceLoader) SelectResourceFromSpec(spec *ResourceSpec) error
- func (loader *ResourceLoader) SelectResourceFromString(spec string) error
- type ResourceSpec
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
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 ¶
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
Click to show internal directories.
Click to hide internal directories.