leftovers: github.com/genevievelesperance/leftovers/acceptance Index | Files

package acceptance

import "github.com/genevievelesperance/leftovers/acceptance"

Index

Package Files

aws.go azure.go gcp.go nsxt.go openstack.go vsphere.go

type AWSAcceptance Uses

type AWSAcceptance struct {
    AccessKeyId     string
    SecretAccessKey string
    SessionToken    string
    Region          string
    Logger          *app.Logger
}

func NewAWSAcceptance Uses

func NewAWSAcceptance() AWSAcceptance

func (AWSAcceptance) CreateKeyPair Uses

func (a AWSAcceptance) CreateKeyPair(name string)

type AzureAcceptance Uses

type AzureAcceptance struct {
    SubscriptionId string
    TenantId       string
    ClientId       string
    ClientSecret   string
    Logger         *app.Logger
}

func NewAzureAcceptance Uses

func NewAzureAcceptance() AzureAcceptance

func (AzureAcceptance) CreateResourceGroup Uses

func (a AzureAcceptance) CreateResourceGroup(name string)

type GCPAcceptance Uses

type GCPAcceptance struct {
    Key       []byte
    KeyPath   string
    ProjectId string
    Zone      string
    Region    string
    Logger    *app.Logger
}

func NewGCPAcceptance Uses

func NewGCPAcceptance() GCPAcceptance

func (GCPAcceptance) InsertCloudRouter Uses

func (g GCPAcceptance) InsertCloudRouter(name string)

func (GCPAcceptance) InsertDisk Uses

func (g GCPAcceptance) InsertDisk(name string)

type NSXTAcceptance Uses

type NSXTAcceptance struct {
    ManagerHost string
    User        string
    Password    string
    EdgeCluster string
    NSXTClient  *nsxt.APIClient
    Logger      *app.Logger
}

func NewNSXTAcceptance Uses

func NewNSXTAcceptance() NSXTAcceptance

func (*NSXTAcceptance) CreateT1Router Uses

func (n *NSXTAcceptance) CreateT1Router(name string) manager.LogicalRouter

func (*NSXTAcceptance) GetEdgeClusterID Uses

func (n *NSXTAcceptance) GetEdgeClusterID(name string) string

adapted from the nsxt terraform provider's edge cluster data source read method

type OpenStackAcceptance Uses

type OpenStackAcceptance struct {
    Logger     *app.Logger
    AuthURL    string
    Domain     string
    Username   string
    Password   string
    Region     string
    TenantName string
    // contains filtered or unexported fields
}

func NewOpenStackAcceptance Uses

func NewOpenStackAcceptance() OpenStackAcceptance

func (OpenStackAcceptance) ComputeInstanceExists Uses

func (o OpenStackAcceptance) ComputeInstanceExists(instanceID string) bool

func (*OpenStackAcceptance) CreateComputeInstance Uses

func (o *OpenStackAcceptance) CreateComputeInstance(name string) string

func (*OpenStackAcceptance) CreateImage Uses

func (o *OpenStackAcceptance) CreateImage(name string) string

func (OpenStackAcceptance) CreateVolume Uses

func (o OpenStackAcceptance) CreateVolume(name string) string

func (OpenStackAcceptance) DeleteImage Uses

func (o OpenStackAcceptance) DeleteImage(imageID string)

func (OpenStackAcceptance) DeleteInstance Uses

func (o OpenStackAcceptance) DeleteInstance(instanceID string)

func (OpenStackAcceptance) DeleteVolume Uses

func (o OpenStackAcceptance) DeleteVolume(volumeID string)

func (OpenStackAcceptance) GetImage Uses

func (o OpenStackAcceptance) GetImage(imageID string) (images.Image, error)

func (OpenStackAcceptance) GetVolume Uses

func (o OpenStackAcceptance) GetVolume(volumeID string) (volumes.Volume, error)

func (OpenStackAcceptance) ImageExists Uses

func (o OpenStackAcceptance) ImageExists(imageID string) bool

func (OpenStackAcceptance) VolumeExists Uses

func (o OpenStackAcceptance) VolumeExists(volumeID string) bool

type VSphereAcceptance Uses

type VSphereAcceptance struct {
    Datacenter      string
    Datastore       string
    ResourcePool    string
    VCenterIP       string
    VCenterUser     string
    VCenterPassword string
    VCenterClient   *govmomi.Client
    Logger          *app.Logger
}

func NewVSphereAcceptance Uses

func NewVSphereAcceptance() VSphereAcceptance

func (*VSphereAcceptance) CreateFolder Uses

func (v *VSphereAcceptance) CreateFolder(root, name string) *object.Folder

func (*VSphereAcceptance) CreateVM Uses

func (v *VSphereAcceptance) CreateVM(folder *object.Folder, name string)

func (*VSphereAcceptance) FindFolder Uses

func (v *VSphereAcceptance) FindFolder(folder string) *object.Folder

Package acceptance imports 36 packages (graph). Updated 2019-11-17. Refresh now. Tools for package owners.