Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NilAndError ¶
NilAndError return a FakeTask that will simulate `return nil, err` case
Types ¶
type FakeSwapper ¶
FakeSwapper is a task that tracks its state so that it can change between calls to Apply
func Swapper ¶
func Swapper() *FakeSwapper
Swapper creates a new stub swapper with an initial WillChange value of true
func (*FakeSwapper) Apply ¶
func (ft *FakeSwapper) Apply(context.Context) (resource.TaskStatus, error)
Apply negates the current WillChange value set on struct and returns configured error
func (*FakeSwapper) Check ¶
func (ft *FakeSwapper) Check(context.Context, resource.Renderer) (resource.TaskStatus, error)
Check returns values set on struct
type FakeTask ¶
type FakeTask struct { Status string `export:"status"` Level resource.StatusLevel Error error }
FakeTask for testing things that require real tasks
func Error ¶
func Error() *FakeTask
Error returns a FakeTask that will result in an error while checking or applying
Click to show internal directories.
Click to hide internal directories.