Documentation ¶
Index ¶
- type EnvVarsProvider
- func (_m *EnvVarsProvider) Delete(ctx context.Context, owner string, repo string, name string, branch *string) error
- func (_m *EnvVarsProvider) EXPECT() *EnvVarsProvider_Expecter
- func (_m *EnvVarsProvider) ListByRepo(ctx context.Context, owner string, repo string) ([]envvars.EnvVar, error)
- func (_m *EnvVarsProvider) ListByRepoBranch(ctx context.Context, owner string, repo string, branch string) ([]envvars.EnvVar, error)
- func (_m *EnvVarsProvider) Upsert(ctx context.Context, owner string, repo string, name string, value string, ...) error
- type EnvVarsProvider_Delete_Call
- func (_c *EnvVarsProvider_Delete_Call) Return(_a0 error) *EnvVarsProvider_Delete_Call
- func (_c *EnvVarsProvider_Delete_Call) Run(...) *EnvVarsProvider_Delete_Call
- func (_c *EnvVarsProvider_Delete_Call) RunAndReturn(run func(context.Context, string, string, string, *string) error) *EnvVarsProvider_Delete_Call
- type EnvVarsProvider_Expecter
- func (_e *EnvVarsProvider_Expecter) Delete(ctx interface{}, owner interface{}, repo interface{}, name interface{}, ...) *EnvVarsProvider_Delete_Call
- func (_e *EnvVarsProvider_Expecter) ListByRepo(ctx interface{}, owner interface{}, repo interface{}) *EnvVarsProvider_ListByRepo_Call
- func (_e *EnvVarsProvider_Expecter) ListByRepoBranch(ctx interface{}, owner interface{}, repo interface{}, branch interface{}) *EnvVarsProvider_ListByRepoBranch_Call
- func (_e *EnvVarsProvider_Expecter) Upsert(ctx interface{}, owner interface{}, repo interface{}, name interface{}, ...) *EnvVarsProvider_Upsert_Call
- type EnvVarsProvider_ListByRepoBranch_Call
- func (_c *EnvVarsProvider_ListByRepoBranch_Call) Return(_a0 []envvars.EnvVar, _a1 error) *EnvVarsProvider_ListByRepoBranch_Call
- func (_c *EnvVarsProvider_ListByRepoBranch_Call) Run(run func(ctx context.Context, owner string, repo string, branch string)) *EnvVarsProvider_ListByRepoBranch_Call
- func (_c *EnvVarsProvider_ListByRepoBranch_Call) RunAndReturn(run func(context.Context, string, string, string) ([]envvars.EnvVar, error)) *EnvVarsProvider_ListByRepoBranch_Call
- type EnvVarsProvider_ListByRepo_Call
- func (_c *EnvVarsProvider_ListByRepo_Call) Return(_a0 []envvars.EnvVar, _a1 error) *EnvVarsProvider_ListByRepo_Call
- func (_c *EnvVarsProvider_ListByRepo_Call) Run(run func(ctx context.Context, owner string, repo string)) *EnvVarsProvider_ListByRepo_Call
- func (_c *EnvVarsProvider_ListByRepo_Call) RunAndReturn(run func(context.Context, string, string) ([]envvars.EnvVar, error)) *EnvVarsProvider_ListByRepo_Call
- type EnvVarsProvider_Upsert_Call
- func (_c *EnvVarsProvider_Upsert_Call) Return(_a0 error) *EnvVarsProvider_Upsert_Call
- func (_c *EnvVarsProvider_Upsert_Call) Run(...) *EnvVarsProvider_Upsert_Call
- func (_c *EnvVarsProvider_Upsert_Call) RunAndReturn(run func(context.Context, string, string, string, string, *string) error) *EnvVarsProvider_Upsert_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvVarsProvider ¶
EnvVarsProvider is an autogenerated mock type for the EnvVarsProvider type
func NewEnvVarsProvider ¶
func NewEnvVarsProvider(t mockConstructorTestingTNewEnvVarsProvider) *EnvVarsProvider
NewEnvVarsProvider creates a new instance of EnvVarsProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*EnvVarsProvider) Delete ¶
func (_m *EnvVarsProvider) Delete(ctx context.Context, owner string, repo string, name string, branch *string) error
Delete provides a mock function with given fields: ctx, owner, repo, name, branch
func (*EnvVarsProvider) EXPECT ¶
func (_m *EnvVarsProvider) EXPECT() *EnvVarsProvider_Expecter
func (*EnvVarsProvider) ListByRepo ¶
func (_m *EnvVarsProvider) ListByRepo(ctx context.Context, owner string, repo string) ([]envvars.EnvVar, error)
ListByRepo provides a mock function with given fields: ctx, owner, repo
type EnvVarsProvider_Delete_Call ¶
EnvVarsProvider_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*EnvVarsProvider_Delete_Call) Return ¶
func (_c *EnvVarsProvider_Delete_Call) Return(_a0 error) *EnvVarsProvider_Delete_Call
func (*EnvVarsProvider_Delete_Call) Run ¶
func (_c *EnvVarsProvider_Delete_Call) Run(run func(ctx context.Context, owner string, repo string, name string, branch *string)) *EnvVarsProvider_Delete_Call
func (*EnvVarsProvider_Delete_Call) RunAndReturn ¶
func (_c *EnvVarsProvider_Delete_Call) RunAndReturn(run func(context.Context, string, string, string, *string) error) *EnvVarsProvider_Delete_Call
type EnvVarsProvider_Expecter ¶
type EnvVarsProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*EnvVarsProvider_Expecter) Delete ¶
func (_e *EnvVarsProvider_Expecter) Delete(ctx interface{}, owner interface{}, repo interface{}, name interface{}, branch interface{}) *EnvVarsProvider_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- name string
- branch *string
func (*EnvVarsProvider_Expecter) ListByRepo ¶
func (_e *EnvVarsProvider_Expecter) ListByRepo(ctx interface{}, owner interface{}, repo interface{}) *EnvVarsProvider_ListByRepo_Call
ListByRepo is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
func (*EnvVarsProvider_Expecter) ListByRepoBranch ¶
func (_e *EnvVarsProvider_Expecter) ListByRepoBranch(ctx interface{}, owner interface{}, repo interface{}, branch interface{}) *EnvVarsProvider_ListByRepoBranch_Call
ListByRepoBranch is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- branch string
func (*EnvVarsProvider_Expecter) Upsert ¶
func (_e *EnvVarsProvider_Expecter) Upsert(ctx interface{}, owner interface{}, repo interface{}, name interface{}, value interface{}, branch interface{}) *EnvVarsProvider_Upsert_Call
Upsert is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- name string
- value string
- branch *string
type EnvVarsProvider_ListByRepoBranch_Call ¶
EnvVarsProvider_ListByRepoBranch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByRepoBranch'
func (*EnvVarsProvider_ListByRepoBranch_Call) Return ¶
func (_c *EnvVarsProvider_ListByRepoBranch_Call) Return(_a0 []envvars.EnvVar, _a1 error) *EnvVarsProvider_ListByRepoBranch_Call
func (*EnvVarsProvider_ListByRepoBranch_Call) Run ¶
func (_c *EnvVarsProvider_ListByRepoBranch_Call) Run(run func(ctx context.Context, owner string, repo string, branch string)) *EnvVarsProvider_ListByRepoBranch_Call
func (*EnvVarsProvider_ListByRepoBranch_Call) RunAndReturn ¶
func (_c *EnvVarsProvider_ListByRepoBranch_Call) RunAndReturn(run func(context.Context, string, string, string) ([]envvars.EnvVar, error)) *EnvVarsProvider_ListByRepoBranch_Call
type EnvVarsProvider_ListByRepo_Call ¶
EnvVarsProvider_ListByRepo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByRepo'
func (*EnvVarsProvider_ListByRepo_Call) Return ¶
func (_c *EnvVarsProvider_ListByRepo_Call) Return(_a0 []envvars.EnvVar, _a1 error) *EnvVarsProvider_ListByRepo_Call
func (*EnvVarsProvider_ListByRepo_Call) Run ¶
func (_c *EnvVarsProvider_ListByRepo_Call) Run(run func(ctx context.Context, owner string, repo string)) *EnvVarsProvider_ListByRepo_Call
func (*EnvVarsProvider_ListByRepo_Call) RunAndReturn ¶
func (_c *EnvVarsProvider_ListByRepo_Call) RunAndReturn(run func(context.Context, string, string) ([]envvars.EnvVar, error)) *EnvVarsProvider_ListByRepo_Call
type EnvVarsProvider_Upsert_Call ¶
EnvVarsProvider_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*EnvVarsProvider_Upsert_Call) Return ¶
func (_c *EnvVarsProvider_Upsert_Call) Return(_a0 error) *EnvVarsProvider_Upsert_Call
func (*EnvVarsProvider_Upsert_Call) Run ¶
func (_c *EnvVarsProvider_Upsert_Call) Run(run func(ctx context.Context, owner string, repo string, name string, value string, branch *string)) *EnvVarsProvider_Upsert_Call
func (*EnvVarsProvider_Upsert_Call) RunAndReturn ¶
func (_c *EnvVarsProvider_Upsert_Call) RunAndReturn(run func(context.Context, string, string, string, string, *string) error) *EnvVarsProvider_Upsert_Call