nimbus

package
v0.65.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(user string) Client

func (Client) CreateTestbed

func (c Client) CreateTestbed(name, jsonTestbedSpec, resultsDir string) error

for acceptance tests

func (Client) DeleteTestbed

func (c Client) DeleteTestbed(name string) error

func (Client) ListTestbeds

func (c Client) ListTestbeds() ([]Testbed, error)

type Leftovers

type Leftovers struct {
	// contains filtered or unexported fields
}

func NewLeftovers

func NewLeftovers(logger logger, nimbusUser string) (Leftovers, error)

NewLeftovers returns a new Leftovers for Nimbus that can be used to list resources, list types, or delete resources for the provided account. It returns an error if the credentials provided are invalid or a client cannot be created.

func (Leftovers) Delete

func (l Leftovers) Delete(filter string, regex bool) error

Delete will collect all resources that contain the provided filter in the resource's identifier, prompt you to confirm deletion (if enabled), and delete those that are selected.

func (Leftovers) DeleteByType

func (l Leftovers) DeleteByType(filter, rType string, regex bool) error

DeleteByType will collect all resources of the provied type that contain the provided filter in the resource's identifier, prompt you to confirm deletion, and delete those that are selected.

func (Leftovers) List

func (l Leftovers) List(filter string, regex bool)

List will print all of the resources that match the provided filter.

func (Leftovers) ListByType

func (l Leftovers) ListByType(filter, rType string, regex bool)

ListByType defaults to List.

func (Leftovers) Types

func (l Leftovers) Types()

Types will print all the resource types that can be deleted on this IaaS.

type Testbed

type Testbed struct {
	// contains filtered or unexported fields
}

func NewTestbed

func NewTestbed(client testbedsClient, name string) Testbed

func (Testbed) Delete

func (t Testbed) Delete() error

func (Testbed) Name

func (t Testbed) Name() string

func (Testbed) Type

func (t Testbed) Type() string

type Testbeds

type Testbeds struct {
	// contains filtered or unexported fields
}

func NewTestbeds

func NewTestbeds(client testbedsClient, logger logger) Testbeds

func (Testbeds) List

func (t Testbeds) List(filter string, regex bool) ([]common.Deletable, error)

func (Testbeds) Type

func (t Testbeds) Type() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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