fake

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewSecretsT

type NewSecretsT interface {
	mock.TestingT
	Cleanup(func())
}

type Secrets

type Secrets struct {
	mock.Mock
}

Secrets is an autogenerated mock type for the Secrets type

func NewSecrets

func NewSecrets(t NewSecretsT) *Secrets

NewSecrets creates a new instance of Secrets. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Secrets) GetAPIToken

func (_m *Secrets) GetAPIToken(ctx context.Context, provider string) (string, error)

GetAPIToken provides a mock function with given fields: ctx, provider

func (*Secrets) PutAPIToken

func (_m *Secrets) PutAPIToken(ctx context.Context, provider string, token string) error

PutAPIToken provides a mock function with given fields: ctx, provider, token

Jump to

Keyboard shortcuts

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