Documentation
¶
Index ¶
- Variables
- type Buckets
- func (bs *Buckets) Aliases(name string) []string
- func (bs *Buckets) Describe(name string) string
- func (bs *Buckets) InitBucket(name string, config Config) (Interface, error)
- func (bs *Buckets) IsActive(name string) bool
- func (bs *Buckets) Register(name string, aliases []string, description string, active bool, ...)
- func (bs *Buckets) Registered() []string
- func (bs *Buckets) RegisteredPassive() []string
- func (bs *Buckets) ResolveAlias(alias string) (string, bool)
- type Config
- type ErrUnknownBucket
- type Factory
- type Interface
- type Results
- type ResultsOpts
- type Runnable
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMissingClient = errors.New("buckets need a kubernetes client for initialization")
Functions ¶
This section is empty.
Types ¶
type Buckets ¶
type Buckets struct {
// contains filtered or unexported fields
}
func NewBuckets ¶
func NewBuckets() *Buckets
func (*Buckets) InitBucket ¶
InitBucket creates an instance of the named interface.
func (*Buckets) Register ¶
func (bs *Buckets) Register(name string, aliases []string, description string, active bool, factory Factory)
Register registers a plugin Factory by name. This is expected to happen during app startup.
func (*Buckets) Registered ¶
Registered enumerates the names of all registered plugins.
func (*Buckets) RegisteredPassive ¶
Registered enumerates the names of all passive registered plugins.
type Config ¶
type ErrUnknownBucket ¶
type ErrUnknownBucket struct {
// contains filtered or unexported fields
}
func (ErrUnknownBucket) Error ¶
func (e ErrUnknownBucket) Error() string
type Results ¶
type Results struct {
// contains filtered or unexported fields
}
func NewResults ¶
func (*Results) AddComment ¶ added in v1.1.0
func (*Results) AddContent ¶
func (r *Results) AddContent(content []interface{})
func (Results) Human ¶
func (r Results) Human(opts ResultsOpts) string
func (*Results) SetHeaders ¶
type ResultsOpts ¶
ResultsOpts uses pointers to have a default nil value that will be evaluated as true instead of bool defaut that is false.
Click to show internal directories.
Click to hide internal directories.