executors

package
v0.0.0-...-ae2eec7 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aws

type Aws struct {
	*core.Executor
}

Aws encapsulates all AWS cloud calls

func (Aws) LoadBalancerDelete

func (a Aws) LoadBalancerDelete(ctx context.Context, loadBalancer core.LoadBalancer) error

LoadBalancerDelete delete the load balancer

func (Aws) LoadBalancersGet

func (a Aws) LoadBalancersGet(ctx context.Context, flagMock bool) ([]core.LoadBalancer, error)

LoadBalancersGet return all load balancers in account

func (Aws) ServerDelete

func (a Aws) ServerDelete(ctx context.Context, server core.Server) error

ServerDelete remove the specified server

func (Aws) ServersGet

func (a Aws) ServersGet(ctx context.Context, vendorIDs []string, regions []string) ([]core.Server, error)

ServersGet return all servers in account

type DigitalOcean

type DigitalOcean struct {
	*core.Executor
}

DigitalOcean encapsulates all DO cloud calls

func (DigitalOcean) ServerDelete

func (d DigitalOcean) ServerDelete(ctx context.Context, server core.Server) error

ServerDelete remove the specified server

func (DigitalOcean) ServersGet

func (d DigitalOcean) ServersGet(ctx context.Context, vendorIDs []string, regions []string) ([]core.Server, error)

ServersGet returns collection of Server objects

func (DigitalOcean) SshKeyDelete

func (d DigitalOcean) SshKeyDelete(ctx context.Context, sshKey core.SshKey) error

SshKeyDelete deletes an SSH key

func (DigitalOcean) SshKeysGet

func (d DigitalOcean) SshKeysGet(ctx context.Context) ([]core.SshKey, error)

SshKeysGet gets SSH keys

type TokenSource

type TokenSource struct {
	AccessToken string
}

TokenSource provides token transport for auth

func (*TokenSource) Token

func (t *TokenSource) Token() (*oauth2.Token, error)

Token retrieves the oauth token

Jump to

Keyboard shortcuts

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