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 AuthStore

type AuthStore struct {
	mock.Mock
}

AuthStore is an autogenerated mock type for the AuthStore type

func (*AuthStore) ContextForNamespace

func (_m *AuthStore) ContextForNamespace(baseCtx context.Context, namespace string) (context.Context, error)

ContextForNamespace provides a mock function with given fields: baseCtx, namespace

func (*AuthStore) RemoveAllCreatedTokens

func (_m *AuthStore) RemoveAllCreatedTokens(ctx context.Context) ([]string, error)

RemoveAllCreatedTokens provides a mock function with given fields: ctx

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) DeploymentTargets

func (_m *Client) DeploymentTargets() appmanager.DeploymentTargetsService

DeploymentTargets provides a mock function with given fields:

func (*Client) Deployments

func (_m *Client) Deployments() appmanager.DeploymentsService

Deployments provides a mock function with given fields:

func (*Client) Events

func (_m *Client) Events() appmanager.EventsService

Events provides a mock function with given fields:

func (*Client) Savepoints

func (_m *Client) Savepoints() appmanager.SavepointsService

Savepoints provides a mock function with given fields:

type DeploymentTargetsService

type DeploymentTargetsService struct {
	mock.Mock
}

DeploymentTargetsService is an autogenerated mock type for the DeploymentTargetsService type

func (*DeploymentTargetsService) CreateDeploymentTarget

func (_m *DeploymentTargetsService) CreateDeploymentTarget(ctx context.Context, namespaceName string, depTarget appmanagerapi.DeploymentTarget) (*appmanagerapi.DeploymentTarget, error)

CreateDeploymentTarget provides a mock function with given fields: ctx, namespaceName, depTarget

func (*DeploymentTargetsService) DeleteDeploymentTarget

func (_m *DeploymentTargetsService) DeleteDeploymentTarget(ctx context.Context, namespaceName string, name string) (*appmanagerapi.DeploymentTarget, error)

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

func (*DeploymentTargetsService) GetDeploymentTarget

func (_m *DeploymentTargetsService) GetDeploymentTarget(ctx context.Context, namespaceName string, name string) (*appmanagerapi.DeploymentTarget, error)

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

type DeploymentsService

type DeploymentsService struct {
	mock.Mock
}

DeploymentsService is an autogenerated mock type for the DeploymentsService type

func (*DeploymentsService) CreateDeployment

func (_m *DeploymentsService) CreateDeployment(ctx context.Context, namespaceName string, dep appmanagerapi.Deployment) (*appmanagerapi.Deployment, error)

CreateDeployment provides a mock function with given fields: ctx, namespaceName, dep

func (*DeploymentsService) DeleteDeployment

func (_m *DeploymentsService) DeleteDeployment(ctx context.Context, namespaceName string, id string) (*appmanagerapi.Deployment, error)

DeleteDeployment provides a mock function with given fields: ctx, namespaceName, id

func (*DeploymentsService) GetDeployment

func (_m *DeploymentsService) GetDeployment(ctx context.Context, namespaceName string, id string) (*appmanagerapi.Deployment, error)

GetDeployment provides a mock function with given fields: ctx, namespaceName, id

func (*DeploymentsService) GetDeploymentByName

func (_m *DeploymentsService) GetDeploymentByName(ctx context.Context, namespaceName string, name string) (*appmanagerapi.Deployment, error)

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

func (*DeploymentsService) ListDeployments

func (_m *DeploymentsService) ListDeployments(ctx context.Context, namespaceName string) (*appmanagerapi.ResourceListOfDeployment, error)

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

func (*DeploymentsService) UpdateDeployment

func (_m *DeploymentsService) UpdateDeployment(ctx context.Context, namespaceName string, id string, dep appmanagerapi.Deployment) (*appmanagerapi.Deployment, error)

UpdateDeployment provides a mock function with given fields: ctx, namespaceName, id, dep

type EventsService

type EventsService struct {
	mock.Mock
}

EventsService is an autogenerated mock type for the EventsService type

func (*EventsService) GetEvents

func (_m *EventsService) GetEvents(ctx context.Context, namespaceName string, opts *appmanager.GetEventsOpts) (*appmanagerapi.ResourceListOfEvent, error)

GetEvents provides a mock function with given fields: ctx, namespaceName, opts

type SavepointsService

type SavepointsService struct {
	mock.Mock
}

SavepointsService is an autogenerated mock type for the SavepointsService type

func (*SavepointsService) CreateSavepoint

func (_m *SavepointsService) CreateSavepoint(ctx context.Context, namespaceName string, savepoint appmanagerapi.Savepoint) (*appmanagerapi.Savepoint, error)

CreateSavepoint provides a mock function with given fields: ctx, namespaceName, savepoint

func (*SavepointsService) GetSavepoint

func (_m *SavepointsService) GetSavepoint(ctx context.Context, namespaceName string, id string) (*appmanagerapi.Savepoint, error)

GetSavepoint provides a mock function with given fields: ctx, namespaceName, id

type TokenManager

type TokenManager struct {
	mock.Mock
}

TokenManager is an autogenerated mock type for the TokenManager type

func (*TokenManager) CreateToken

func (_m *TokenManager) CreateToken(ctx context.Context, namespaceName string, name string, role string) (string, error)

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

func (*TokenManager) RemoveToken

func (_m *TokenManager) RemoveToken(ctx context.Context, namespaceName string, name string) (bool, error)

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

func (*TokenManager) TokenExists

func (_m *TokenManager) TokenExists(ctx context.Context, namespaceName string, name string) (bool, error)

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

Jump to

Keyboard shortcuts

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