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

mock

package
v0.265.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 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.ListOption) ([]*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

	RoutingRulesFn        func(context.Context, *ps.BranchRoutingRulesRequest) (*ps.RoutingRules, error)
	RoutingRulesFnInvoked bool

	UpdateRoutingRulesFn        func(context.Context, *ps.UpdateBranchRoutingRulesRequest) (*ps.RoutingRules, error)
	UpdateRoutingRulesFnInvoked bool

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

	DemoteFn        func(context.Context, *ps.DemoteRequest) (*ps.DatabaseBranch, error)
	DemoteFnInvoked bool

	EnableSafeMigrationsFn        func(context.Context, *ps.EnableSafeMigrationsRequest) (*ps.DatabaseBranch, error)
	EnableSafeMigrationsFnInvoked bool

	DisableSafeMigrationsFn        func(context.Context, *ps.DisableSafeMigrationsRequest) (*ps.DatabaseBranch, error)
	DisableSafeMigrationsFnInvoked bool

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

	LintSchemaFn        func(context.Context, *ps.LintSchemaRequest) ([]*ps.SchemaLintError, error)
	LintSchemaFnInvoked bool

	ListClusterSKUsFn        func(context.Context, *ps.ListBranchClusterSKUsRequest, ...ps.ListOption) ([]*ps.ClusterSKU, error)
	ListClusterSKUsFnInvoked bool
}

func (*DatabaseBranchesService) Create added in v0.16.0

func (*DatabaseBranchesService) Delete added in v0.16.0

func (*DatabaseBranchesService) Demote added in v0.131.0

func (*DatabaseBranchesService) Diff added in v0.21.0

func (*DatabaseBranchesService) DisableSafeMigrations added in v0.132.0

func (*DatabaseBranchesService) EnableSafeMigrations added in v0.132.0

func (*DatabaseBranchesService) Get added in v0.16.0

func (*DatabaseBranchesService) LintSchema added in v0.134.0

func (*DatabaseBranchesService) List added in v0.16.0

func (*DatabaseBranchesService) ListClusterSKUs added in v0.224.0

func (*DatabaseBranchesService) Promote added in v0.64.0

func (*DatabaseBranchesService) RefreshSchema added in v0.28.0

func (*DatabaseBranchesService) RoutingRules added in v0.187.0

func (*DatabaseBranchesService) Schema added in v0.21.0

func (*DatabaseBranchesService) UpdateRoutingRules added in v0.187.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.ListOption) ([]*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

func (d *DatabaseService) List(ctx context.Context, req *ps.ListDatabasesRequest, opts ...ps.ListOption) ([]*ps.Database, error)

type DeployRequestsService added in v0.16.1

type DeployRequestsService struct {
	ApplyFn        func(context.Context, *ps.ApplyDeployRequestRequest) (*ps.DeployRequest, error)
	ApplyFnInvoked bool

	AutoApplyFn        func(context.Context, *ps.AutoApplyDeployRequestRequest) (*ps.DeployRequest, error)
	AutoApplyFnInvoked bool

	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

	AutoApplyDeployFn        func(context.Context, *ps.AutoApplyDeployRequestRequest) (*ps.DeployRequest, error)
	AutoApplyDeployFnInvoked bool

	GetDeployOperationsFn        func(context.Context, *ps.GetDeployOperationsRequest) ([]*ps.DeployOperation, error)
	GetDeployOperationsFnInvoked bool
}

func (*DeployRequestsService) ApplyDeploy added in v0.116.0

func (*DeployRequestsService) AutoApplyDeploy added in v0.116.0

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) GetDeployOperations added in v0.217.0

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 KeyspacesService added in v0.213.0

type KeyspacesService struct {
	ListFn        func(context.Context, *ps.ListKeyspacesRequest) ([]*ps.Keyspace, error)
	ListFnInvoked bool

	GetFn        func(context.Context, *ps.GetKeyspaceRequest) (*ps.Keyspace, error)
	GetFnInvoked bool

	VSchemaFn        func(context.Context, *ps.GetKeyspaceVSchemaRequest) (*ps.VSchema, error)
	VSchemaFnInvoked bool

	UpdateVSchemaFn        func(context.Context, *ps.UpdateKeyspaceVSchemaRequest) (*ps.VSchema, error)
	UpdateVSchemaFnInvoked bool

	CreateFn        func(context.Context, *ps.CreateKeyspaceRequest) (*ps.Keyspace, error)
	CreateFnInvoked bool

	ResizeFn        func(context.Context, *ps.ResizeKeyspaceRequest) (*ps.KeyspaceResizeRequest, error)
	ResizeFnInvoked bool

	CancelResizeFn        func(context.Context, *ps.CancelKeyspaceResizeRequest) error
	CancelResizeFnInvoked bool

	ResizeStatusFn        func(context.Context, *ps.KeyspaceResizeStatusRequest) (*ps.KeyspaceResizeRequest, error)
	ResizeStatusFnInvoked bool

	RolloutStatusFn        func(context.Context, *ps.KeyspaceRolloutStatusRequest) (*ps.KeyspaceRollout, error)
	RolloutStatusFnInvoked bool

	UpdateSettingsFn        func(context.Context, *ps.UpdateKeyspaceSettingsRequest) (*ps.Keyspace, error)
	UpdateSettingsFnInvoked bool
}

