Documentation ¶
Index ¶
- type CronMock
- func (c CronMock) CronCreate(ctx context.Context, request *cronpb.CronCreateRequest) (*cronpb.CronCreateResponse, error)
- func (c CronMock) CronDelete(ctx context.Context, request *cronpb.CronDeleteRequest) (*cronpb.CronDeleteResponse, error)
- func (c CronMock) CronGet(ctx context.Context, request *cronpb.CronGetRequest) (*cronpb.CronGetResponse, error)
- func (c CronMock) CronPaging(ctx context.Context, request *cronpb.CronPagingRequest) (*cronpb.CronPagingResponse, error)
- func (c CronMock) CronStart(ctx context.Context, request *cronpb.CronStartRequest) (*cronpb.CronStartResponse, error)
- func (c CronMock) CronStop(ctx context.Context, request *cronpb.CronStopRequest) (*cronpb.CronStopResponse, error)
- func (c CronMock) CronUpdate(ctx context.Context, request *cronpb.CronUpdateRequest) (*cronpb.CronUpdateResponse, error)
- type DefinitionMock
- func (d DefinitionMock) Create(ctx context.Context, request *pb.PipelineDefinitionCreateRequest) (*pb.PipelineDefinitionCreateResponse, error)
- func (d DefinitionMock) Delete(ctx context.Context, request *pb.PipelineDefinitionDeleteRequest) (*pb.PipelineDefinitionDeleteResponse, error)
- func (d DefinitionMock) DeleteByRemote(ctx context.Context, request *pb.PipelineDefinitionDeleteByRemoteRequest) (*pb.PipelineDefinitionDeleteResponse, error)
- func (d DefinitionMock) Get(ctx context.Context, request *pb.PipelineDefinitionGetRequest) (*pb.PipelineDefinitionGetResponse, error)
- func (d DefinitionMock) List(ctx context.Context, request *pb.PipelineDefinitionListRequest) (*pb.PipelineDefinitionListResponse, error)
- func (d DefinitionMock) ListByRemote(ctx context.Context, request *pb.PipelineDefinitionListByRemoteRequest) (*pb.PipelineDefinitionListResponse, error)
- func (d DefinitionMock) ListUsedRefs(ctx context.Context, request *pb.PipelineDefinitionUsedRefListRequest) (*pb.PipelineDefinitionUsedRefListResponse, error)
- func (d DefinitionMock) StatisticsGroupByFilePath(ctx context.Context, request *pb.PipelineDefinitionStatisticsRequest) (*pb.PipelineDefinitionStatisticsResponse, error)
- func (d DefinitionMock) StatisticsGroupByRemote(ctx context.Context, request *pb.PipelineDefinitionStatisticsRequest) (*pb.PipelineDefinitionStatisticsResponse, error)
- func (d DefinitionMock) Update(ctx context.Context, request *pb.PipelineDefinitionUpdateRequest) (*pb.PipelineDefinitionUpdateResponse, error)
- func (d DefinitionMock) UpdateExtra(ctx context.Context, request *pb.PipelineDefinitionExtraUpdateRequest) (*pb.PipelineDefinitionExtraUpdateResponse, error)
- type MockHTTPResponseWriter
- type OrgMock
- func (m OrgMock) ChangeCurrentOrg(ctx context.Context, request *orgpb.ChangeCurrentOrgRequest) (*orgpb.ChangeCurrentOrgResponse, error)
- func (m OrgMock) CreateOrg(ctx context.Context, request *orgpb.CreateOrgRequest) (*orgpb.CreateOrgResponse, error)
- func (m OrgMock) CreateOrgClusterRelation(ctx context.Context, request *orgpb.OrgClusterRelationCreateRequest) (*orgpb.OrgClusterRelationCreateResponse, error)
- func (m OrgMock) DeleteOrg(ctx context.Context, request *orgpb.DeleteOrgRequest) (*orgpb.DeleteOrgResponse, error)
- func (m OrgMock) DereferenceCluster(ctx context.Context, request *orgpb.DereferenceClusterRequest) (*orgpb.DereferenceClusterResponse, error)
- func (m OrgMock) GenVerifyCode(ctx context.Context, request *orgpb.GenVerifyCodeRequest) (*orgpb.GenVerifyCodeResponse, error)
- func (m OrgMock) GetNotifyConfig(ctx context.Context, request *orgpb.GetNotifyConfigRequest) (*orgpb.GetNotifyConfigResponse, error)
- func (m OrgMock) GetOrg(ctx context.Context, request *orgpb.GetOrgRequest) (*orgpb.GetOrgResponse, error)
- func (m OrgMock) GetOrgByDomain(ctx context.Context, request *orgpb.GetOrgByDomainRequest) (*orgpb.GetOrgByDomainResponse, error)
- func (m OrgMock) GetOrgClusterRelationsByOrg(ctx context.Context, request *orgpb.GetOrgClusterRelationsByOrgRequest) (*orgpb.GetOrgClusterRelationsByOrgResponse, error)
- func (m OrgMock) ListOrg(ctx context.Context, request *orgpb.ListOrgRequest) (*orgpb.ListOrgResponse, error)
- func (m OrgMock) ListOrgClusterRelation(ctx context.Context, request *orgpb.ListOrgClusterRelationRequest) (*orgpb.ListOrgClusterRelationResponse, error)
- func (m OrgMock) ListOrgs(ctx context.Context, orgIDs []int64, req *orgpb.ListOrgRequest, all bool) (int, []*orgpb.Org, error)
- func (m OrgMock) ListPublicOrg(ctx context.Context, request *orgpb.ListOrgRequest) (*orgpb.ListOrgResponse, error)
- func (m OrgMock) SetNotifyConfig(ctx context.Context, request *orgpb.SetNotifyConfigRequest) (*orgpb.SetNotifyConfigResponse, error)
- func (m OrgMock) SetReleaseCrossCluster(ctx context.Context, request *orgpb.SetReleaseCrossClusterRequest) (*orgpb.SetReleaseCrossClusterResponse, error)
- func (m OrgMock) UpdateOrg(ctx context.Context, request *orgpb.UpdateOrgRequest) (*orgpb.UpdateOrgResponse, error)
- func (m OrgMock) WithMember(member *member.Member)
- func (m OrgMock) WithPermission(permission *permission.Permission)
- func (m OrgMock) WithUc(uc userpb.UserServiceServer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronMock ¶
type CronMock struct { }
func (CronMock) CronCreate ¶
func (c CronMock) CronCreate(ctx context.Context, request *cronpb.CronCreateRequest) (*cronpb.CronCreateResponse, error)
func (CronMock) CronDelete ¶
func (c CronMock) CronDelete(ctx context.Context, request *cronpb.CronDeleteRequest) (*cronpb.CronDeleteResponse, error)
func (CronMock) CronGet ¶
func (c CronMock) CronGet(ctx context.Context, request *cronpb.CronGetRequest) (*cronpb.CronGetResponse, error)
func (CronMock) CronPaging ¶
func (c CronMock) CronPaging(ctx context.Context, request *cronpb.CronPagingRequest) (*cronpb.CronPagingResponse, error)
func (CronMock) CronStart ¶
func (c CronMock) CronStart(ctx context.Context, request *cronpb.CronStartRequest) (*cronpb.CronStartResponse, error)
func (CronMock) CronStop ¶
func (c CronMock) CronStop(ctx context.Context, request *cronpb.CronStopRequest) (*cronpb.CronStopResponse, error)
func (CronMock) CronUpdate ¶
func (c CronMock) CronUpdate(ctx context.Context, request *cronpb.CronUpdateRequest) (*cronpb.CronUpdateResponse, error)
type DefinitionMock ¶
type DefinitionMock struct { }
func (DefinitionMock) Create ¶
func (d DefinitionMock) Create(ctx context.Context, request *pb.PipelineDefinitionCreateRequest) (*pb.PipelineDefinitionCreateResponse, error)
func (DefinitionMock) Delete ¶
func (d DefinitionMock) Delete(ctx context.Context, request *pb.PipelineDefinitionDeleteRequest) (*pb.PipelineDefinitionDeleteResponse, error)
func (DefinitionMock) DeleteByRemote ¶
func (d DefinitionMock) DeleteByRemote(ctx context.Context, request *pb.PipelineDefinitionDeleteByRemoteRequest) (*pb.PipelineDefinitionDeleteResponse, error)
func (DefinitionMock) Get ¶
func (d DefinitionMock) Get(ctx context.Context, request *pb.PipelineDefinitionGetRequest) (*pb.PipelineDefinitionGetResponse, error)
func (DefinitionMock) List ¶
func (d DefinitionMock) List(ctx context.Context, request *pb.PipelineDefinitionListRequest) (*pb.PipelineDefinitionListResponse, error)
func (DefinitionMock) ListByRemote ¶
func (d DefinitionMock) ListByRemote(ctx context.Context, request *pb.PipelineDefinitionListByRemoteRequest) (*pb.PipelineDefinitionListResponse, error)
func (DefinitionMock) ListUsedRefs ¶
func (d DefinitionMock) ListUsedRefs(ctx context.Context, request *pb.PipelineDefinitionUsedRefListRequest) (*pb.PipelineDefinitionUsedRefListResponse, error)
func (DefinitionMock) StatisticsGroupByFilePath ¶
func (d DefinitionMock) StatisticsGroupByFilePath(ctx context.Context, request *pb.PipelineDefinitionStatisticsRequest) (*pb.PipelineDefinitionStatisticsResponse, error)
func (DefinitionMock) StatisticsGroupByRemote ¶
func (d DefinitionMock) StatisticsGroupByRemote(ctx context.Context, request *pb.PipelineDefinitionStatisticsRequest) (*pb.PipelineDefinitionStatisticsResponse, error)
func (DefinitionMock) Update ¶
func (d DefinitionMock) Update(ctx context.Context, request *pb.PipelineDefinitionUpdateRequest) (*pb.PipelineDefinitionUpdateResponse, error)
func (DefinitionMock) UpdateExtra ¶
func (d DefinitionMock) UpdateExtra(ctx context.Context, request *pb.PipelineDefinitionExtraUpdateRequest) (*pb.PipelineDefinitionExtraUpdateResponse, error)
type MockHTTPResponseWriter ¶
func NewMockHTTPResponseWriter ¶
func NewMockHTTPResponseWriter() *MockHTTPResponseWriter
func (*MockHTTPResponseWriter) Header ¶
func (rw *MockHTTPResponseWriter) Header() http.Header
func (*MockHTTPResponseWriter) Write ¶
func (rw *MockHTTPResponseWriter) Write(byts []byte) (int, error)
func (*MockHTTPResponseWriter) WriteHeader ¶
func (rw *MockHTTPResponseWriter) WriteHeader(statusCode int)
type OrgMock ¶
type OrgMock struct { }
func (OrgMock) ChangeCurrentOrg ¶
func (m OrgMock) ChangeCurrentOrg(ctx context.Context, request *orgpb.ChangeCurrentOrgRequest) (*orgpb.ChangeCurrentOrgResponse, error)
func (OrgMock) CreateOrg ¶
func (m OrgMock) CreateOrg(ctx context.Context, request *orgpb.CreateOrgRequest) (*orgpb.CreateOrgResponse, error)
func (OrgMock) CreateOrgClusterRelation ¶
func (m OrgMock) CreateOrgClusterRelation(ctx context.Context, request *orgpb.OrgClusterRelationCreateRequest) (*orgpb.OrgClusterRelationCreateResponse, error)
func (OrgMock) DeleteOrg ¶
func (m OrgMock) DeleteOrg(ctx context.Context, request *orgpb.DeleteOrgRequest) (*orgpb.DeleteOrgResponse, error)
func (OrgMock) DereferenceCluster ¶
func (m OrgMock) DereferenceCluster(ctx context.Context, request *orgpb.DereferenceClusterRequest) (*orgpb.DereferenceClusterResponse, error)
func (OrgMock) GenVerifyCode ¶
func (m OrgMock) GenVerifyCode(ctx context.Context, request *orgpb.GenVerifyCodeRequest) (*orgpb.GenVerifyCodeResponse, error)
func (OrgMock) GetNotifyConfig ¶
func (m OrgMock) GetNotifyConfig(ctx context.Context, request *orgpb.GetNotifyConfigRequest) (*orgpb.GetNotifyConfigResponse, error)
func (OrgMock) GetOrg ¶
func (m OrgMock) GetOrg(ctx context.Context, request *orgpb.GetOrgRequest) (*orgpb.GetOrgResponse, error)
func (OrgMock) GetOrgByDomain ¶
func (m OrgMock) GetOrgByDomain(ctx context.Context, request *orgpb.GetOrgByDomainRequest) (*orgpb.GetOrgByDomainResponse, error)
func (OrgMock) GetOrgClusterRelationsByOrg ¶
func (m OrgMock) GetOrgClusterRelationsByOrg(ctx context.Context, request *orgpb.GetOrgClusterRelationsByOrgRequest) (*orgpb.GetOrgClusterRelationsByOrgResponse, error)
func (OrgMock) ListOrg ¶
func (m OrgMock) ListOrg(ctx context.Context, request *orgpb.ListOrgRequest) (*orgpb.ListOrgResponse, error)
func (OrgMock) ListOrgClusterRelation ¶
func (m OrgMock) ListOrgClusterRelation(ctx context.Context, request *orgpb.ListOrgClusterRelationRequest) (*orgpb.ListOrgClusterRelationResponse, error)
func (OrgMock) ListPublicOrg ¶
func (m OrgMock) ListPublicOrg(ctx context.Context, request *orgpb.ListOrgRequest) (*orgpb.ListOrgResponse, error)
func (OrgMock) SetNotifyConfig ¶
func (m OrgMock) SetNotifyConfig(ctx context.Context, request *orgpb.SetNotifyConfigRequest) (*orgpb.SetNotifyConfigResponse, error)
func (OrgMock) SetReleaseCrossCluster ¶
func (m OrgMock) SetReleaseCrossCluster(ctx context.Context, request *orgpb.SetReleaseCrossClusterRequest) (*orgpb.SetReleaseCrossClusterResponse, error)
func (OrgMock) UpdateOrg ¶
func (m OrgMock) UpdateOrg(ctx context.Context, request *orgpb.UpdateOrgRequest) (*orgpb.UpdateOrgResponse, error)
func (OrgMock) WithMember ¶
func (OrgMock) WithPermission ¶
func (m OrgMock) WithPermission(permission *permission.Permission)
func (OrgMock) WithUc ¶
func (m OrgMock) WithUc(uc userpb.UserServiceServer)
Click to show internal directories.
Click to hide internal directories.