sdk

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Create(object opSdk.Object) error
	Patch(object opSdk.Object, pt types.PatchType, patch []byte) error
	Update(object opSdk.Object) error
	Delete(object opSdk.Object, opts ...opSdk.DeleteOption) error
	Get(into opSdk.Object, opts ...opSdk.GetOption) error
	List(namespace string, into opSdk.Object, opts ...opSdk.ListOption) error
}

Client is an interface representing an operator-sdk client, this is needed to mock the operator-sdk client in tests.

type SDKClient

type SDKClient struct{}

SDKClient represents the operator-sdk client

func NewClient

func NewClient() *SDKClient

NewClient returns a new SDKClient

func (*SDKClient) Create

func (c *SDKClient) Create(object opSdk.Object) error

Create wraps the operator-sdk Create function

func (*SDKClient) Delete

func (c *SDKClient) Delete(object opSdk.Object, opts ...opSdk.DeleteOption) error

Delete wraps the operator-sdk Delete function

func (*SDKClient) Get

func (c *SDKClient) Get(into opSdk.Object, opts ...opSdk.GetOption) error

Get wraps the operator-sdk Get function

func (*SDKClient) List

func (c *SDKClient) List(namespace string, into opSdk.Object, opts ...opSdk.ListOption) error

List wraps the operator-sdk List function

func (*SDKClient) Patch

func (c *SDKClient) Patch(object opSdk.Object, pt types.PatchType, patch []byte) error

Patch wraps the operator-sdk Patch function

func (*SDKClient) Update

func (c *SDKClient) Update(object opSdk.Object) error

Update wraps the operator-sdk Update function

Directories

Path Synopsis
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL