Documentation
¶
Overview ¶
Package fake contains a fake client wrapper for Tinkerbell.
Package fake contains a fake client wrapper for Tinkerbell.
Package fake contains a fake client wrapper for Tinkerbell.
Index ¶
- type Hardware
- func (f *Hardware) Create(ctx context.Context, in *hardware.Hardware) error
- func (f *Hardware) Delete(ctx context.Context, id string) error
- func (f *Hardware) Get(ctx context.Context, id, ip, mac string) (*hardware.Hardware, error)
- func (f *Hardware) Update(ctx context.Context, in *hardware.Hardware) error
- type Template
- func (f *Template) Create(ctx context.Context, in *template.WorkflowTemplate) error
- func (f *Template) Delete(ctx context.Context, id string) error
- func (f *Template) Get(ctx context.Context, id, name string) (*template.WorkflowTemplate, error)
- func (f *Template) Update(ctx context.Context, in *template.WorkflowTemplate) error
- type Workflow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hardware ¶
Hardware is a fake client for Tinkerbell Hardwares.
func NewFakeHardwareClient ¶
NewFakeHardwareClient returns a new fake client.
type Template ¶
type Template struct {
Objs map[string]*template.WorkflowTemplate
}
Template is a fake client for Tinkerbell Templates.
func NewFakeTemplateClient ¶
func NewFakeTemplateClient(objs ...*template.WorkflowTemplate) *Template
NewFakeTemplateClient returns a new fake client.
type Workflow ¶
type Workflow struct { Objs map[string]*workflow.Workflow // contains filtered or unexported fields }
Workflow is a fake client for Tinkerbell Workflows.
func NewFakeWorkflowClient ¶
func NewFakeWorkflowClient(hwClient Hardware, templateClient Template, objs ...*workflow.Workflow) *Workflow
NewFakeWorkflowClient returns a new fake client.
Click to show internal directories.
Click to hide internal directories.