Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
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 ¶
func New(queryConn messaging2.QueryConnection, eventConn messaging2.EventConnection) Client
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.
Click to show internal directories.
Click to hide internal directories.