Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewComputeClient ¶
func NewComputeClient() gcpclient.ClientProvider[ComputeClient]
func NewServiceNetworkingClient ¶
func NewServiceNetworkingClient() gcpclient.ClientProvider[ServiceNetworkingClient]
Types ¶
type ComputeClient ¶
type ComputeClient interface { ListGlobalAddresses(ctx context.Context, projectId, vpc string) (*compute.AddressList, error) CreatePscIpRange(ctx context.Context, projectId, vpcName, name, description, address string, prefixLength int64) (*compute.Operation, error) DeleteIpRange(ctx context.Context, projectId, name string) (*compute.Operation, error) GetIpRange(ctx context.Context, projectId, name string) (*compute.Address, error) GetGlobalOperation(ctx context.Context, projectId, operationName string) (*compute.Operation, error) }
type ServiceNetworkingClient ¶
type ServiceNetworkingClient interface { ListServiceConnections(ctx context.Context, projectId, vpcId string) ([]*servicenetworking.Connection, error) CreateServiceConnection(ctx context.Context, projectId, vpcId string, reservedIpRanges []string) (*servicenetworking.Operation, error) // DeleteServiceConnection: Deletes a private service access connection. // projectNumber: Project number which is different from project id. Get it by calling client.GetProjectNumber(ctx, projectId) DeleteServiceConnection(ctx context.Context, projectNumber int64, vpcId string) (*servicenetworking.Operation, error) PatchServiceConnection(ctx context.Context, projectId, vpcId string, reservedIpRanges []string) (*servicenetworking.Operation, error) GetOperation(ctx context.Context, operationName string) (*servicenetworking.Operation, error) }
Click to show internal directories.
Click to hide internal directories.