mocks

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 6, 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 APIKeysAuthenticator

type APIKeysAuthenticator struct {
	mock.Mock
}

APIKeysAuthenticator is an autogenerated mock type for the APIKeysAuthenticator type

func (*APIKeysAuthenticator) Encrypt

func (_m *APIKeysAuthenticator) Encrypt(ctx context.Context, secret []byte) ([]byte, error)

Encrypt provides a mock function with given fields: ctx, secret

func (*APIKeysAuthenticator) Generate

func (_m *APIKeysAuthenticator) Generate(ctx context.Context, name string, userID int) (*models.APIKey, error)

Generate provides a mock function with given fields: ctx, name, userID

func (*APIKeysAuthenticator) Match

func (_m *APIKeysAuthenticator) Match(ctx context.Context, key *models.APIKey) error

Match provides a mock function with given fields: ctx, key

type APIKeysHandler

type APIKeysHandler struct {
	mock.Mock
}

APIKeysHandler is an autogenerated mock type for the APIKeysHandler type

func (*APIKeysHandler) Create

func (_m *APIKeysHandler) Create() echo.HandlerFunc

Create provides a mock function with given fields:

func (*APIKeysHandler) Delete

func (_m *APIKeysHandler) Delete() echo.HandlerFunc

Delete provides a mock function with given fields:

func (*APIKeysHandler) Get

func (_m *APIKeysHandler) Get() echo.HandlerFunc

Get provides a mock function with given fields:

func (*APIKeysHandler) List

func (_m *APIKeysHandler) List() echo.HandlerFunc

List provides a mock function with given fields:

type APIKeysStorer

type APIKeysStorer struct {
	mock.Mock
}

APIKeysStorer is an autogenerated mock type for the APIKeysStorer type

func (*APIKeysStorer) Create

func (_m *APIKeysStorer) Create(ctx context.Context, key *models.APIKey) (*models.APIKey, error)

Create provides a mock function with given fields: ctx, key

func (*APIKeysStorer) Delete

func (_m *APIKeysStorer) Delete(ctx context.Context, id int, userID int) error

Delete provides a mock function with given fields: ctx, id, userID

func (*APIKeysStorer) Get

func (_m *APIKeysStorer) Get(ctx context.Context, id int, userID int) (*models.APIKey, error)

Get provides a mock function with given fields: ctx, id, userID

func (*APIKeysStorer) GetByAPIKeyID

func (_m *APIKeysStorer) GetByAPIKeyID(ctx context.Context, id string) (*models.APIKey, error)

GetByAPIKeyID provides a mock function with given fields: ctx, id

func (*APIKeysStorer) List

func (_m *APIKeysStorer) List(ctx context.Context, userID int) ([]*models.APIKey, error)

List provides a mock function with given fields: ctx, userID

type AuthHandler

type AuthHandler struct {
	mock.Mock
}

AuthHandler is an autogenerated mock type for the AuthHandler type

func (*AuthHandler) OAuthCallback

func (_m *AuthHandler) OAuthCallback() echo.HandlerFunc

OAuthCallback provides a mock function with given fields:

func (*AuthHandler) OAuthLogin

func (_m *AuthHandler) OAuthLogin() echo.HandlerFunc

OAuthLogin provides a mock function with given fields:

func (*AuthHandler) Refresh

func (_m *AuthHandler) Refresh() echo.HandlerFunc

Refresh provides a mock function with given fields:

type Clock

type Clock struct {
	mock.Mock
}

Clock is an autogenerated mock type for the Clock type

func (*Clock) Now

func (_m *Clock) Now() time.Time

Now provides a mock function with given fields:

type CommandHandler

type CommandHandler struct {
	mock.Mock
}

CommandHandler is an autogenerated mock type for the CommandHandler type

func (*CommandHandler) AddCommandRelForPlatform

func (_m *CommandHandler) AddCommandRelForPlatform() echo.HandlerFunc

