Documentation ¶
Index ¶
- type Config
- type Run
- type Runner
- func (r *Runner) AfterRun(name string, runCtx *fwcontext.RunContext)
- func (r *Runner) Hostname() string
- func (r *Runner) Init(ctx *fwcontext.Context) error
- func (r *Runner) LogsvcClient(ctx *fwcontext.RunContext) *log.SubLogger
- func (r *Runner) MakeRun(name string, runCtx *fwcontext.RunContext) (fw.Run, error)
- func (r *Runner) QueueClient() *queue.Client
- func (r *Runner) QueueName() string
- func (r *Runner) Ready() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { C fwConfig.Config `yaml:"c,inline"` KubeConfig string `yaml:"kubeconfig"` Namespace string `yaml:"namespace"` MaxConcurrency uint `yaml:"max_concurrency"` Resources types.Resources `yaml:"max_resources"` // contains filtered or unexported fields }
Config encapsulates the full managed and specified configuration
func (*Config) Client ¶
func (c *Config) Client() (*kubernetes.Clientset, error)
Client retrieves a pre-built kubernetes client ready for use, or error.
func (*Config) Config ¶
Config returns the underlying framework configuration, and matches the Configurator interface.
type Run ¶
type Run struct {
// contains filtered or unexported fields
}
Run is the encapsulation of a single run.
func (*Run) RunContext ¶
func (r *Run) RunContext() *fwcontext.RunContext
RunContext returns the assigned *context.RunContext for this run.
type Runner ¶
Runner encapsulates an infinite lifecycle overlay-runner.
func (*Runner) AfterRun ¶
func (r *Runner) AfterRun(name string, runCtx *fwcontext.RunContext)
AfterRun decrements the run count
func (*Runner) Hostname ¶
Hostname is the reported hostname of the machine; an identifier. Not necessary for anything and insecure, just ornamental.
func (*Runner) LogsvcClient ¶
func (r *Runner) LogsvcClient(ctx *fwcontext.RunContext) *log.SubLogger
LogsvcClient returns the system log client. Must be called after configuration is initialized
func (*Runner) QueueClient ¶
QueueClient returns the queue client