Help us shape the future of Go! Take the 2026 Go Developer Survey

mock

package
v0.111.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditLogService added in v0.60.0

type AuditLogService struct {
	ListFn        func(context.Context, *ps.ListAuditLogsRequest, ...ps.ListOption) (*ps.CursorPaginatedResponse[*ps.AuditLog], error)
	ListFnInvoked bool
}

func (*AuditLogService) List added in v0.60.0

type BackupsService added in v0.17.0

type BackupsService struct {
	CreateFn        func(context.Context, *ps.CreateBackupRequest) (*ps.Backup, error)
	CreateFnInvoked bool

	GetFn        func(context.Context, *ps.GetBackupRequest) (*ps.Backup, error)
	GetFnInvoked bool

	ListFn        func(context.Context, *ps.ListBackupsRequest) ([]*ps.Backup, error)
	ListFnInvoked bool

	DeleteFn        func(context.Context, *ps.DeleteBackupRequest) error
	DeleteFnInvoked bool
}

func (*BackupsService) Create added in v0.17.0

func (*BackupsService) Delete added in v0.17.0

func (*BackupsService) Get added in v0.17.0

func (*BackupsService) List added in v0.17.0

func (b *BackupsService) List(ctx context.Context, req *ps.ListBackupsRequest) ([]*ps.Backup, error)

type DataImportsService added in v0.99.0

type DataImportsService struct {
	TestDataImportSourceFn          func(ctx context.Context, request *ps.TestDataImportSourceRequest) (*ps.TestDataImportSourceResponse, error)
	TestDataImportSourceFnInvoked   bool
	StartDataImportFn               func(ctx context.Context, request *ps.StartDataImportRequest) (*ps.DataImport, error)
	StartDataImportFnInvoked        bool
	CancelDataImportFn              func(ctx context.Context, request *ps.CancelDataImportRequest) error
	CancelDataImportFnInvoked       bool
	GetDataImportStatusFn           func(ctx context.Context, request *ps.GetImportStatusRequest) (*ps.DataImport, error)
	GetDataImportStatusFnInvoked    bool
	MakePlanetScalePrimaryFn        func(ctx context.Context, request *ps.MakePlanetScalePrimaryRequest) (*ps.DataImport, error)
	MakePlanetScalePrimaryFnInvoked bool
	MakePlanetScaleReplicaFn        func(ctx context.Context, request *ps.MakePlanetScaleReplicaRequest) (*ps.DataImport, error)
	MakePlanetScaleReplicaFnInvoked bool
	DetachExternalDatabaseFn        func(ctx context.Context, request *ps.DetachExternalDatabaseRequest) (*ps.DataImport, error)
	DetachExternalDatabaseFnInvoked bool
}

func (*DataImportsService) CancelDataImport added in v0.99.0

func (d *DataImportsService) CancelDataImport(ctx context.Context, request *ps.CancelDataImportRequest) error

func (*DataImportsService) DetachExternalDatabase added in v0.99.0

func (d *DataImportsService) DetachExternalDatabase(ctx context.Context, request *ps.DetachExternalDatabaseRequest) (*ps.DataImport, error)

func (*DataImportsService) GetDataImportStatus added in v0.99.0

func (d *DataImportsService) GetDataImportStatus(ctx context.Context, request *ps.GetImportStatusRequest) (*ps.DataImport, error)

func (*DataImportsService) MakePlanetScalePrimary added in v0.99.0

func (d *DataImportsService) MakePlanetScalePrimary(ctx context.Context, request *ps.MakePlanetScalePrimaryRequest) (*ps.DataImport, error)

func (*DataImportsService) MakePlanetScaleReplica added in v0.99.0

func (d *DataImportsService) MakePlanetScaleReplica(ctx context.Context, request *ps.MakePlanetScaleReplicaRequest) (*ps.DataImport, error)

func (*DataImportsService) StartDataImport added in v0.99.0

func (d *DataImportsService) StartDataImport(ctx context.Context, request *ps.StartDataImportRequest) (*ps.DataImport, error)

