mocks

package
v0.0.0-...-f942f97 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func (*Manager) Create

func (_m *Manager) Create(ctx context.Context, secret *v1.Secret, options metav1.CreateOptions) (*v1.Secret, error)

Create provides a mock function with given fields: ctx, secret, options

func (*Manager) Delete

func (_m *Manager) Delete(ctx context.Context, name string, options metav1.DeleteOptions) error

Delete provides a mock function with given fields: ctx, name, options

func (*Manager) Get

func (_m *Manager) Get(ctx context.Context, name string, options metav1.GetOptions) (*v1.Secret, error)

Get provides a mock function with given fields: ctx, name, options

func (*Manager) Update

func (_m *Manager) Update(ctx context.Context, secret *v1.Secret, opts metav1.UpdateOptions) (*v1.Secret, error)

Update provides a mock function with given fields: ctx, secret, opts

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func (*Repository) Create

func (_m *Repository) Create(application string, appUID types.UID, name string, serviceID string, data strategy.SecretData) apperrors.AppError

Create provides a mock function with given fields: application, appUID, name, serviceID, data

func (*Repository) Delete

func (_m *Repository) Delete(name string) apperrors.AppError

Delete provides a mock function with given fields: name

func (*Repository) Get

Get provides a mock function with given fields: name

func (*Repository) Upsert

func (_m *Repository) Upsert(application string, appUID types.UID, name string, secretID string, data strategy.SecretData) apperrors.AppError

Upsert provides a mock function with given fields: application, appUID, name, secretID, data

type RequestParametersService

type RequestParametersService struct {
	mock.Mock
}

RequestParametersService is an autogenerated mock type for the RequestParametersService type

func (*RequestParametersService) Create

func (_m *RequestParametersService) Create(application string, appUID types.UID, serviceID string, requestParameters *model.RequestParameters) (string, apperrors.AppError)

Create provides a mock function with given fields: application, appUID, serviceID, requestParameters

func (*RequestParametersService) Delete

func (_m *RequestParametersService) Delete(application string, serviceId string) apperrors.AppError

Delete provides a mock function with given fields: application, serviceId

func (*RequestParametersService) Get

Get provides a mock function with given fields: secretName

func (*RequestParametersService) Upsert

func (_m *RequestParametersService) Upsert(application string, appUID types.UID, serviceID string, requestParameters *model.RequestParameters) (string, apperrors.AppError)

Upsert provides a mock function with given fields: application, appUID, serviceID, requestParameters

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func (*Service) Create

func (_m *Service) Create(application string, appUID types.UID, serviceID string, credentials *model.CredentialsWithCSRF) (applications.Credentials, apperrors.AppError)

Create provides a mock function with given fields: application, appUID, serviceID, credentials

func (*Service) Delete

func (_m *Service) Delete(name string) apperrors.AppError

Delete provides a mock function with given fields: name

func (*Service) Get

func (_m *Service) Get(application string, credentials applications.Credentials) (model.CredentialsWithCSRF, apperrors.AppError)

Get provides a mock function with given fields: application, credentials

func (*Service) Upsert

func (_m *Service) Upsert(application string, appUID types.UID, serviceID string, credentials *model.CredentialsWithCSRF) (applications.Credentials, apperrors.AppError)

Upsert provides a mock function with given fields: application, appUID, serviceID, credentials

Jump to

Keyboard shortcuts

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