gcp

package
v0.0.0-...-2faeebd Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2019 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FirewallsDeleteCall

type FirewallsDeleteCall interface {
	// Do executes the deletion call.
	Do(opts ...googleapi.CallOption) (*compute.Operation, error)
	// Context sets the context for the deletion call.
	Context(context.Context) FirewallsDeleteCall
}

FirewallsDeleteCall is a delete call to the firewalls service.

type FirewallsListCall

type FirewallsListCall interface {
	// Pages runs the given function on the paginated result of listing the firewalls.
	Pages(context.Context, func(*compute.FirewallList) error) error
}

FirewallsListCall is a list call to the firewalls service.

type FirewallsService

type FirewallsService interface {
	// List initiates a FirewallsListCall.
	List(projectID string) FirewallsListCall
	// Delete initiates a FirewallsDeleteCall.
	Delete(projectID, firewall string) FirewallsDeleteCall
}

FirewallsService is the interface for the GCP firewalls service.

type Interface

type Interface interface {
	// Firewalls retrieves the GCP firewalls service.
	Firewalls() FirewallsService
	// Routes retrieves the GCP routes service.
	Routes() RoutesService
}

Interface is the interface for the GCP client.

func New

func New(compute *compute.Service) Interface

New creates a new client backed by the given compute service.

func NewFromServiceAccount

func NewFromServiceAccount(ctx context.Context, serviceAccount []byte) (Interface, error)

NewFromServiceAccount creates a new client from the given service account.

type RoutesDeleteCall

type RoutesDeleteCall interface {
	// Do executes the deletion call.
	Do(opts ...googleapi.CallOption) (*compute.Operation, error)
	// Context sets the context for the deletion call.
	Context(context.Context) RoutesDeleteCall
}

RoutesDeleteCall is a delete call to the routes service.

type RoutesListCall

type RoutesListCall interface {
	// Pages runs the given function on the paginated result of listing the routes.
	Pages(context.Context, func(*compute.RouteList) error) error
}

RoutesListCall is a list call to the routes service.

type RoutesService

type RoutesService interface {
	// List initiates a RoutesListCall.
	List(projectID string) RoutesListCall
	// Delete initiates a RoutesDeleteCall.
	Delete(projectID, route string) RoutesDeleteCall
}

RoutesService is the interface for the GCP routes service.

Jump to

Keyboard shortcuts

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