Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockOCMInterface
- func (m *MockOCMInterface) CreateAccessRequestDecision(ocmConnection *sdk.Connection, accessRequest *v1.AccessRequest, ...) (*v1.Decision, error)
- func (m *MockOCMInterface) CreateClusterAccessRequest(ocmConnection *sdk.Connection, ...) (*v1.AccessRequest, error)
- func (m *MockOCMInterface) EXPECT() *MockOCMInterfaceMockRecorder
- func (m *MockOCMInterface) GetClusterActiveAccessRequest(ocmConnection *sdk.Connection, clusterID string) (*v1.AccessRequest, error)
- func (m *MockOCMInterface) GetClusterInfoByID(clusterID string) (*v10.Cluster, error)
- func (m *MockOCMInterface) GetClusterInfoByIDWithConn(ocmConnection *sdk.Connection, clusterID string) (*v10.Cluster, error)
- func (m *MockOCMInterface) GetManagingCluster(clusterKey string) (string, string, bool, error)
- func (m *MockOCMInterface) GetOCMAccessToken() (*string, error)
- func (m *MockOCMInterface) GetOCMAccessTokenWithConn(ocmConnection *sdk.Connection) (*string, error)
- func (m *MockOCMInterface) GetOCMEnvironment() (*v10.Environment, error)
- func (m *MockOCMInterface) GetOCMEnvironmentWithConn(arg0 *sdk.Connection) (*v10.Environment, error)
- func (m *MockOCMInterface) GetPullSecret() (string, error)
- func (m *MockOCMInterface) GetServiceCluster(clusterKey string) (string, string, error)
- func (m *MockOCMInterface) GetStsSupportJumpRoleARN(ocmConnection *sdk.Connection, clusterID string) (string, error)
- func (m *MockOCMInterface) GetTargetCluster(clusterKey string) (string, string, error)
- func (m *MockOCMInterface) GetTrustedIPList(arg0 *sdk.Connection) (*v10.TrustedIpList, error)
- func (m *MockOCMInterface) IsClusterAccessProtectionEnabled(ocmConnection *sdk.Connection, clusterID string) (bool, error)
- func (m *MockOCMInterface) IsClusterHibernating(clusterID string) (bool, error)
- func (m *MockOCMInterface) IsProduction() (bool, error)
- func (m *MockOCMInterface) SetupOCMConnection() (*sdk.Connection, error)
- type MockOCMInterfaceMockRecorder
- func (mr *MockOCMInterfaceMockRecorder) CreateAccessRequestDecision(ocmConnection, accessRequest, decision, justification any) *gomock.Call
- func (mr *MockOCMInterfaceMockRecorder) CreateClusterAccessRequest(ocmConnection, clusterID, reason, jiraIssueID, approvalDuration any) *gomock.Call
- func (mr *MockOCMInterfaceMockRecorder) GetClusterActiveAccessRequest(ocmConnection, clusterID any) *gomock.Call
- func (mr *MockOCMInterfaceMockRecorder) GetClusterInfoByID(clusterID any) *gomock.Call
- func (mr *MockOCMInterfaceMockRecorder) GetClusterInfoByIDWithConn(ocmConnection, clusterID any) *gomock.Call
- func (mr *MockOCMInterfaceMockRecorder) GetManagingCluster(clusterKey any) *gomock.Call
- func (mr *MockOCMInterfaceMockRecorder) GetOCMAccessToken() *gomock.Call
- func (mr *MockOCMInterfaceMockRecorder) GetOCMAccessTokenWithConn(ocmConnection any) *gomock.Call
- func (mr *MockOCMInterfaceMockRecorder) GetOCMEnvironment() *gomock.Call
- func (mr *MockOCMInterfaceMockRecorder) GetOCMEnvironmentWithConn(arg0 *sdk.Connection) *gomock.Call
- func (mr *MockOCMInterfaceMockRecorder) GetPullSecret() *gomock.Call
- func (mr *MockOCMInterfaceMockRecorder) GetServiceCluster(clusterKey any) *gomock.Call
- func (mr *MockOCMInterfaceMockRecorder) GetStsSupportJumpRoleARN(ocmConnection, clusterID any) *gomock.Call
- func (mr *MockOCMInterfaceMockRecorder) GetTargetCluster(clusterKey any) *gomock.Call
- func (mr *MockOCMInterfaceMockRecorder) GetTrustedIPList(arg0 any) *gomock.Call
- func (mr *MockOCMInterfaceMockRecorder) IsClusterAccessProtectionEnabled(ocmConnection, clusterID any) *gomock.Call
- func (mr *MockOCMInterfaceMockRecorder) IsClusterHibernating(clusterID any) *gomock.Call
- func (mr *MockOCMInterfaceMockRecorder) IsProduction() *gomock.Call
- func (mr *MockOCMInterfaceMockRecorder) SetupOCMConnection() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockOCMInterface ¶
type MockOCMInterface struct {
// contains filtered or unexported fields
}
MockOCMInterface is a mock of OCMInterface interface.
func NewMockOCMInterface ¶
func NewMockOCMInterface(ctrl *gomock.Controller) *MockOCMInterface
NewMockOCMInterface creates a new mock instance.
func (*MockOCMInterface) CreateAccessRequestDecision ¶ added in v0.1.34
func (m *MockOCMInterface) CreateAccessRequestDecision(ocmConnection *sdk.Connection, accessRequest *v1.AccessRequest, decision v1.DecisionDecision, justification string) (*v1.Decision, error)
CreateAccessRequestDecision mocks base method.
func (*MockOCMInterface) CreateClusterAccessRequest ¶ added in v0.1.34
func (m *MockOCMInterface) CreateClusterAccessRequest(ocmConnection *sdk.Connection, clusterID, reason, jiraIssueID, approvalDuration string) (*v1.AccessRequest, error)
CreateClusterAccessRequest mocks base method.
func (*MockOCMInterface) EXPECT ¶
func (m *MockOCMInterface) EXPECT() *MockOCMInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOCMInterface) GetClusterActiveAccessRequest ¶ added in v0.1.34
func (m *MockOCMInterface) GetClusterActiveAccessRequest(ocmConnection *sdk.Connection, clusterID string) (*v1.AccessRequest, error)
GetClusterActiveAccessRequest mocks base method.
func (*MockOCMInterface) GetClusterInfoByID ¶
func (m *MockOCMInterface) GetClusterInfoByID(clusterID string) (*v10.Cluster, error)
GetClusterInfoByID mocks base method.
func (*MockOCMInterface) GetClusterInfoByIDWithConn ¶ added in v0.1.31
func (m *MockOCMInterface) GetClusterInfoByIDWithConn(ocmConnection *sdk.Connection, clusterID string) (*v10.Cluster, error)
GetClusterInfoByIDWithConn mocks base method.
func (*MockOCMInterface) GetManagingCluster ¶
GetManagingCluster mocks base method.
func (*MockOCMInterface) GetOCMAccessToken ¶
func (m *MockOCMInterface) GetOCMAccessToken() (*string, error)
GetOCMAccessToken mocks base method.
func (*MockOCMInterface) GetOCMAccessTokenWithConn ¶ added in v0.1.31
func (m *MockOCMInterface) GetOCMAccessTokenWithConn(ocmConnection *sdk.Connection) (*string, error)
GetOCMAccessTokenWithConn mocks base method.
func (*MockOCMInterface) GetOCMEnvironment ¶ added in v0.1.21
func (m *MockOCMInterface) GetOCMEnvironment() (*v10.Environment, error)
GetOCMEnvironment mocks base method.
func (*MockOCMInterface) GetOCMEnvironmentWithConn ¶ added in v0.6.0
func (m *MockOCMInterface) GetOCMEnvironmentWithConn(arg0 *sdk.Connection) (*v10.Environment, error)
GetOCMEnvironmentWithConn mocks base method.
func (*MockOCMInterface) GetPullSecret ¶
func (m *MockOCMInterface) GetPullSecret() (string, error)
GetPullSecret mocks base method.
func (*MockOCMInterface) GetServiceCluster ¶
func (m *MockOCMInterface) GetServiceCluster(clusterKey string) (string, string, error)
GetServiceCluster mocks base method.
func (*MockOCMInterface) GetStsSupportJumpRoleARN ¶
func (m *MockOCMInterface) GetStsSupportJumpRoleARN(ocmConnection *sdk.Connection, clusterID string) (string, error)
GetStsSupportJumpRoleARN mocks base method.
func (*MockOCMInterface) GetTargetCluster ¶
func (m *MockOCMInterface) GetTargetCluster(clusterKey string) (string, string, error)
GetTargetCluster mocks base method.
func (*MockOCMInterface) GetTrustedIPList ¶ added in v0.1.41
func (m *MockOCMInterface) GetTrustedIPList(arg0 *sdk.Connection) (*v10.TrustedIpList, error)
GetTrustedIPList mocks base method.
func (*MockOCMInterface) IsClusterAccessProtectionEnabled ¶ added in v0.1.34
func (m *MockOCMInterface) IsClusterAccessProtectionEnabled(ocmConnection *sdk.Connection, clusterID string) (bool, error)
IsClusterAccessProtectionEnabled mocks base method.
func (*MockOCMInterface) IsClusterHibernating ¶
func (m *MockOCMInterface) IsClusterHibernating(clusterID string) (bool, error)
IsClusterHibernating mocks base method.
func (*MockOCMInterface) IsProduction ¶
func (m *MockOCMInterface) IsProduction() (bool, error)
IsProduction mocks base method.
func (*MockOCMInterface) SetupOCMConnection ¶ added in v0.1.35
func (m *MockOCMInterface) SetupOCMConnection() (*sdk.Connection, error)
SetupOCMConnection mocks base method.
type MockOCMInterfaceMockRecorder ¶
type MockOCMInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockOCMInterfaceMockRecorder is the mock recorder for MockOCMInterface.
func (*MockOCMInterfaceMockRecorder) CreateAccessRequestDecision ¶ added in v0.1.34
func (mr *MockOCMInterfaceMockRecorder) CreateAccessRequestDecision(ocmConnection, accessRequest, decision, justification any) *gomock.Call
CreateAccessRequestDecision indicates an expected call of CreateAccessRequestDecision.
func (*MockOCMInterfaceMockRecorder) CreateClusterAccessRequest ¶ added in v0.1.34
func (mr *MockOCMInterfaceMockRecorder) CreateClusterAccessRequest(ocmConnection, clusterID, reason, jiraIssueID, approvalDuration any) *gomock.Call
CreateClusterAccessRequest indicates an expected call of CreateClusterAccessRequest.
func (*MockOCMInterfaceMockRecorder) GetClusterActiveAccessRequest ¶ added in v0.1.34
func (mr *MockOCMInterfaceMockRecorder) GetClusterActiveAccessRequest(ocmConnection, clusterID any) *gomock.Call
GetClusterActiveAccessRequest indicates an expected call of GetClusterActiveAccessRequest.
func (*MockOCMInterfaceMockRecorder) GetClusterInfoByID ¶
func (mr *MockOCMInterfaceMockRecorder) GetClusterInfoByID(clusterID any) *gomock.Call
GetClusterInfoByID indicates an expected call of GetClusterInfoByID.
func (*MockOCMInterfaceMockRecorder) GetClusterInfoByIDWithConn ¶ added in v0.1.31
func (mr *MockOCMInterfaceMockRecorder) GetClusterInfoByIDWithConn(ocmConnection, clusterID any) *gomock.Call
GetClusterInfoByIDWithConn indicates an expected call of GetClusterInfoByIDWithConn.
func (*MockOCMInterfaceMockRecorder) GetManagingCluster ¶
func (mr *MockOCMInterfaceMockRecorder) GetManagingCluster(clusterKey any) *gomock.Call
GetManagingCluster indicates an expected call of GetManagingCluster.
func (*MockOCMInterfaceMockRecorder) GetOCMAccessToken ¶
func (mr *MockOCMInterfaceMockRecorder) GetOCMAccessToken() *gomock.Call
GetOCMAccessToken indicates an expected call of GetOCMAccessToken.
func (*MockOCMInterfaceMockRecorder) GetOCMAccessTokenWithConn ¶ added in v0.1.31
func (mr *MockOCMInterfaceMockRecorder) GetOCMAccessTokenWithConn(ocmConnection any) *gomock.Call
GetOCMAccessTokenWithConn indicates an expected call of GetOCMAccessTokenWithConn.
func (*MockOCMInterfaceMockRecorder) GetOCMEnvironment ¶ added in v0.1.21
func (mr *MockOCMInterfaceMockRecorder) GetOCMEnvironment() *gomock.Call
GetOCMEnvironment indicates an expected call of GetOCMEnvironment.
func (*MockOCMInterfaceMockRecorder) GetOCMEnvironmentWithConn ¶ added in v0.6.0
func (mr *MockOCMInterfaceMockRecorder) GetOCMEnvironmentWithConn(arg0 *sdk.Connection) *gomock.Call
GetOCMEnvironmentWithConn indicates an expected call of GetOCMEnvironmentWithConn.
func (*MockOCMInterfaceMockRecorder) GetPullSecret ¶
func (mr *MockOCMInterfaceMockRecorder) GetPullSecret() *gomock.Call
GetPullSecret indicates an expected call of GetPullSecret.
func (*MockOCMInterfaceMockRecorder) GetServiceCluster ¶
func (mr *MockOCMInterfaceMockRecorder) GetServiceCluster(clusterKey any) *gomock.Call
GetServiceCluster indicates an expected call of GetServiceCluster.
func (*MockOCMInterfaceMockRecorder) GetStsSupportJumpRoleARN ¶
func (mr *MockOCMInterfaceMockRecorder) GetStsSupportJumpRoleARN(ocmConnection, clusterID any) *gomock.Call
GetStsSupportJumpRoleARN indicates an expected call of GetStsSupportJumpRoleARN.
func (*MockOCMInterfaceMockRecorder) GetTargetCluster ¶
func (mr *MockOCMInterfaceMockRecorder) GetTargetCluster(clusterKey any) *gomock.Call
GetTargetCluster indicates an expected call of GetTargetCluster.
func (*MockOCMInterfaceMockRecorder) GetTrustedIPList ¶ added in v0.1.41
func (mr *MockOCMInterfaceMockRecorder) GetTrustedIPList(arg0 any) *gomock.Call
GetTrustedIPList indicates an expected call of GetTrustedIPList.
func (*MockOCMInterfaceMockRecorder) IsClusterAccessProtectionEnabled ¶ added in v0.1.34
func (mr *MockOCMInterfaceMockRecorder) IsClusterAccessProtectionEnabled(ocmConnection, clusterID any) *gomock.Call
IsClusterAccessProtectionEnabled indicates an expected call of IsClusterAccessProtectionEnabled.
func (*MockOCMInterfaceMockRecorder) IsClusterHibernating ¶
func (mr *MockOCMInterfaceMockRecorder) IsClusterHibernating(clusterID any) *gomock.Call
IsClusterHibernating indicates an expected call of IsClusterHibernating.
func (*MockOCMInterfaceMockRecorder) IsProduction ¶
func (mr *MockOCMInterfaceMockRecorder) IsProduction() *gomock.Call
IsProduction indicates an expected call of IsProduction.
func (*MockOCMInterfaceMockRecorder) SetupOCMConnection ¶ added in v0.1.35
func (mr *MockOCMInterfaceMockRecorder) SetupOCMConnection() *gomock.Call
SetupOCMConnection indicates an expected call of SetupOCMConnection.