AddCommandRelForPlatform provides a mock function with given fields:

func (*CommandHandler) AddCommandRelForRepository

func (_m *CommandHandler) AddCommandRelForRepository() echo.HandlerFunc

AddCommandRelForRepository provides a mock function with given fields:

func (*CommandHandler) Create added in v0.0.5

func (_m *CommandHandler) Create() echo.HandlerFunc

Create provides a mock function with given fields:

func (*CommandHandler) Delete

func (_m *CommandHandler) Delete() echo.HandlerFunc

Delete provides a mock function with given fields:

func (*CommandHandler) Get

func (_m *CommandHandler) Get() echo.HandlerFunc

Get provides a mock function with given fields:

func (*CommandHandler) List

func (_m *CommandHandler) List() echo.HandlerFunc

List provides a mock function with given fields:

func (*CommandHandler) RemoveCommandRelForPlatform

func (_m *CommandHandler) RemoveCommandRelForPlatform() echo.HandlerFunc

RemoveCommandRelForPlatform provides a mock function with given fields:

func (*CommandHandler) RemoveCommandRelForRepository

func (_m *CommandHandler) RemoveCommandRelForRepository() echo.HandlerFunc

RemoveCommandRelForRepository provides a mock function with given fields:

func (*CommandHandler) Update

func (_m *CommandHandler) Update() echo.HandlerFunc

Update provides a mock function with given fields:

type CommandRunHandler

type CommandRunHandler struct {
	mock.Mock
}

CommandRunHandler is an autogenerated mock type for the CommandRunHandler type

func (*CommandRunHandler) GetCommandRun

func (_m *CommandRunHandler) GetCommandRun() echo.HandlerFunc

GetCommandRun provides a mock function with given fields:

type CommandRunStorer

type CommandRunStorer struct {
	mock.Mock
}

CommandRunStorer is an autogenerated mock type for the CommandRunStorer type

func (*CommandRunStorer) CreateRun

func (_m *CommandRunStorer) CreateRun(ctx context.Context, run *models.CommandRun) (*models.CommandRun, error)

CreateRun provides a mock function with given fields: ctx, run

func (*CommandRunStorer) Get

func (_m *CommandRunStorer) Get(ctx context.Context, id int) (*models.CommandRun, error)

Get provides a mock function with given fields: ctx, id

func (*CommandRunStorer) UpdateRunStatus

func (_m *CommandRunStorer) UpdateRunStatus(ctx context.Context, id int, status string, outcome string) error

UpdateRunStatus provides a mock function with given fields: ctx, id, status, outcome

type CommandSettingsHandler

type CommandSettingsHandler struct {
	mock.Mock
}

CommandSettingsHandler is an autogenerated mock type for the CommandSettingsHandler type

func (*CommandSettingsHandler) Create

Create provides a mock function with given fields:

func (*CommandSettingsHandler) Delete

Delete provides a mock function with given fields:

func (*CommandSettingsHandler) Get

Get provides a mock function with given fields:

func (*CommandSettingsHandler) List

List provides a mock function with given fields:

func (*CommandSettingsHandler) Update

Update provides a mock function with given fields:

type CommandStorer

type CommandStorer struct {
	mock.Mock
}

CommandStorer is an autogenerated mock type for the CommandStorer type

func (*CommandStorer) AddCommandRelForPlatform

func (_m *CommandStorer) AddCommandRelForPlatform(ctx context.Context, commandID int, platformID int) error

AddCommandRelForPlatform provides a mock function with given fields: ctx, commandID, platformID

func (*CommandStorer) AddCommandRelForRepository

func (_m *CommandStorer) AddCommandRelForRepository(ctx context.Context, commandID int, repositoryID int) error

AddCommandRelForRepository provides a mock function with given fields: ctx, commandID, repositoryID

func (*CommandStorer) Create

func (_m *CommandStorer) Create(ctx context.Context, c *models.Command) (*models.Command, error)

Create provides a mock function with given fields: ctx, c

