Documentation
¶
Overview ¶
Package mocks implement important mocking interface of kube.
Index ¶
- func NewKubeFactory(client *Client) kube.Factory
- type Client
- func (_m *Client) Apply(ctx context.Context, template []byte, oldResources []*v1alpha1.Resource) ([]*v1alpha1.Resource, bool, error)
- func (_m *Client) ApplyNewClusterStack(ctx context.Context, oldTemplate []byte, newTemplate []byte) ([]*v1alpha1.Resource, bool, error)
- func (_m *Client) Delete(ctx context.Context, template []byte, oldResources []*v1alpha1.Resource) ([]*v1alpha1.Resource, bool, error)
- func (_m *Client) DeleteNewClusterStack(ctx context.Context, template []byte) ([]*v1alpha1.Resource, bool, error)
- type Factory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKubeFactory ¶
NewKubeFactory returns packer factory interface.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Client) Apply ¶
func (_m *Client) Apply(ctx context.Context, template []byte, oldResources []*v1alpha1.Resource) ([]*v1alpha1.Resource, bool, error)
Apply provides a mock function with given fields: ctx, template, oldResources
func (*Client) ApplyNewClusterStack ¶
func (_m *Client) ApplyNewClusterStack(ctx context.Context, oldTemplate []byte, newTemplate []byte) ([]*v1alpha1.Resource, bool, error)
ApplyNewClusterStack provides a mock function with given fields: ctx, oldTemplate, newTemplate
type Factory ¶
Factory is an autogenerated mock type for the Factory type
func NewFactory ¶
NewFactory creates a new instance of Factory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.