mocks

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APITokensService

type APITokensService struct {
	mock.Mock
}

APITokensService is an autogenerated mock type for the APITokensService type

func (*APITokensService) CreateAPIToken

func (_m *APITokensService) CreateAPIToken(ctx context.Context, namespaceName string, token platformapi.ApiToken) (*platformapi.ApiToken, error)

CreateAPIToken provides a mock function with given fields: ctx, namespaceName, token

func (*APITokensService) DeleteAPIToken

func (_m *APITokensService) DeleteAPIToken(ctx context.Context, namespaceName string, name string) error

DeleteAPIToken provides a mock function with given fields: ctx, namespaceName, name

func (*APITokensService) GetAPIToken

func (_m *APITokensService) GetAPIToken(ctx context.Context, namespaceName string, name string) (*platformapi.ApiToken, error)

GetAPIToken provides a mock function with given fields: ctx, namespaceName, name

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) APITokens

func (_m *Client) APITokens() platform.APITokensService

APITokens provides a mock function with given fields:

func (*Client) Namespaces

func (_m *Client) Namespaces() platform.NamespacesService

Namespaces provides a mock function with given fields:

type NamespacesService

type NamespacesService struct {
	mock.Mock
}

NamespacesService is an autogenerated mock type for the NamespacesService type

func (*NamespacesService) CreateNamespace

func (_m *NamespacesService) CreateNamespace(ctx context.Context, namespace platformapi.Namespace) (*platformapi.Namespace, error)

CreateNamespace provides a mock function with given fields: ctx, namespace

func (*NamespacesService) DeleteNamespace

func (_m *NamespacesService) DeleteNamespace(ctx context.Context, namespaceName string) (*platformapi.Namespace, error)

DeleteNamespace provides a mock function with given fields: ctx, namespaceName

func (*NamespacesService) GetNamespace

func (_m *NamespacesService) GetNamespace(ctx context.Context, namespaceName string) (*platformapi.Namespace, error)

GetNamespace provides a mock function with given fields: ctx, namespaceName

func (*NamespacesService) UpdateNamespace

func (_m *NamespacesService) UpdateNamespace(ctx context.Context, namespaceName string, namespace platformapi.Namespace) (*platformapi.Namespace, error)

UpdateNamespace provides a mock function with given fields: ctx, namespaceName, namespace

Jump to

Keyboard shortcuts

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