Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewComputeClient ¶
func NewComputeClient() client.ClientProvider[ComputeClient]
func NewServiceNetworkingClient ¶
func NewServiceNetworkingClient() client.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) }
func NewComputeClientForService ¶
func NewComputeClientForService(svcCompute *compute.Service) ComputeClient
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, projectId, vpcId string) (*servicenetworking.Operation, error) PatchServiceConnection(ctx context.Context, projectId, vpcId string, reservedIpRanges []string) (*servicenetworking.Operation, error) GetServiceNetworkingOperation(ctx context.Context, operationName string) (*servicenetworking.Operation, error) }
func NewServiceNetworkingClientForService ¶
func NewServiceNetworkingClientForService(svcNet *servicenetworking.APIService, crmService *cloudresourcemanager.Service) ServiceNetworkingClient
Click to show internal directories.
Click to hide internal directories.