func (*CommandStorer) CreateSetting

func (_m *CommandStorer) CreateSetting(ctx context.Context, settings *models.CommandSetting) (*models.CommandSetting, error)

CreateSetting provides a mock function with given fields: ctx, settings

func (*CommandStorer) Delete

func (_m *CommandStorer) Delete(ctx context.Context, id int) error

Delete provides a mock function with given fields: ctx, id

func (*CommandStorer) DeleteSetting

func (_m *CommandStorer) DeleteSetting(ctx context.Context, id int) error

DeleteSetting provides a mock function with given fields: ctx, id

func (*CommandStorer) Get

func (_m *CommandStorer) Get(ctx context.Context, id int) (*models.Command, error)

Get provides a mock function with given fields: ctx, id

func (*CommandStorer) GetByName

func (_m *CommandStorer) GetByName(ctx context.Context, name string) (*models.Command, error)

GetByName provides a mock function with given fields: ctx, name

func (*CommandStorer) GetSetting

func (_m *CommandStorer) GetSetting(ctx context.Context, id int) (*models.CommandSetting, error)

GetSetting provides a mock function with given fields: ctx, id

func (*CommandStorer) IsPlatformSupported

func (_m *CommandStorer) IsPlatformSupported(ctx context.Context, commandID int, platformID int) (bool, error)

IsPlatformSupported provides a mock function with given fields: ctx, commandID, platformID

func (*CommandStorer) List

func (_m *CommandStorer) List(ctx context.Context, opts *models.ListOptions) ([]*models.Command, error)

List provides a mock function with given fields: ctx, opts

func (*CommandStorer) ListSettings

func (_m *CommandStorer) ListSettings(ctx context.Context, commandID int) ([]*models.CommandSetting, error)

ListSettings provides a mock function with given fields: ctx, commandID

func (*CommandStorer) RemoveCommandRelForPlatform

func (_m *CommandStorer) RemoveCommandRelForPlatform(ctx context.Context, commandID int, platformID int) error

RemoveCommandRelForPlatform provides a mock function with given fields: ctx, commandID, platformID

func (*CommandStorer) RemoveCommandRelForRepository

func (_m *CommandStorer) RemoveCommandRelForRepository(ctx context.Context, commandID int, repositoryID int) error

RemoveCommandRelForRepository provides a mock function with given fields: ctx, commandID, repositoryID

func (*CommandStorer) Update

func (_m *CommandStorer) Update(ctx context.Context, c *models.Command) (*models.Command, error)

Update provides a mock function with given fields: ctx, c

func (*CommandStorer) UpdateSetting

func (_m *CommandStorer) UpdateSetting(ctx context.Context, setting *models.CommandSetting) error

UpdateSetting provides a mock function with given fields: ctx, setting

type Email

type Email struct {
	mock.Mock
}

Email is an autogenerated mock type for the Email type

func (*Email) Notify

func (_m *Email) Notify(email string, event providers.Event, payload providers.Payload) error

Notify provides a mock function with given fields: email, event, payload

type EnvironmentConverter

type EnvironmentConverter struct {
	mock.Mock
}

EnvironmentConverter is an autogenerated mock type for the EnvironmentConverter type

func (*EnvironmentConverter) LoadValueFromFile

func (_m *EnvironmentConverter) LoadValueFromFile(f string) (string, error)

LoadValueFromFile provides a mock function with given fields: f

type EventHandler

type EventHandler struct {
	mock.Mock
}

EventHandler is an autogenerated mock type for the EventHandler type

func (*EventHandler) Get

func (_m *EventHandler) Get() echo.HandlerFunc

Get provides a mock function with given fields:

func (*EventHandler) List

func (_m *EventHandler) List() echo.HandlerFunc

List provides a mock function with given fields:

type EventsStorer

type EventsStorer struct {
	mock.Mock
}

EventsStorer is an autogenerated mock type for the EventsStorer type