func (*KeyspacesService) CancelResize added in v0.213.0

func (*KeyspacesService) Create added in v0.213.0

func (*KeyspacesService) Get added in v0.213.0

func (*KeyspacesService) List added in v0.213.0

func (*KeyspacesService) Resize added in v0.213.0

func (*KeyspacesService) ResizeStatus added in v0.213.0

func (*KeyspacesService) RolloutStatus added in v0.221.0

func (*KeyspacesService) UpdateSettings added in v0.234.0

func (*KeyspacesService) UpdateVSchema added in v0.213.0

func (*KeyspacesService) VSchema added in v0.213.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

	ListClusterSKUsFn        func(context.Context, *ps.ListOrganizationClusterSKUsRequest, ...ps.ListOption) ([]*ps.ClusterSKU, error)
	ListClusterSKUsFnInvoked bool
}

func (*OrganizationsService) Get added in v0.19.0

func (*OrganizationsService) List added in v0.19.0

func (*OrganizationsService) ListClusterSKUs added in v0.224.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

func (*PasswordsService) Renew added in v0.179.0

type PostgresBranchesService added in v0.247.0

type PostgresBranchesService struct {
	CreateFn        func(context.Context, *ps.CreatePostgresBranchRequest) (*ps.PostgresBranch, error)
	CreateFnInvoked bool

	ListFn        func(context.Context, *ps.ListPostgresBranchesRequest, ...ps.ListOption) ([]*ps.PostgresBranch, error)
	ListFnInvoked bool

	GetFn        func(context.Context, *ps.GetPostgresBranchRequest) (*ps.PostgresBranch, error)
	GetFnInvoked bool

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

	SchemaFn        func(context.Context, *ps.PostgresBranchSchemaRequest) ([]*ps.PostgresBranchSchema, error)
	SchemaFnInvoked bool

	ListClusterSKUsFn        func(context.Context, *ps.ListBranchClusterSKUsRequest, ...ps.ListOption) ([]*ps.ClusterSKU, error)
	ListClusterSKUsFnInvoked bool
}

func (*PostgresBranchesService) Create added in v0.247.0

func (*PostgresBranchesService) Delete added in v0.247.0

func (*PostgresBranchesService) Get added in v0.247.0

func (*PostgresBranchesService) List added in v0.247.0

func (*PostgresBranchesService) ListClusterSKUs added in v0.247.0

func (*PostgresBranchesService) Schema added in v0.247.0

type PostgresRolesService added in v0.248.0

type PostgresRolesService struct {
	ListFn                    func(context.Context, *ps.ListPostgresRolesRequest, ...ps.ListOption) ([]*ps.PostgresRole, error)
	ListFnInvoked             bool
	GetFn                     func(context.Context, *ps.GetPostgresRoleRequest) (*ps.PostgresRole, error)
	GetFnInvoked              bool
	CreateFn                  func(context.Context, *ps.CreatePostgresRoleRequest) (*ps.PostgresRole, error)
	CreateFnInvoked           bool
	UpdateFn                  func(context.Context, *ps.UpdatePostgresRoleRequest) (*ps.PostgresRole, error)
	UpdateFnInvoked           bool
	RenewFn                   func(context.Context, *ps.RenewPostgresRoleRequest) (*ps.PostgresRole, error)
	RenewFnInvoked            bool
	DeleteFn                  func(context.Context, *ps.DeletePostgresRoleRequest) error
	DeleteFnInvoked           bool
	ResetDefaultRoleFn        func(context.Context, *ps.ResetDefaultRoleRequest) (*ps.PostgresRole, error)
	ResetDefaultRoleFnInvoked bool
	ResetPasswordFn           func(context.Context, *ps.ResetPostgresRolePasswordRequest) (*ps.PostgresRole, error)
	ResetPasswordFnInvoked    bool
	ReassignObjectsFn         func(context.Context, *ps.ReassignPostgresRoleObjectsRequest) error
	ReassignObjectsFnInvoked  bool
}

func (*PostgresRolesService) Create added in v0.251.0

func (*PostgresRolesService) Delete added in v0.251.0

