Documentation ¶
Index ¶
- type ApplicationDeploymentServiceClient
- type ApplicationLifecycleServiceClient
- func (c *ApplicationLifecycleServiceClient) GetStatus(ctx context.Context, id string) (cce.LifecycleStatus, error)
- func (c *ApplicationLifecycleServiceClient) Restart(ctx context.Context, id string) error
- func (c *ApplicationLifecycleServiceClient) Start(ctx context.Context, id string) error
- func (c *ApplicationLifecycleServiceClient) Stop(ctx context.Context, id string) error
- type ApplicationPolicyServiceClient
- type DNSServiceClient
- func (c *DNSServiceClient) DeleteA(ctx context.Context, record *cce.DNSARecord) error
- func (c *DNSServiceClient) DeleteForwarders(ctx context.Context, forwarders []*cce.DNSForwarder) error
- func (c *DNSServiceClient) SetA(ctx context.Context, record *cce.DNSARecord) error
- func (c *DNSServiceClient) SetForwarders(ctx context.Context, forwarders []*cce.DNSForwarder) error
- type InterfacePolicyServiceClient
- type InterfaceServiceClient
- func (c *InterfaceServiceClient) BulkUpdate(ctx context.Context, nis []*cce.NetworkInterface) error
- func (c *InterfaceServiceClient) Get(ctx context.Context, id string) (*cce.NetworkInterface, error)
- func (c *InterfaceServiceClient) GetAll(ctx context.Context) ([]*cce.NetworkInterface, error)
- func (c *InterfaceServiceClient) Update(ctx context.Context, ni *cce.NetworkInterface) error
- type ZoneServiceClient
- func (c *ZoneServiceClient) BulkUpdate(ctx context.Context, nis *elapb.NetworkZones) error
- func (c *ZoneServiceClient) Create(ctx context.Context, zone *elapb.NetworkZone) error
- func (c *ZoneServiceClient) Delete(ctx context.Context, id string) error
- func (c *ZoneServiceClient) Get(ctx context.Context, id string) (*elapb.NetworkZone, error)
- func (c *ZoneServiceClient) GetAll(ctx context.Context) (*elapb.NetworkZones, error)
- func (c *ZoneServiceClient) Update(ctx context.Context, ni *elapb.NetworkZone) error
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.
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 ¶
func (c *ApplicationLifecycleServiceClient) GetStatus( ctx context.Context, id string, ) (cce.LifecycleStatus, error)
GetStatus retrieves an application's status.
func (*ApplicationLifecycleServiceClient) Restart ¶
func (c *ApplicationLifecycleServiceClient) Restart( ctx context.Context, id string, ) error
Restart restarts 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 ¶
func (c *ApplicationPolicyServiceClient) Set( ctx context.Context, appID string, policy *cce.TrafficPolicy, ) error
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 ¶
func (c *InterfaceServiceClient) Get( ctx context.Context, id string, ) (*cce.NetworkInterface, error)
Get retrieves a network interface.
func (*InterfaceServiceClient) GetAll ¶
func (c *InterfaceServiceClient) GetAll( ctx context.Context, ) ([]*cce.NetworkInterface, error)
GetAll retrieves all network interfaces.
func (*InterfaceServiceClient) Update ¶
func (c *InterfaceServiceClient) Update( ctx context.Context, ni *cce.NetworkInterface, ) error
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 ¶
func (c *ZoneServiceClient) Get( ctx context.Context, id string, ) (*elapb.NetworkZone, error)
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.