func (*EventsStorer) Create

func (_m *EventsStorer) Create(ctx context.Context, event *models.Event) (*models.Event, error)

Create provides a mock function with given fields: ctx, event

func (*EventsStorer) GetEvent

func (_m *EventsStorer) GetEvent(ctx context.Context, eventID int) (*models.Event, error)

GetEvent provides a mock function with given fields: ctx, eventID

func (*EventsStorer) ListEventsForRepository

func (_m *EventsStorer) ListEventsForRepository(ctx context.Context, repoID int, options *models.ListOptions) ([]*models.Event, error)

ListEventsForRepository provides a mock function with given fields: ctx, repoID, options

type Executor

type Executor struct {
	mock.Mock
}

Executor is an autogenerated mock type for the Executor type

func (*Executor) CancelRun

func (_m *Executor) CancelRun(ctx context.Context, id int) error

CancelRun provides a mock function with given fields: ctx, id

func (*Executor) CreateRun

func (_m *Executor) CreateRun(ctx context.Context, event *models.Event, commands []*models.Command) error

CreateRun provides a mock function with given fields: ctx, event, commands

type HookHandler

type HookHandler struct {
	mock.Mock
}

HookHandler is an autogenerated mock type for the HookHandler type

func (*HookHandler) HandleHooks

func (_m *HookHandler) HandleHooks() echo.HandlerFunc

HandleHooks provides a mock function with given fields:

type Hooks

type Hooks struct {
	mock.Mock
}

Hooks is an autogenerated mock type for the Hooks type

func (*Hooks) Execute

func (_m *Hooks) Execute(ctx context.Context, raw string, opts ...interface{}) (string, bool, error)

Execute provides a mock function with given fields: ctx, raw, opts

type Loader

type Loader struct {
	mock.Mock
}

Loader is an autogenerated mock type for the Loader type

func (*Loader) Load

func (_m *Loader) Load(ctx context.Context, location string) (func(string, []interface{}) (string, bool, error), error)

Load provides a mock function with given fields: ctx, location

func (*Loader) Watch

func (_m *Loader) Watch(ctx context.Context) error

Watch provides a mock function with given fields: ctx

type OAuthAuthenticator

type OAuthAuthenticator struct {
	mock.Mock
}

OAuthAuthenticator is an autogenerated mock type for the OAuthAuthenticator type

func (*OAuthAuthenticator) Exchange

func (_m *OAuthAuthenticator) Exchange(ctx context.Context, code string) (*oauth2.Token, error)

Exchange provides a mock function with given fields: ctx, code

func (*OAuthAuthenticator) GenerateState

func (_m *OAuthAuthenticator) GenerateState(redirectURL string) (string, error)

GenerateState provides a mock function with given fields: redirectURL

func (*OAuthAuthenticator) GetAuthCodeURL

func (_m *OAuthAuthenticator) GetAuthCodeURL(state string) string

GetAuthCodeURL provides a mock function with given fields: state

func (*OAuthAuthenticator) VerifyState

func (_m *OAuthAuthenticator) VerifyState(rawToken string) (string, error)

VerifyState provides a mock function with given fields: rawToken

type Platform

type Platform struct {
	mock.Mock
}

Platform is an autogenerated mock type for the Platform type

func (*Platform) CreateHook

func (_m *Platform) CreateHook(ctx context.Context, repo *models.Repository) error

CreateHook provides a mock function with given fields: ctx, repo

func (*Platform) GetEventID

func (_m *Platform) GetEventID(ctx context.Context, r *http.Request) (string, error)

GetEventID provides a mock function with given fields: ctx, r

func (*Platform) GetEventType added in v0.0.11

func (_m *Platform) GetEventType(ctx context.Context, r *http.Request) (string, error)

GetEventType provides a mock function with given fields: ctx, r

func (*Platform) ValidateRequest

func (_m *Platform) ValidateRequest(ctx context.Context, r *http.Request, repoID int) error