func (*PostgresRolesService) Get added in v0.251.0

func (*PostgresRolesService) List added in v0.251.0

func (*PostgresRolesService) ReassignObjects added in v0.261.0

func (*PostgresRolesService) Renew added in v0.251.0

func (*PostgresRolesService) ResetDefaultRole added in v0.248.0

func (*PostgresRolesService) ResetPassword added in v0.261.0

func (*PostgresRolesService) Update added in v0.251.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

	ListGrantsFn        func(context.Context, *ps.ListServiceTokenGrantsRequest) ([]*ps.ServiceTokenGrant, error)
	ListGrantsFnInvoked 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

func (*ServiceTokenService) ListGrants added in v0.124.0

type WebhooksService added in v0.264.0

type WebhooksService struct {
	ListFn        func(context.Context, *ps.ListWebhooksRequest, ...ps.ListOption) ([]*ps.Webhook, error)
	ListFnInvoked bool

	CreateFn        func(context.Context, *ps.CreateWebhookRequest) (*ps.Webhook, error)
	CreateFnInvoked bool

	GetFn        func(context.Context, *ps.GetWebhookRequest) (*ps.Webhook, error)
	GetFnInvoked bool

	UpdateFn        func(context.Context, *ps.UpdateWebhookRequest) (*ps.Webhook, error)
	UpdateFnInvoked bool

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

	TestFn        func(context.Context, *ps.TestWebhookRequest) error
	TestFnInvoked bool
}

func (*WebhooksService) Create added in v0.264.0

func (*WebhooksService) Delete added in v0.264.0

func (*WebhooksService) Get added in v0.264.0

func (*WebhooksService) List added in v0.264.0

func (w *WebhooksService) List(ctx context.Context, req *ps.ListWebhooksRequest, opts ...ps.ListOption) ([]*ps.Webhook, error)

func (*WebhooksService) Test added in v0.264.0

func (*WebhooksService) Update added in v0.264.0

type WorkflowsService added in v0.231.0

type WorkflowsService struct {
	ListFn        func(context.Context, *ps.ListWorkflowsRequest) ([]*ps.Workflow, error)
	ListFnInvoked bool

	GetFn        func(context.Context, *ps.GetWorkflowRequest) (*ps.Workflow, error)
	GetFnInvoked bool

	CreateFn        func(context.Context, *ps.CreateWorkflowRequest) (*ps.Workflow, error)
	CreateFnInvoked bool

	CancelFn        func(context.Context, *ps.CancelWorkflowRequest) (*ps.Workflow, error)
	CancelFnInvoked bool

	CompleteFn        func(context.Context, *ps.CompleteWorkflowRequest) (*ps.Workflow, error)
	CompleteFnInvoked bool

	CutoverFn        func(context.Context, *ps.CutoverWorkflowRequest) (*ps.Workflow, error)
	CutoverFnInvoked bool

	RetryFn        func(context.Context, *ps.RetryWorkflowRequest) (*ps.Workflow, error)
	RetryFnInvoked bool

	ReverseCutoverFn        func(context.Context, *ps.ReverseCutoverWorkflowRequest) (*ps.Workflow, error)
	ReverseCutoverFnInvoked bool

	ReverseTrafficFn        func(context.Context, *ps.ReverseTrafficWorkflowRequest) (*ps.Workflow, error)
	ReverseTrafficFnInvoked bool

	SwitchPrimariesFn        func(context.Context, *ps.SwitchPrimariesWorkflowRequest) (*ps.Workflow, error)
	SwitchPrimariesFnInvoked bool

	SwitchReplicasFn        func(context.Context, *ps.SwitchReplicasWorkflowRequest) (*ps.Workflow, error)
	SwitchReplicasFnInvoked bool

	VerifyDataFn        func(context.Context, *ps.VerifyDataWorkflowRequest) (*ps.Workflow, error)
	VerifyDataFnInvoked bool
}

func (*WorkflowsService) Cancel added in v0.232.0

func (*WorkflowsService) Complete added in v0.232.0

func (*WorkflowsService) Create added in v0.232.0

func (*WorkflowsService) Cutover added in v0.232.0

func (*WorkflowsService) Get added in v0.231.0

func (*WorkflowsService) List added in v0.231.0

func (*WorkflowsService) Retry added in v0.232.0

func (*WorkflowsService) ReverseCutover added in v0.232.0

func (*WorkflowsService) ReverseTraffic added in v0.232.0

func (*WorkflowsService) SwitchPrimaries added in v0.232.0

func (*WorkflowsService) SwitchReplicas added in v0.232.0

func (*WorkflowsService) VerifyData added in v0.232.0

Jump to

Keyboard shortcuts

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