Documentation ¶
Index ¶
- type APITokensService
- func (_m *APITokensService) CreateAPIToken(ctx context.Context, namespaceName string, token platformapi.ApiToken) (*platformapi.ApiToken, error)
- func (_m *APITokensService) DeleteAPIToken(ctx context.Context, namespaceName string, name string) error
- func (_m *APITokensService) GetAPIToken(ctx context.Context, namespaceName string, name string) (*platformapi.ApiToken, error)
- type Client
- type NamespacesService
- func (_m *NamespacesService) CreateNamespace(ctx context.Context, namespace platformapi.Namespace) (*platformapi.Namespace, error)
- func (_m *NamespacesService) DeleteNamespace(ctx context.Context, namespaceName string) (*platformapi.Namespace, error)
- func (_m *NamespacesService) GetNamespace(ctx context.Context, namespaceName string) (*platformapi.Namespace, error)
- func (_m *NamespacesService) UpdateNamespace(ctx context.Context, namespaceName string, namespace platformapi.Namespace) (*platformapi.Namespace, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APITokensService ¶
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 ¶
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 ¶
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