ValidateRequest provides a mock function with given fields: ctx, r, repoID

type PlatformTokenProvider

type PlatformTokenProvider struct {
	mock.Mock
}

PlatformTokenProvider is an autogenerated mock type for the PlatformTokenProvider type

func (*PlatformTokenProvider) GetTokenForPlatform

func (_m *PlatformTokenProvider) GetTokenForPlatform(vcs int) (string, error)

GetTokenForPlatform provides a mock function with given fields: vcs

func (*PlatformTokenProvider) SaveTokenForPlatform

func (_m *PlatformTokenProvider) SaveTokenForPlatform(token string, vcs int) error

SaveTokenForPlatform provides a mock function with given fields: token, vcs

type Plugins

type Plugins struct {
	mock.Mock
}

Plugins is an autogenerated mock type for the Plugins type

func (*Plugins) Create

func (_m *Plugins) Create(ctx context.Context, src string) (string, string, error)

Create provides a mock function with given fields: ctx, src

func (*Plugins) Delete

func (_m *Plugins) Delete(ctx context.Context, name string) error

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

type Ready added in v0.0.4

type Ready struct {
	mock.Mock
}

Ready is an autogenerated mock type for the Ready type

func (*Ready) Ready added in v0.0.4

func (_m *Ready) Ready(ctx context.Context) bool

Ready provides a mock function with given fields: ctx

type ReadyHandler added in v0.0.4

type ReadyHandler struct {
	mock.Mock
}

ReadyHandler is an autogenerated mock type for the ReadyHandler type

func (*ReadyHandler) Ready added in v0.0.4

func (_m *ReadyHandler) Ready() echo.HandlerFunc

Ready provides a mock function with given fields:

type RepositoryAuth

type RepositoryAuth struct {
	mock.Mock
}

RepositoryAuth is an autogenerated mock type for the RepositoryAuth type

func (*RepositoryAuth) CreateRepositoryAuth

func (_m *RepositoryAuth) CreateRepositoryAuth(ctx context.Context, repositoryID int, info *models.Auth) error

CreateRepositoryAuth provides a mock function with given fields: ctx, repositoryID, info

func (*RepositoryAuth) GetRepositoryAuth

func (_m *RepositoryAuth) GetRepositoryAuth(ctx context.Context, id int) (*models.Auth, error)

GetRepositoryAuth provides a mock function with given fields: ctx, id

type RepositoryHandler

type RepositoryHandler struct {
	mock.Mock
}

RepositoryHandler is an autogenerated mock type for the RepositoryHandler type

func (*RepositoryHandler) Create

func (_m *RepositoryHandler) Create() echo.HandlerFunc

Create provides a mock function with given fields:

func (*RepositoryHandler) Delete

func (_m *RepositoryHandler) Delete() echo.HandlerFunc

Delete provides a mock function with given fields:

func (*RepositoryHandler) Get

Get provides a mock function with given fields:

func (*RepositoryHandler) List

func (_m *RepositoryHandler) List() echo.HandlerFunc

List provides a mock function with given fields:

func (*RepositoryHandler) Update

func (_m *RepositoryHandler) Update() echo.HandlerFunc

Update provides a mock function with given fields:

type RepositoryStorer

type RepositoryStorer struct {
	mock.Mock
}

RepositoryStorer is an autogenerated mock type for the RepositoryStorer type

func (*RepositoryStorer) Create

Create provides a mock function with given fields: ctx, c

func (*RepositoryStorer) Delete

func (_m *RepositoryStorer) Delete(ctx context.Context, id int) error

Delete provides a mock function with given fields: ctx, id

func (*RepositoryStorer) Get

func (_m *RepositoryStorer) Get(ctx context.Context, id int) (*models.Repository, error)

Get provides a mock function with given fields: ctx, id

func (*RepositoryStorer) GetByName

func (_m *RepositoryStorer) GetByName(ctx context.Context, name string) (*models.Repository, error)

