Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockFunctionInterface
- func (m *MockFunctionInterface) CheckForShepherdAPI(ctx context.Context) (bool, error)
- func (m *MockFunctionInterface) CheckPrivileges(ctx context.Context) (map[string]any, error)
- func (m *MockFunctionInterface) DeleteRecord(ctx context.Context, guid string) (string, error)
- func (m *MockFunctionInterface) Do(ctx context.Context, req *request.RequestBuilder) (*http.Response, error)
- func (m *MockFunctionInterface) EXPECT() *MockFunctionInterfaceMockRecorder
- func (m *MockFunctionInterface) ExportCredential(ctx context.Context, cred *conf.Credential) error
- func (m *MockFunctionInterface) GetDownloadPresignedUrl(ctx context.Context, guid, protocolText string) (string, error)
- func (m *MockFunctionInterface) New(method, url string) *request.RequestBuilder
- func (m *MockFunctionInterface) NewAccessToken(ctx context.Context) error
- type MockFunctionInterfaceMockRecorder
- func (mr *MockFunctionInterfaceMockRecorder) CheckForShepherdAPI(ctx any) *gomock.Call
- func (mr *MockFunctionInterfaceMockRecorder) CheckPrivileges(ctx any) *gomock.Call
- func (mr *MockFunctionInterfaceMockRecorder) DeleteRecord(ctx, guid any) *gomock.Call
- func (mr *MockFunctionInterfaceMockRecorder) Do(ctx, req any) *gomock.Call
- func (mr *MockFunctionInterfaceMockRecorder) ExportCredential(ctx, cred any) *gomock.Call
- func (mr *MockFunctionInterfaceMockRecorder) GetDownloadPresignedUrl(ctx, guid, protocolText any) *gomock.Call
- func (mr *MockFunctionInterfaceMockRecorder) New(method, url any) *gomock.Call
- func (mr *MockFunctionInterfaceMockRecorder) NewAccessToken(ctx any) *gomock.Call
- type MockManagerInterface
- func (m *MockManagerInterface) EXPECT() *MockManagerInterfaceMockRecorder
- func (m *MockManagerInterface) EnsureExists() error
- func (m *MockManagerInterface) Import(filePath, fenceToken string) (*conf.Credential, error)
- func (m *MockManagerInterface) IsCredentialValid(arg0 *conf.Credential) (bool, error)
- func (m *MockManagerInterface) IsTokenValid(arg0 string) (bool, error)
- func (m *MockManagerInterface) Load(profile string) (*conf.Credential, error)
- func (m *MockManagerInterface) Save(cred *conf.Credential) error
- type MockManagerInterfaceMockRecorder
- func (mr *MockManagerInterfaceMockRecorder) EnsureExists() *gomock.Call
- func (mr *MockManagerInterfaceMockRecorder) Import(filePath, fenceToken any) *gomock.Call
- func (mr *MockManagerInterfaceMockRecorder) IsCredentialValid(arg0 any) *gomock.Call
- func (mr *MockManagerInterfaceMockRecorder) IsTokenValid(arg0 any) *gomock.Call
- func (mr *MockManagerInterfaceMockRecorder) Load(profile any) *gomock.Call
- func (mr *MockManagerInterfaceMockRecorder) Save(cred any) *gomock.Call
- type MockRequestInterface
- type MockRequestInterfaceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFunctionInterface ¶
type MockFunctionInterface struct {
// contains filtered or unexported fields
}
MockFunctionInterface is a mock of FunctionInterface interface.
func NewMockFunctionInterface ¶
func NewMockFunctionInterface(ctrl *gomock.Controller) *MockFunctionInterface
NewMockFunctionInterface creates a new mock instance.
func (*MockFunctionInterface) CheckForShepherdAPI ¶
func (m *MockFunctionInterface) CheckForShepherdAPI(ctx context.Context) (bool, error)
CheckForShepherdAPI mocks base method.
func (*MockFunctionInterface) CheckPrivileges ¶
CheckPrivileges mocks base method.
func (*MockFunctionInterface) DeleteRecord ¶
DeleteRecord mocks base method.
func (*MockFunctionInterface) Do ¶
func (m *MockFunctionInterface) Do(ctx context.Context, req *request.RequestBuilder) (*http.Response, error)
Do mocks base method.
func (*MockFunctionInterface) EXPECT ¶
func (m *MockFunctionInterface) EXPECT() *MockFunctionInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFunctionInterface) ExportCredential ¶
func (m *MockFunctionInterface) ExportCredential(ctx context.Context, cred *conf.Credential) error
ExportCredential mocks base method.
func (*MockFunctionInterface) GetDownloadPresignedUrl ¶
func (m *MockFunctionInterface) GetDownloadPresignedUrl(ctx context.Context, guid, protocolText string) (string, error)
GetDownloadPresignedUrl mocks base method.
func (*MockFunctionInterface) New ¶
func (m *MockFunctionInterface) New(method, url string) *request.RequestBuilder
New mocks base method.
func (*MockFunctionInterface) NewAccessToken ¶
func (m *MockFunctionInterface) NewAccessToken(ctx context.Context) error
NewAccessToken mocks base method.
type MockFunctionInterfaceMockRecorder ¶
type MockFunctionInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockFunctionInterfaceMockRecorder is the mock recorder for MockFunctionInterface.
func (*MockFunctionInterfaceMockRecorder) CheckForShepherdAPI ¶
func (mr *MockFunctionInterfaceMockRecorder) CheckForShepherdAPI(ctx any) *gomock.Call
CheckForShepherdAPI indicates an expected call of CheckForShepherdAPI.
func (*MockFunctionInterfaceMockRecorder) CheckPrivileges ¶
func (mr *MockFunctionInterfaceMockRecorder) CheckPrivileges(ctx any) *gomock.Call
CheckPrivileges indicates an expected call of CheckPrivileges.
func (*MockFunctionInterfaceMockRecorder) DeleteRecord ¶
func (mr *MockFunctionInterfaceMockRecorder) DeleteRecord(ctx, guid any) *gomock.Call
DeleteRecord indicates an expected call of DeleteRecord.
func (*MockFunctionInterfaceMockRecorder) Do ¶
func (mr *MockFunctionInterfaceMockRecorder) Do(ctx, req any) *gomock.Call
Do indicates an expected call of Do.
func (*MockFunctionInterfaceMockRecorder) ExportCredential ¶
func (mr *MockFunctionInterfaceMockRecorder) ExportCredential(ctx, cred any) *gomock.Call
ExportCredential indicates an expected call of ExportCredential.
func (*MockFunctionInterfaceMockRecorder) GetDownloadPresignedUrl ¶
func (mr *MockFunctionInterfaceMockRecorder) GetDownloadPresignedUrl(ctx, guid, protocolText any) *gomock.Call
GetDownloadPresignedUrl indicates an expected call of GetDownloadPresignedUrl.
func (*MockFunctionInterfaceMockRecorder) New ¶
func (mr *MockFunctionInterfaceMockRecorder) New(method, url any) *gomock.Call
New indicates an expected call of New.
func (*MockFunctionInterfaceMockRecorder) NewAccessToken ¶
func (mr *MockFunctionInterfaceMockRecorder) NewAccessToken(ctx any) *gomock.Call
NewAccessToken indicates an expected call of NewAccessToken.
type MockManagerInterface ¶
type MockManagerInterface struct {
// contains filtered or unexported fields
}
MockManagerInterface is a mock of ManagerInterface interface.
func NewMockManagerInterface ¶
func NewMockManagerInterface(ctrl *gomock.Controller) *MockManagerInterface
NewMockManagerInterface creates a new mock instance.
func (*MockManagerInterface) EXPECT ¶
func (m *MockManagerInterface) EXPECT() *MockManagerInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockManagerInterface) EnsureExists ¶
func (m *MockManagerInterface) EnsureExists() error
EnsureExists mocks base method.
func (*MockManagerInterface) Import ¶
func (m *MockManagerInterface) Import(filePath, fenceToken string) (*conf.Credential, error)
Import mocks base method.
func (*MockManagerInterface) IsCredentialValid ¶
func (m *MockManagerInterface) IsCredentialValid(arg0 *conf.Credential) (bool, error)
IsCredentialValid mocks base method.
func (*MockManagerInterface) IsTokenValid ¶
func (m *MockManagerInterface) IsTokenValid(arg0 string) (bool, error)
IsTokenValid mocks base method.
func (*MockManagerInterface) Load ¶
func (m *MockManagerInterface) Load(profile string) (*conf.Credential, error)
Load mocks base method.
func (*MockManagerInterface) Save ¶
func (m *MockManagerInterface) Save(cred *conf.Credential) error
Save mocks base method.
type MockManagerInterfaceMockRecorder ¶
type MockManagerInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerInterfaceMockRecorder is the mock recorder for MockManagerInterface.
func (*MockManagerInterfaceMockRecorder) EnsureExists ¶
func (mr *MockManagerInterfaceMockRecorder) EnsureExists() *gomock.Call
EnsureExists indicates an expected call of EnsureExists.
func (*MockManagerInterfaceMockRecorder) Import ¶
func (mr *MockManagerInterfaceMockRecorder) Import(filePath, fenceToken any) *gomock.Call
Import indicates an expected call of Import.
func (*MockManagerInterfaceMockRecorder) IsCredentialValid ¶
func (mr *MockManagerInterfaceMockRecorder) IsCredentialValid(arg0 any) *gomock.Call
IsCredentialValid indicates an expected call of IsCredentialValid.
func (*MockManagerInterfaceMockRecorder) IsTokenValid ¶
func (mr *MockManagerInterfaceMockRecorder) IsTokenValid(arg0 any) *gomock.Call
IsTokenValid indicates an expected call of IsTokenValid.
type MockRequestInterface ¶
type MockRequestInterface struct {
// contains filtered or unexported fields
}
MockRequestInterface is a mock of RequestInterface interface.
func NewMockRequestInterface ¶
func NewMockRequestInterface(ctrl *gomock.Controller) *MockRequestInterface
NewMockRequestInterface creates a new mock instance.
func (*MockRequestInterface) Do ¶
func (m *MockRequestInterface) Do(ctx context.Context, req *request.RequestBuilder) (*http.Response, error)
Do mocks base method.
func (*MockRequestInterface) EXPECT ¶
func (m *MockRequestInterface) EXPECT() *MockRequestInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRequestInterface) New ¶
func (m *MockRequestInterface) New(method, url string) *request.RequestBuilder
New mocks base method.
type MockRequestInterfaceMockRecorder ¶
type MockRequestInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockRequestInterfaceMockRecorder is the mock recorder for MockRequestInterface.