func (*DataImportsService) TestDataImportSource added in v0.99.0

type DatabaseBranchesService added in v0.16.0

type DatabaseBranchesService struct {
	CreateFn        func(context.Context, *ps.CreateDatabaseBranchRequest) (*ps.DatabaseBranch, error)
	CreateFnInvoked bool

	ListFn        func(context.Context, *ps.ListDatabaseBranchesRequest) ([]*ps.DatabaseBranch, error)
	ListFnInvoked bool

	GetFn        func(context.Context, *ps.GetDatabaseBranchRequest) (*ps.DatabaseBranch, error)
	GetFnInvoked bool

	DeleteFn        func(context.Context, *ps.DeleteDatabaseBranchRequest) error
	DeleteFnInvoked bool

	DiffFn        func(context.Context, *ps.DiffBranchRequest) ([]*ps.Diff, error)
	DiffFnInvoked bool

	SchemaFn        func(context.Context, *ps.BranchSchemaRequest) ([]*ps.Diff, error)
	SchemaFnInvoked bool

	VSchemaFn        func(context.Context, *ps.BranchVSchemaRequest) (*ps.VSchemaDiff, error)
	VSchemaFnInvoked bool

	KeyspacesFn        func(context.Context, *ps.BranchKeyspacesRequest) ([]*ps.Keyspace, error)
	KeyspacesFnInvoked bool

	RefreshSchemaFn        func(context.Context, *ps.RefreshSchemaRequest) error
	RefreshSchemaFnInvoked bool

	PromoteFn        func(context.Context, *ps.PromoteRequest) (*ps.BranchPromotionRequest, error)
	PromoteFnInvoked bool

	GetPromotionRequestFn        func(context.Context, *ps.GetPromotionRequestRequest) (*ps.BranchPromotionRequest, error)
	GetPromotionRequestFnInvoked bool
}

func (*DatabaseBranchesService) Create added in v0.16.0

func (*DatabaseBranchesService) Delete added in v0.16.0

func (*DatabaseBranchesService) Diff added in v0.21.0

func (*DatabaseBranchesService) Get added in v0.16.0

func (*DatabaseBranchesService) GetPromotionRequest added in v0.75.0

func (*DatabaseBranchesService) Keyspaces added in v0.110.0

func (*DatabaseBranchesService) List added in v0.16.0

func (*DatabaseBranchesService) Promote added in v0.64.0

func (*DatabaseBranchesService) RefreshSchema added in v0.28.0

func (*DatabaseBranchesService) Schema added in v0.21.0

func (*DatabaseBranchesService) VSchema added in v0.96.0

type DatabaseService

type DatabaseService struct {
	CreateFn        func(context.Context, *ps.CreateDatabaseRequest) (*ps.Database, error)
	CreateFnInvoked bool

	GetFn        func(context.Context, *ps.GetDatabaseRequest) (*ps.Database, error)
	GetFnInvoked bool

	ListFn        func(context.Context, *ps.ListDatabasesRequest) ([]*ps.Database, error)
	ListFnInvoked bool

	DeleteFn        func(context.Context, *ps.DeleteDatabaseRequest) (*ps.DatabaseDeletionRequest, error)
	DeleteFnInvoked bool
}

func (*DatabaseService) Create

func (*DatabaseService) Delete

func (*DatabaseService) Get

func (*DatabaseService) List

type DeployRequestsService added in v0.16.1

