openstackprovider

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 CredentialListFilter

type CredentialListFilter struct {
	ProjectID   string
	ProjectName string
}

CredentialListFilter is a set of filter options for listing credentials

type Session

type Session interface {
	CreateApplicationCredential(providerID string, credential providers.CredentialOption, namePostfix string, scope providers.ProjectScope) (string, error)
	ApplicationCredentialList(providerID string, credential providers.CredentialOption) ([]providers.ApplicationCredential, error)
	GetApplicationCredential(providerID string, credential providers.CredentialOption, applicationCredentialID string) (*providers.ApplicationCredential, error)
	DeleteApplicationCredential(providerID string, credentialID string) error
	AuthenticationTest(providerID string, variables map[string]string) error
	CredentialList(providerID string, filter CredentialListFilter) ([]service.CredentialModel, error)
	RegionList(providerID string, credential providers.CredentialOption) ([]providers.Region, error)
	ImageList(providerID string, credential providers.CredentialOption, region string) ([]providers.OpenStackImage, error)
	GetImage(providerID string, credential providers.CredentialOption, region string, imageID string) (*providers.OpenStackImage, error)
	FlavorList(providerID string, credential providers.CredentialOption, region string) ([]providers.Flavor, error)
	GetFlavor(providerID string, credential providers.CredentialOption, region string, flavorID string) (*providers.Flavor, error)
	ProjectList(providerID string, credential providers.CredentialOption) ([]providers.Project, error)
	GetProject(providerID string, credential providers.CredentialOption, projectID string) (*providers.Project, error)
	ZoneList(providerID string, credential providers.CredentialOption) ([]providers.DNSZone, error)
	RecordsetList(providerID string, credential providers.CredentialOption, zoneID string) ([]providers.DNSRecordset, 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