GetByName provides a mock function with given fields: ctx, name

func (*RepositoryStorer) List

List provides a mock function with given fields: ctx, opt

func (*RepositoryStorer) Update

Update provides a mock function with given fields: ctx, c

type SupportedPlatformListHandler

type SupportedPlatformListHandler struct {
	mock.Mock
}

SupportedPlatformListHandler is an autogenerated mock type for the SupportedPlatformListHandler type

func (*SupportedPlatformListHandler) ListSupportedPlatforms

func (_m *SupportedPlatformListHandler) ListSupportedPlatforms() echo.HandlerFunc

ListSupportedPlatforms provides a mock function with given fields:

type Tar

type Tar struct {
	mock.Mock
}

Tar is an autogenerated mock type for the Tar type

func (*Tar) Untar

func (_m *Tar) Untar(dst string, reader io.Reader) error

Untar provides a mock function with given fields: dst, reader

type TokenHandler

type TokenHandler struct {
	mock.Mock
}

TokenHandler is an autogenerated mock type for the TokenHandler type

func (*TokenHandler) TokenHandler

func (_m *TokenHandler) TokenHandler() echo.HandlerFunc

TokenHandler provides a mock function with given fields:

type TokenIssuer

type TokenIssuer struct {
	mock.Mock
}

TokenIssuer is an autogenerated mock type for the TokenIssuer type

func (*TokenIssuer) Create

func (_m *TokenIssuer) Create(token *models.User) (*oauth2.Token, error)

Create provides a mock function with given fields: token

func (*TokenIssuer) Refresh

func (_m *TokenIssuer) Refresh(ctx context.Context, refreshToken string) (*oauth2.Token, error)

Refresh provides a mock function with given fields: ctx, refreshToken

type UUIDGenerator

type UUIDGenerator struct {
	mock.Mock
}

UUIDGenerator is an autogenerated mock type for the UUIDGenerator type

func (*UUIDGenerator) Generate

func (_m *UUIDGenerator) Generate() (string, error)

Generate provides a mock function with given fields:

type UserHandler

type UserHandler struct {
	mock.Mock
}

UserHandler is an autogenerated mock type for the UserHandler type

func (*UserHandler) CreateUser

func (_m *UserHandler) CreateUser() echo.HandlerFunc

CreateUser provides a mock function with given fields:

func (*UserHandler) DeleteUser

func (_m *UserHandler) DeleteUser() echo.HandlerFunc

DeleteUser provides a mock function with given fields:

func (*UserHandler) GetUser

func (_m *UserHandler) GetUser() echo.HandlerFunc

GetUser provides a mock function with given fields:

func (*UserHandler) ListUsers

func (_m *UserHandler) ListUsers() echo.HandlerFunc

ListUsers provides a mock function with given fields:

func (*UserHandler) UpdateUser

func (_m *UserHandler) UpdateUser() echo.HandlerFunc

UpdateUser provides a mock function with given fields:

type UserMiddleware

type UserMiddleware struct {
	mock.Mock
}

UserMiddleware is an autogenerated mock type for the UserMiddleware type

func (*UserMiddleware) JWT

JWT provides a mock function with given fields:

type UserStorer

type UserStorer struct {
	mock.Mock
}

UserStorer is an autogenerated mock type for the UserStorer type

func (*UserStorer) Create

func (_m *UserStorer) Create(ctx context.Context, c *models.User) (*models.User, error)

Create provides a mock function with given fields: ctx, c

func (*UserStorer) Delete

func (_m *UserStorer) Delete(ctx context.Context, id int) error

Delete provides a mock function with given fields: ctx, id

func (*UserStorer) Get

func (_m *UserStorer) Get(ctx context.Context, id int) (*models.User, error)

Get provides a mock function with given fields: ctx, id

func (*UserStorer) GetByEmail

func (_m *UserStorer) GetByEmail(ctx context.Context, email string) (*models.User, error)

