Documentation ¶
Index ¶
- Variables
- type Bucket
- type Buckets
- func (bs *Buckets) Aliases(name string) []string
- func (bs *Buckets) Describe(name string) string
- func (bs *Buckets) HasSideEffects(name string) bool
- func (bs *Buckets) InitBucket(name string, config Config) (Interface, error)
- func (bs *Buckets) Register(b Bucket)
- func (bs *Buckets) Registered() []string
- func (bs *Buckets) RegisteredPassive() []string
- func (bs *Buckets) RequiresClient(name string) bool
- func (bs *Buckets) ResolveAlias(alias string) (string, bool)
- type Config
- type Factory
- type Interface
- type Results
- type ResultsOpts
- type Runnable
- type UnknownBucketError
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) HasSideEffects ¶ added in v1.2.0
func (*Buckets) InitBucket ¶
InitBucket creates an instance of the named interface.
func (*Buckets) Register ¶
Register registers a plugin Factory by name. This is expected to happen during app startup. Register does not return an error but panic
func (*Buckets) Registered ¶
Registered enumerates the names of all registered plugins.
func (*Buckets) RegisteredPassive ¶
Registered enumerates the names of all passive registered plugins.
func (*Buckets) RequiresClient ¶ added in v1.2.0
type Config ¶
type Config struct { Client kubernetes.Interface Namespace string Color bool OutputWidth int // This options is specific to the admission plugin, is it to force creation // even if we can't cleanup the mess with delete AdmForce bool // This options is specific to the admission plugin, is it to actually create // pod instead of use the dry run AdmCreate bool }
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.
type UnknownBucketError ¶ added in v1.4.0
type UnknownBucketError struct {
// contains filtered or unexported fields
}
func (UnknownBucketError) Error ¶ added in v1.4.0
func (e UnknownBucketError) Error() string
Click to show internal directories.
Click to hide internal directories.