type DeployRequestsService struct {
	CancelFn        func(context.Context, *ps.CancelDeployRequestRequest) (*ps.DeployRequest, error)
	CancelFnInvoked bool

	CloseFn        func(context.Context, *ps.CloseDeployRequestRequest) (*ps.DeployRequest, error)
	CloseFnInvoked bool

	CreateFn        func(context.Context, *ps.CreateDeployRequestRequest) (*ps.DeployRequest, error)
	CreateFnInvoked bool

	CreateReviewFn        func(context.Context, *ps.ReviewDeployRequestRequest) (*ps.DeployRequestReview, error)
	CreateReviewFnInvoked bool

	DeployFn        func(context.Context, *ps.PerformDeployRequest) (*ps.DeployRequest, error)
	DeployFnInvoked bool

	DiffFn        func(context.Context, *ps.DiffRequest) ([]*ps.Diff, error)
	DiffFnInvoked bool

	GetFn        func(context.Context, *ps.GetDeployRequestRequest) (*ps.DeployRequest, error)
	GetFnInvoked bool

	ListFn        func(context.Context, *ps.ListDeployRequestsRequest) ([]*ps.DeployRequest, error)
	ListFnInvoked bool

	RevertDeployFn        func(context.Context, *ps.RevertDeployRequestRequest) (*ps.DeployRequest, error)
	RevertDeployFnInvoked bool

	SkipRevertDeployFn        func(context.Context, *ps.SkipRevertDeployRequestRequest) (*ps.DeployRequest, error)
	SkipRevertDeployFnInvoked bool
}

func (*DeployRequestsService) CancelDeploy added in v0.16.1

func (*DeployRequestsService) CloseDeploy added in v0.16.1

func (*DeployRequestsService) Create added in v0.16.1

func (*DeployRequestsService) CreateReview added in v0.16.1

func (*DeployRequestsService) Deploy added in v0.16.1

func (*DeployRequestsService) Diff added in v0.16.1

func (d *DeployRequestsService) Diff(ctx context.Context, req *ps.DiffRequest) ([]*ps.Diff, error)

func (*DeployRequestsService) Get added in v0.16.1

func (*DeployRequestsService) List added in v0.16.1

func (*DeployRequestsService) RevertDeploy added in v0.101.0

func (*DeployRequestsService) SkipRevertDeploy added in v0.101.0

type OrganizationsService added in v0.19.0

type OrganizationsService struct {
	GetFn        func(context.Context, *ps.GetOrganizationRequest) (*ps.Organization, error)
	GetFnInvoked bool

	ListFn        func(context.Context) ([]*ps.Organization, error)
	ListFnInvoked bool

	ListRegionsFn        func(context.Context, *ps.ListOrganizationRegionsRequest) ([]*ps.Region, error)
	ListRegionsFnInvoked bool
}

func (*OrganizationsService) Get added in v0.19.0

func (*OrganizationsService) List added in v0.19.0

func (*OrganizationsService) ListRegions added in v0.64.0

type PasswordsService added in v0.64.0

func (*PasswordsService) Create added in v0.64.0

func (*PasswordsService) Delete added in v0.64.0

func (*PasswordsService) Get added in v0.64.0

func (*PasswordsService) List added in v0.64.0

type ServiceTokenService added in v0.21.0

type ServiceTokenService struct {
	CreateFn        func(context.Context, *ps.CreateServiceTokenRequest) (*ps.ServiceToken, error)
	CreateFnInvoked bool

	ListFn        func(context.Context, *ps.ListServiceTokensRequest) ([]*ps.ServiceToken, error)
	ListFnInvoked bool

	DeleteFn        func(context.Context, *ps.DeleteServiceTokenRequest) error
	DeleteFnInvoked bool

	GetAccessFn        func(context.Context, *ps.GetServiceTokenAccessRequest) ([]*ps.ServiceTokenAccess, error)
	GetAccessFnInvoked bool

	AddAccessFn        func(context.Context, *ps.AddServiceTokenAccessRequest) ([]*ps.ServiceTokenAccess, error)
	AddAccessFnInvoked bool

	DeleteAccessFn        func(context.Context, *ps.DeleteServiceTokenAccessRequest) error
	DeleteAccessFnInvoked bool
}

func (*ServiceTokenService) AddAccess added in v0.21.0

func (*ServiceTokenService) Create added in v0.21.0

func (*ServiceTokenService) Delete added in v0.21.0

func (*ServiceTokenService) DeleteAccess added in v0.21.0

func (*ServiceTokenService) GetAccess added in v0.21.0

func (*ServiceTokenService) List added in v0.21.0

Jump to

Keyboard shortcuts

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