awsprovider

package
v0.0.0-...-e28bd7b Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: BSD-3-Clause Imports: 7 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 interface {
	Session(ctx context.Context, actor, emulator string) (Session, error)
}

Client is an interface for interacting with the provider openstack microservice. Implementations of this interface should encapsulate information necessary to interact with the microservice, such as Nats and Stan connection information.

func New

New creates a new provider openstack microservice client.

type Session

type Session interface {
	AuthenticationTest(providerID string, variables map[string]string) error
	CredentialList(providerID string) ([]service.CredentialModel, error)
	RegionList(providerID string, credential providers.CredentialOption) ([]providers.Region, error)
	ImageList(providerID string, region string, credential providers.CredentialOption) ([]providers.AWSImage, error)
	GetImage(providerID string, region string, credential providers.CredentialOption, imageID string) (*providers.AWSImage, error)
	FlavorList(providerID string, region string, credential providers.CredentialOption) ([]providers.Flavor, error)
	GetFlavor(providerID string, region string, credential providers.CredentialOption, flavorID string) (*providers.Flavor, error)
}

Session is an interface for interacting with the provider openstack microservice on behalf of a user. The purpose of having a session is to consolidate parameters that are common in all or most requests, but are not known at configuration time.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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