mock

package
v1.3.0-rc.0...-d217119 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 (CronMock) CronDelete

func (CronMock) CronGet

func (CronMock) CronPaging

func (CronMock) CronStart

func (CronMock) CronStop

func (CronMock) CronUpdate

type DefinitionMock

type DefinitionMock struct {
}

type MockHTTPResponseWriter

type MockHTTPResponseWriter struct {
	Status     int
	MockHeader http.Header
	Bytes      *bytes.Buffer
}

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 (OrgMock) CreateOrg

func (m OrgMock) CreateOrg(ctx context.Context, request *orgpb.CreateOrgRequest) (*orgpb.CreateOrgResponse, error)

func (OrgMock) DeleteOrg

func (m OrgMock) DeleteOrg(ctx context.Context, request *orgpb.DeleteOrgRequest) (*orgpb.DeleteOrgResponse, error)

func (OrgMock) DereferenceCluster

func (OrgMock) GenVerifyCode

func (OrgMock) GetNotifyConfig

func (OrgMock) GetOrg

func (m OrgMock) GetOrg(ctx context.Context, request *orgpb.GetOrgRequest) (*orgpb.GetOrgResponse, error)

func (OrgMock) GetOrgByDomain

func (OrgMock) ListOrg

func (m OrgMock) ListOrg(ctx context.Context, request *orgpb.ListOrgRequest) (*orgpb.ListOrgResponse, error)

func (OrgMock) ListOrgs

func (m OrgMock) ListOrgs(ctx context.Context, orgIDs []int64, req *orgpb.ListOrgRequest, all bool) (int, []*orgpb.Org, error)

func (OrgMock) ListPublicOrg

func (m OrgMock) ListPublicOrg(ctx context.Context, request *orgpb.ListOrgRequest) (*orgpb.ListOrgResponse, error)

func (OrgMock) SetNotifyConfig

func (OrgMock) UpdateOrg

func (m OrgMock) UpdateOrg(ctx context.Context, request *orgpb.UpdateOrgRequest) (*orgpb.UpdateOrgResponse, error)

func (OrgMock) WithMember

func (m OrgMock) WithMember(member *member.Member)

func (OrgMock) WithPermission

func (m OrgMock) WithPermission(permission *permission.Permission)

func (OrgMock) WithUc

func (m OrgMock) WithUc(uc userpb.UserServiceServer)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL