clients

package
v0.0.0-...-6e34d32 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationDeploymentServiceClient

type ApplicationDeploymentServiceClient struct {
	PBCli evapb.ApplicationDeploymentServiceClient
}

ApplicationDeploymentServiceClient wraps the PB client.

func NewApplicationDeploymentServiceClient

func NewApplicationDeploymentServiceClient(
	conn *grpc.ClientConn,
) *ApplicationDeploymentServiceClient

NewApplicationDeploymentServiceClient creates a new client.

func (*ApplicationDeploymentServiceClient) Deploy

Deploy deploys an application. Depending on the type of the application, either DeployContainer or DeployVM is called on the gRPC service.

func (*ApplicationDeploymentServiceClient) Redeploy

func (c *ApplicationDeploymentServiceClient) Redeploy(
	ctx context.Context,
	app *cce.App,
) error

Redeploy redeploys an application.

func (*ApplicationDeploymentServiceClient) Undeploy

Undeploy undeploys an application.

type ApplicationLifecycleServiceClient

type ApplicationLifecycleServiceClient struct {
	PBCli evapb.ApplicationLifecycleServiceClient
}

ApplicationLifecycleServiceClient wraps the PB client.

func NewApplicationLifecycleServiceClient

func NewApplicationLifecycleServiceClient(
	conn *grpc.ClientConn,
) *ApplicationLifecycleServiceClient

NewApplicationLifecycleServiceClient creates a new client.

func (*ApplicationLifecycleServiceClient) GetStatus

GetStatus retrieves an application's status.

func (*ApplicationLifecycleServiceClient) Restart

Restart restarts a running application.

func (*ApplicationLifecycleServiceClient) Start

Start starts a stopped application.

func (*ApplicationLifecycleServiceClient) Stop

Stop stops a running application.

type ApplicationPolicyServiceClient

type ApplicationPolicyServiceClient struct {
	PBCli elapb.ApplicationPolicyServiceClient
}

ApplicationPolicyServiceClient wraps the PB client.

func NewApplicationPolicyServiceClient

func NewApplicationPolicyServiceClient(
	conn *grpc.ClientConn,
) *ApplicationPolicyServiceClient

NewApplicationPolicyServiceClient creates a new client.

func (*ApplicationPolicyServiceClient) Delete

func (c *ApplicationPolicyServiceClient) Delete(
	ctx context.Context,
	appID string,
) error

Delete deletes an app's traffic policy. This resets it to the default policy.

func (*ApplicationPolicyServiceClient) Set

Set sets an app's traffic policy.

type DNSServiceClient

type DNSServiceClient struct {
	PBCli elapb.DNSServiceClient
}

DNSServiceClient wraps the PB client.

func NewDNSServiceClient

func NewDNSServiceClient(conn *grpc.ClientConn) *DNSServiceClient

NewDNSServiceClient creates a new client.

func (*DNSServiceClient) DeleteA

func (c *DNSServiceClient) DeleteA(
	ctx context.Context,
	record *cce.DNSARecord,
) error

DeleteA deletes a DNS A record.

func (*DNSServiceClient) DeleteForwarders

func (c *DNSServiceClient) DeleteForwarders(
	ctx context.Context,
	forwarders []*cce.DNSForwarder,
) error

DeleteForwarders sets DNS forwarders.

func (*DNSServiceClient) SetA

func (c *DNSServiceClient) SetA(
	ctx context.Context,
	record *cce.DNSARecord,
) error

SetA sets a DNS A record.

func (*DNSServiceClient) SetForwarders

func (c *DNSServiceClient) SetForwarders(
	ctx context.Context,
	forwarders []*cce.DNSForwarder,
) error

SetForwarders sets DNS forwarders.

type InterfacePolicyServiceClient

type InterfacePolicyServiceClient struct {
	PBCli elapb.InterfacePolicyServiceClient
}

InterfacePolicyServiceClient wraps the PB client.

func NewInterfacePolicyServiceClient

func NewInterfacePolicyServiceClient(
	conn *grpc.ClientConn,
) *InterfacePolicyServiceClient

NewInterfacePolicyServiceClient creates a new client.

func (*InterfacePolicyServiceClient) Delete

func (c *InterfacePolicyServiceClient) Delete(
	ctx context.Context,
	appID string,
) error

Delete deletes an interface's traffic policy. This resets it to the default policy.

func (*InterfacePolicyServiceClient) Set

func (c *InterfacePolicyServiceClient) Set(
	ctx context.Context,
	interfaceID string,
	interfacePolicy *cce.TrafficPolicy,
) error

Set sets the traffic policy.

type InterfaceServiceClient

type InterfaceServiceClient struct {
	PBCli elapb.InterfaceServiceClient
}

InterfaceServiceClient wraps the PB client.

func NewInterfaceServiceClient

func NewInterfaceServiceClient(conn *grpc.ClientConn) *InterfaceServiceClient

NewInterfaceServiceClient creates a new client.

func (*InterfaceServiceClient) BulkUpdate

func (c *InterfaceServiceClient) BulkUpdate(
	ctx context.Context,
	nis []*cce.NetworkInterface,
) error

BulkUpdate updates multiple network interfaces.

func (*InterfaceServiceClient) Get

Get retrieves a network interface.

func (*InterfaceServiceClient) GetAll

GetAll retrieves all network interfaces.

func (*InterfaceServiceClient) Update

Update updates a network interface.

type ZoneServiceClient

type ZoneServiceClient struct {
	PBCli elapb.ZoneServiceClient
}

ZoneServiceClient wraps the PB client.

func NewZoneServiceClient

func NewZoneServiceClient(conn *grpc.ClientConn) *ZoneServiceClient

NewZoneServiceClient creates a new client.

func (*ZoneServiceClient) BulkUpdate

func (c *ZoneServiceClient) BulkUpdate(
	ctx context.Context,
	nis *elapb.NetworkZones,
) error

BulkUpdate updates multiple network zones.

func (*ZoneServiceClient) Create

func (c *ZoneServiceClient) Create(
	ctx context.Context,
	zone *elapb.NetworkZone,
) error

Create creates a network zone.

func (*ZoneServiceClient) Delete

func (c *ZoneServiceClient) Delete(
	ctx context.Context,
	id string,
) error

Delete delets a network zone.

func (*ZoneServiceClient) Get

Get retrieves a network zone.

func (*ZoneServiceClient) GetAll

func (c *ZoneServiceClient) GetAll(
	ctx context.Context,
) (*elapb.NetworkZones, error)

GetAll retrieves all network zones.

func (*ZoneServiceClient) Update

func (c *ZoneServiceClient) Update(
	ctx context.Context,
	ni *elapb.NetworkZone,
) error

Update updates a network zone.

Jump to

Keyboard shortcuts

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