Documentation ¶
Overview ¶
Package config is a generated GoMock package.
Index ¶
- type MockConfig
- func (m *MockConfig) CreateContext(ctx context.Context, name, token, url, caCert string) error
- func (m *MockConfig) DeleteContext(name string) error
- func (m *MockConfig) EXPECT() *MockConfigMockRecorder
- func (m *MockConfig) GetAccountId(ctx context.Context) (string, error)
- func (m *MockConfig) GetCurrentContext() *config.AuthContext
- func (m *MockConfig) GetUser(ctx context.Context) (*rest.User, error)
- func (m *MockConfig) Load(cmd *cobra.Command, args []string) error
- func (m *MockConfig) NewAdHocClient(ctx context.Context, url, token, caCert string) (codefresh.Codefresh, error)
- func (m *MockConfig) NewClient() codefresh.Codefresh
- func (m *MockConfig) RequireAuthentication(cmd *cobra.Command, args []string) error
- func (m *MockConfig) Save() error
- func (m *MockConfig) UseContext(ctx context.Context, name string) error
- func (m *MockConfig) Write(ctx context.Context, w io.Writer) error
- type MockConfigMockRecorder
- func (mr *MockConfigMockRecorder) CreateContext(ctx, name, token, url, caCert interface{}) *gomock.Call
- func (mr *MockConfigMockRecorder) DeleteContext(name interface{}) *gomock.Call
- func (mr *MockConfigMockRecorder) GetAccountId(ctx interface{}) *gomock.Call
- func (mr *MockConfigMockRecorder) GetCurrentContext() *gomock.Call
- func (mr *MockConfigMockRecorder) GetUser(ctx interface{}) *gomock.Call
- func (mr *MockConfigMockRecorder) Load(cmd, args interface{}) *gomock.Call
- func (mr *MockConfigMockRecorder) NewAdHocClient(ctx, url, token, caCert interface{}) *gomock.Call
- func (mr *MockConfigMockRecorder) NewClient() *gomock.Call
- func (mr *MockConfigMockRecorder) RequireAuthentication(cmd, args interface{}) *gomock.Call
- func (mr *MockConfigMockRecorder) Save() *gomock.Call
- func (mr *MockConfigMockRecorder) UseContext(ctx, name interface{}) *gomock.Call
- func (mr *MockConfigMockRecorder) Write(ctx, w interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConfig ¶
type MockConfig struct {
// contains filtered or unexported fields
}
MockConfig is a mock of Config interface.
func NewMockConfig ¶
func NewMockConfig(ctrl *gomock.Controller) *MockConfig
NewMockConfig creates a new mock instance.
func (*MockConfig) CreateContext ¶
func (m *MockConfig) CreateContext(ctx context.Context, name, token, url, caCert string) error
CreateContext mocks base method.
func (*MockConfig) DeleteContext ¶
func (m *MockConfig) DeleteContext(name string) error
DeleteContext mocks base method.
func (*MockConfig) EXPECT ¶
func (m *MockConfig) EXPECT() *MockConfigMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConfig) GetAccountId ¶
func (m *MockConfig) GetAccountId(ctx context.Context) (string, error)
GetAccountId mocks base method.
func (*MockConfig) GetCurrentContext ¶
func (m *MockConfig) GetCurrentContext() *config.AuthContext
GetCurrentContext mocks base method.
func (*MockConfig) Load ¶
func (m *MockConfig) Load(cmd *cobra.Command, args []string) error
Load mocks base method.
func (*MockConfig) NewAdHocClient ¶
func (m *MockConfig) NewAdHocClient(ctx context.Context, url, token, caCert string) (codefresh.Codefresh, error)
NewAdHocClient mocks base method.
func (*MockConfig) NewClient ¶
func (m *MockConfig) NewClient() codefresh.Codefresh
NewClient mocks base method.
func (*MockConfig) RequireAuthentication ¶
func (m *MockConfig) RequireAuthentication(cmd *cobra.Command, args []string) error
RequireAuthentication mocks base method.
func (*MockConfig) UseContext ¶
func (m *MockConfig) UseContext(ctx context.Context, name string) error
UseContext mocks base method.
type MockConfigMockRecorder ¶
type MockConfigMockRecorder struct {
// contains filtered or unexported fields
}
MockConfigMockRecorder is the mock recorder for MockConfig.
func (*MockConfigMockRecorder) CreateContext ¶
func (mr *MockConfigMockRecorder) CreateContext(ctx, name, token, url, caCert interface{}) *gomock.Call
CreateContext indicates an expected call of CreateContext.
func (*MockConfigMockRecorder) DeleteContext ¶
func (mr *MockConfigMockRecorder) DeleteContext(name interface{}) *gomock.Call
DeleteContext indicates an expected call of DeleteContext.
func (*MockConfigMockRecorder) GetAccountId ¶
func (mr *MockConfigMockRecorder) GetAccountId(ctx interface{}) *gomock.Call
GetAccountId indicates an expected call of GetAccountId.
func (*MockConfigMockRecorder) GetCurrentContext ¶
func (mr *MockConfigMockRecorder) GetCurrentContext() *gomock.Call
GetCurrentContext indicates an expected call of GetCurrentContext.
func (*MockConfigMockRecorder) GetUser ¶
func (mr *MockConfigMockRecorder) GetUser(ctx interface{}) *gomock.Call
GetUser indicates an expected call of GetUser.
func (*MockConfigMockRecorder) Load ¶
func (mr *MockConfigMockRecorder) Load(cmd, args interface{}) *gomock.Call
Load indicates an expected call of Load.
func (*MockConfigMockRecorder) NewAdHocClient ¶
func (mr *MockConfigMockRecorder) NewAdHocClient(ctx, url, token, caCert interface{}) *gomock.Call
NewAdHocClient indicates an expected call of NewAdHocClient.
func (*MockConfigMockRecorder) NewClient ¶
func (mr *MockConfigMockRecorder) NewClient() *gomock.Call
NewClient indicates an expected call of NewClient.
func (*MockConfigMockRecorder) RequireAuthentication ¶
func (mr *MockConfigMockRecorder) RequireAuthentication(cmd, args interface{}) *gomock.Call
RequireAuthentication indicates an expected call of RequireAuthentication.
func (*MockConfigMockRecorder) Save ¶
func (mr *MockConfigMockRecorder) Save() *gomock.Call
Save indicates an expected call of Save.
func (*MockConfigMockRecorder) UseContext ¶
func (mr *MockConfigMockRecorder) UseContext(ctx, name interface{}) *gomock.Call
UseContext indicates an expected call of UseContext.
func (*MockConfigMockRecorder) Write ¶
func (mr *MockConfigMockRecorder) Write(ctx, w interface{}) *gomock.Call
Write indicates an expected call of Write.