GetByEmail provides a mock function with given fields: ctx, email

func (*UserStorer) List

func (_m *UserStorer) List(ctx context.Context) ([]*models.User, error)

List provides a mock function with given fields: ctx

func (*UserStorer) Update

func (_m *UserStorer) Update(ctx context.Context, user *models.User) (*models.User, error)

Update provides a mock function with given fields: ctx, user

type UserTokenGenerator

type UserTokenGenerator struct {
	mock.Mock
}

UserTokenGenerator is an autogenerated mock type for the UserTokenGenerator type

func (*UserTokenGenerator) Generate

func (_m *UserTokenGenerator) Generate(length int) (string, error)

Generate provides a mock function with given fields: length

type UserTokenHandler

type UserTokenHandler struct {
	mock.Mock
}

UserTokenHandler is an autogenerated mock type for the UserTokenHandler type

func (*UserTokenHandler) Generate

func (_m *UserTokenHandler) Generate() echo.HandlerFunc

Generate provides a mock function with given fields:

type VCSTokenHandler

type VCSTokenHandler struct {
	mock.Mock
}

VCSTokenHandler is an autogenerated mock type for the VCSTokenHandler type

func (*VCSTokenHandler) Create

func (_m *VCSTokenHandler) Create() echo.HandlerFunc

Create provides a mock function with given fields:

type Vault

type Vault struct {
	mock.Mock
}

Vault is an autogenerated mock type for the Vault type

func (*Vault) AddSecret

func (_m *Vault) AddSecret(key string, value []byte)

AddSecret provides a mock function with given fields: key, value

func (*Vault) DeleteSecret

func (_m *Vault) DeleteSecret(key string)

DeleteSecret provides a mock function with given fields: key

func (*Vault) GetSecret

func (_m *Vault) GetSecret(key string) ([]byte, error)

GetSecret provides a mock function with given fields: key

func (*Vault) ListSecrets

func (_m *Vault) ListSecrets() []string

ListSecrets provides a mock function with given fields:

func (*Vault) LoadSecrets

func (_m *Vault) LoadSecrets() error

LoadSecrets provides a mock function with given fields:

func (*Vault) SaveSecrets

func (_m *Vault) SaveSecrets() error

SaveSecrets provides a mock function with given fields:

type VaultHandler

type VaultHandler struct {
	mock.Mock
}

VaultHandler is an autogenerated mock type for the VaultHandler type

func (*VaultHandler) CreateSecret

func (_m *VaultHandler) CreateSecret() echo.HandlerFunc

CreateSecret provides a mock function with given fields:

func (*VaultHandler) DeleteSecret

func (_m *VaultHandler) DeleteSecret() echo.HandlerFunc

DeleteSecret provides a mock function with given fields:

func (*VaultHandler) GetSecret

func (_m *VaultHandler) GetSecret() echo.HandlerFunc

GetSecret provides a mock function with given fields:

func (*VaultHandler) ListSecrets

func (_m *VaultHandler) ListSecrets() echo.HandlerFunc

ListSecrets provides a mock function with given fields:

func (*VaultHandler) UpdateSecret

func (_m *VaultHandler) UpdateSecret() echo.HandlerFunc

UpdateSecret provides a mock function with given fields:

type VaultStorer

type VaultStorer struct {
	mock.Mock
}

VaultStorer is an autogenerated mock type for the VaultStorer type

func (*VaultStorer) Init

func (_m *VaultStorer) Init() error

Init provides a mock function with given fields:

func (*VaultStorer) Read

func (_m *VaultStorer) Read() ([]byte, error)

Read provides a mock function with given fields:

func (*VaultStorer) Write

func (_m *VaultStorer) Write(data []byte) error

Write provides a mock function with given fields: data

type Watcher

type Watcher struct {
	mock.Mock
}

Watcher is an autogenerated mock type for the Watcher type

func (*Watcher) Run

func (_m *Watcher) Run(ctx context.Context)

Run provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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