Documentation ¶
Index ¶
- func PtrTo[T any](t T) *T
- type DisksV1
- func (s *DisksV1) Delete(ctx context.Context, req *pb.DeleteDiskRequest) (*pb.Operation, error)
- func (s *DisksV1) Get(ctx context.Context, req *pb.GetDiskRequest) (*pb.Disk, error)
- func (s *DisksV1) Insert(ctx context.Context, req *pb.InsertDiskRequest) (*pb.Operation, error)
- func (s *DisksV1) Update(ctx context.Context, req *pb.UpdateDiskRequest) (*pb.Operation, error)
- type GlobalAddressesV1
- func (s *GlobalAddressesV1) Delete(ctx context.Context, req *pb.DeleteGlobalAddressRequest) (*pb.Operation, error)
- func (s *GlobalAddressesV1) Get(ctx context.Context, req *pb.GetGlobalAddressRequest) (*pb.Address, error)
- func (s *GlobalAddressesV1) Insert(ctx context.Context, req *pb.InsertGlobalAddressRequest) (*pb.Operation, error)
- func (s *GlobalAddressesV1) SetLabels(ctx context.Context, req *pb.SetLabelsGlobalAddressRequest) (*pb.Operation, error)
- type GlobalHealthCheckV1
- func (s *GlobalHealthCheckV1) Delete(ctx context.Context, req *pb.DeleteHealthCheckRequest) (*pb.Operation, error)
- func (s *GlobalHealthCheckV1) Get(ctx context.Context, req *pb.GetHealthCheckRequest) (*pb.HealthCheck, error)
- func (s *GlobalHealthCheckV1) Insert(ctx context.Context, req *pb.InsertHealthCheckRequest) (*pb.Operation, error)
- func (s *GlobalHealthCheckV1) Patch(ctx context.Context, req *pb.PatchHealthCheckRequest) (*pb.Operation, error)
- func (s *GlobalHealthCheckV1) Update(ctx context.Context, req *pb.UpdateHealthCheckRequest) (*pb.Operation, error)
- type GlobalOperationsV1
- type MockService
- type NetworksV1
- func (s *NetworksV1) Delete(ctx context.Context, req *pb.DeleteNetworkRequest) (*pb.Operation, error)
- func (s *NetworksV1) Get(ctx context.Context, req *pb.GetNetworkRequest) (*pb.Network, error)
- func (s *NetworksV1) Insert(ctx context.Context, req *pb.InsertNetworkRequest) (*pb.Operation, error)
- func (s *NetworksV1) Patch(ctx context.Context, req *pb.PatchNetworkRequest) (*pb.Operation, error)
- type NodeGroupsV1
- func (s *NodeGroupsV1) Delete(ctx context.Context, req *pb.DeleteNodeGroupRequest) (*pb.Operation, error)
- func (s *NodeGroupsV1) Get(ctx context.Context, req *pb.GetNodeGroupRequest) (*pb.NodeGroup, error)
- func (s *NodeGroupsV1) Insert(ctx context.Context, req *pb.InsertNodeGroupRequest) (*pb.Operation, error)
- func (s *NodeGroupsV1) Patch(ctx context.Context, req *pb.PatchNodeGroupRequest) (*pb.Operation, error)
- type NodeTemplatesV1
- func (s *NodeTemplatesV1) Delete(ctx context.Context, req *pb.DeleteNodeTemplateRequest) (*pb.Operation, error)
- func (s *NodeTemplatesV1) Get(ctx context.Context, req *pb.GetNodeTemplateRequest) (*pb.NodeTemplate, error)
- func (s *NodeTemplatesV1) Insert(ctx context.Context, req *pb.InsertNodeTemplateRequest) (*pb.Operation, error)
- type RegionalAddressesV1
- func (s *RegionalAddressesV1) Delete(ctx context.Context, req *pb.DeleteAddressRequest) (*pb.Operation, error)
- func (s *RegionalAddressesV1) Get(ctx context.Context, req *pb.GetAddressRequest) (*pb.Address, error)
- func (s *RegionalAddressesV1) Insert(ctx context.Context, req *pb.InsertAddressRequest) (*pb.Operation, error)
- func (s *RegionalAddressesV1) SetLabels(ctx context.Context, req *pb.SetLabelsAddressRequest) (*pb.Operation, error)
- type RegionalDisksV1
- func (s *RegionalDisksV1) Delete(ctx context.Context, req *pb.DeleteRegionDiskRequest) (*pb.Operation, error)
- func (s *RegionalDisksV1) Get(ctx context.Context, req *pb.GetRegionDiskRequest) (*pb.Disk, error)
- func (s *RegionalDisksV1) Insert(ctx context.Context, req *pb.InsertRegionDiskRequest) (*pb.Operation, error)
- func (s *RegionalDisksV1) Update(ctx context.Context, req *pb.UpdateRegionDiskRequest) (*pb.Operation, error)
- type RegionalHealthCheckV1
- func (s *RegionalHealthCheckV1) Delete(ctx context.Context, req *pb.DeleteRegionHealthCheckRequest) (*pb.Operation, error)
- func (s *RegionalHealthCheckV1) Get(ctx context.Context, req *pb.GetRegionHealthCheckRequest) (*pb.HealthCheck, error)
- func (s *RegionalHealthCheckV1) Insert(ctx context.Context, req *pb.InsertRegionHealthCheckRequest) (*pb.Operation, error)
- func (s *RegionalHealthCheckV1) Patch(ctx context.Context, req *pb.PatchRegionHealthCheckRequest) (*pb.Operation, error)
- func (s *RegionalHealthCheckV1) Update(ctx context.Context, req *pb.UpdateRegionHealthCheckRequest) (*pb.Operation, error)
- type RegionalOperationsV1
- type SubnetsV1
- func (s *SubnetsV1) Delete(ctx context.Context, req *pb.DeleteSubnetworkRequest) (*pb.Operation, error)
- func (s *SubnetsV1) Get(ctx context.Context, req *pb.GetSubnetworkRequest) (*pb.Subnetwork, error)
- func (s *SubnetsV1) Insert(ctx context.Context, req *pb.InsertSubnetworkRequest) (*pb.Operation, error)
- func (s *SubnetsV1) SetPrivateIpGoogleAccess(ctx context.Context, req *pb.SetPrivateIpGoogleAccessSubnetworkRequest) (*pb.Operation, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DisksV1 ¶
type DisksV1 struct { *MockService pb.UnimplementedDisksServer }
type GlobalAddressesV1 ¶
type GlobalAddressesV1 struct { *MockService pb.UnimplementedGlobalAddressesServer }
func (*GlobalAddressesV1) Delete ¶
func (s *GlobalAddressesV1) Delete(ctx context.Context, req *pb.DeleteGlobalAddressRequest) (*pb.Operation, error)
func (*GlobalAddressesV1) Get ¶
func (s *GlobalAddressesV1) Get(ctx context.Context, req *pb.GetGlobalAddressRequest) (*pb.Address, error)
func (*GlobalAddressesV1) Insert ¶
func (s *GlobalAddressesV1) Insert(ctx context.Context, req *pb.InsertGlobalAddressRequest) (*pb.Operation, error)
func (*GlobalAddressesV1) SetLabels ¶
func (s *GlobalAddressesV1) SetLabels(ctx context.Context, req *pb.SetLabelsGlobalAddressRequest) (*pb.Operation, error)
type GlobalHealthCheckV1 ¶
type GlobalHealthCheckV1 struct { *MockService pb.UnimplementedHealthChecksServer }
func (*GlobalHealthCheckV1) Delete ¶
func (s *GlobalHealthCheckV1) Delete(ctx context.Context, req *pb.DeleteHealthCheckRequest) (*pb.Operation, error)
func (*GlobalHealthCheckV1) Get ¶
func (s *GlobalHealthCheckV1) Get(ctx context.Context, req *pb.GetHealthCheckRequest) (*pb.HealthCheck, error)
func (*GlobalHealthCheckV1) Insert ¶
func (s *GlobalHealthCheckV1) Insert(ctx context.Context, req *pb.InsertHealthCheckRequest) (*pb.Operation, error)
func (*GlobalHealthCheckV1) Patch ¶
func (s *GlobalHealthCheckV1) Patch(ctx context.Context, req *pb.PatchHealthCheckRequest) (*pb.Operation, error)
Updates a HealthCheck resource in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
func (*GlobalHealthCheckV1) Update ¶
func (s *GlobalHealthCheckV1) Update(ctx context.Context, req *pb.UpdateHealthCheckRequest) (*pb.Operation, error)
Updates a HealthCheck resource in the specified project using the data included in the request.
type GlobalOperationsV1 ¶
type GlobalOperationsV1 struct { *MockService pb.UnimplementedGlobalOperationsServer }
func (*GlobalOperationsV1) Get ¶
func (s *GlobalOperationsV1) Get(ctx context.Context, req *pb.GetGlobalOperationRequest) (*pb.Operation, error)
type MockService ¶
type MockService struct { *common.MockEnvironment // contains filtered or unexported fields }
MockService represents a mocked compute service.
func New ¶
func New(env *common.MockEnvironment, storage storage.Storage) *MockService
New creates a MockService.
func (*MockService) ExpectedHost ¶
func (s *MockService) ExpectedHost() string
func (*MockService) NewHTTPMux ¶
func (s *MockService) NewHTTPMux(ctx context.Context, conn *grpc.ClientConn) (http.Handler, error)
func (*MockService) Register ¶
func (s *MockService) Register(grpcServer *grpc.Server)
type NetworksV1 ¶
type NetworksV1 struct { *MockService pb.UnimplementedNetworksServer }
func (*NetworksV1) Delete ¶
func (s *NetworksV1) Delete(ctx context.Context, req *pb.DeleteNetworkRequest) (*pb.Operation, error)
func (*NetworksV1) Get ¶
func (s *NetworksV1) Get(ctx context.Context, req *pb.GetNetworkRequest) (*pb.Network, error)
func (*NetworksV1) Insert ¶
func (s *NetworksV1) Insert(ctx context.Context, req *pb.InsertNetworkRequest) (*pb.Operation, error)
func (*NetworksV1) Patch ¶
func (s *NetworksV1) Patch(ctx context.Context, req *pb.PatchNetworkRequest) (*pb.Operation, error)
Patches the specified network with the data included in the request. Only the following fields can be modified: routingConfig.routingMode.
type NodeGroupsV1 ¶
type NodeGroupsV1 struct { *MockService pb.UnimplementedNodeGroupsServer }
func (*NodeGroupsV1) Delete ¶
func (s *NodeGroupsV1) Delete(ctx context.Context, req *pb.DeleteNodeGroupRequest) (*pb.Operation, error)
func (*NodeGroupsV1) Get ¶
func (s *NodeGroupsV1) Get(ctx context.Context, req *pb.GetNodeGroupRequest) (*pb.NodeGroup, error)
func (*NodeGroupsV1) Insert ¶
func (s *NodeGroupsV1) Insert(ctx context.Context, req *pb.InsertNodeGroupRequest) (*pb.Operation, error)
func (*NodeGroupsV1) Patch ¶
func (s *NodeGroupsV1) Patch(ctx context.Context, req *pb.PatchNodeGroupRequest) (*pb.Operation, error)
type NodeTemplatesV1 ¶
type NodeTemplatesV1 struct { *MockService pb.UnimplementedNodeTemplatesServer }
func (*NodeTemplatesV1) Delete ¶
func (s *NodeTemplatesV1) Delete(ctx context.Context, req *pb.DeleteNodeTemplateRequest) (*pb.Operation, error)
func (*NodeTemplatesV1) Get ¶
func (s *NodeTemplatesV1) Get(ctx context.Context, req *pb.GetNodeTemplateRequest) (*pb.NodeTemplate, error)
func (*NodeTemplatesV1) Insert ¶
func (s *NodeTemplatesV1) Insert(ctx context.Context, req *pb.InsertNodeTemplateRequest) (*pb.Operation, error)
type RegionalAddressesV1 ¶
type RegionalAddressesV1 struct { *MockService pb.UnimplementedAddressesServer }
func (*RegionalAddressesV1) Delete ¶
func (s *RegionalAddressesV1) Delete(ctx context.Context, req *pb.DeleteAddressRequest) (*pb.Operation, error)
func (*RegionalAddressesV1) Get ¶
func (s *RegionalAddressesV1) Get(ctx context.Context, req *pb.GetAddressRequest) (*pb.Address, error)
func (*RegionalAddressesV1) Insert ¶
func (s *RegionalAddressesV1) Insert(ctx context.Context, req *pb.InsertAddressRequest) (*pb.Operation, error)
func (*RegionalAddressesV1) SetLabels ¶
func (s *RegionalAddressesV1) SetLabels(ctx context.Context, req *pb.SetLabelsAddressRequest) (*pb.Operation, error)
type RegionalDisksV1 ¶
type RegionalDisksV1 struct { *MockService pb.UnimplementedRegionDisksServer }
func (*RegionalDisksV1) Delete ¶
func (s *RegionalDisksV1) Delete(ctx context.Context, req *pb.DeleteRegionDiskRequest) (*pb.Operation, error)
func (*RegionalDisksV1) Get ¶
func (s *RegionalDisksV1) Get(ctx context.Context, req *pb.GetRegionDiskRequest) (*pb.Disk, error)
func (*RegionalDisksV1) Insert ¶
func (s *RegionalDisksV1) Insert(ctx context.Context, req *pb.InsertRegionDiskRequest) (*pb.Operation, error)
func (*RegionalDisksV1) Update ¶
func (s *RegionalDisksV1) Update(ctx context.Context, req *pb.UpdateRegionDiskRequest) (*pb.Operation, error)
Updates a disk resource in the specified project using the data included in the request.
type RegionalHealthCheckV1 ¶
type RegionalHealthCheckV1 struct { *MockService pb.UnimplementedRegionHealthChecksServer }
func (*RegionalHealthCheckV1) Delete ¶
func (s *RegionalHealthCheckV1) Delete(ctx context.Context, req *pb.DeleteRegionHealthCheckRequest) (*pb.Operation, error)
func (*RegionalHealthCheckV1) Get ¶
func (s *RegionalHealthCheckV1) Get(ctx context.Context, req *pb.GetRegionHealthCheckRequest) (*pb.HealthCheck, error)
func (*RegionalHealthCheckV1) Insert ¶
func (s *RegionalHealthCheckV1) Insert(ctx context.Context, req *pb.InsertRegionHealthCheckRequest) (*pb.Operation, error)
func (*RegionalHealthCheckV1) Patch ¶
func (s *RegionalHealthCheckV1) Patch(ctx context.Context, req *pb.PatchRegionHealthCheckRequest) (*pb.Operation, error)
Updates a HealthCheck resource in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
func (*RegionalHealthCheckV1) Update ¶
func (s *RegionalHealthCheckV1) Update(ctx context.Context, req *pb.UpdateRegionHealthCheckRequest) (*pb.Operation, error)
Updates a HealthCheck resource in the specified project using the data included in the request.
type RegionalOperationsV1 ¶
type RegionalOperationsV1 struct { *MockService pb.UnimplementedRegionOperationsServer }
func (*RegionalOperationsV1) Get ¶
func (s *RegionalOperationsV1) Get(ctx context.Context, req *pb.GetRegionOperationRequest) (*pb.Operation, error)
type SubnetsV1 ¶
type SubnetsV1 struct { *MockService pb.UnimplementedSubnetworksServer }
func (*SubnetsV1) Get ¶
func (s *SubnetsV1) Get(ctx context.Context, req *pb.GetSubnetworkRequest) (*pb.Subnetwork, error)