Versions in this module Expand all Collapse all v0 v0.3.61 Jan 17, 2024 Changes in this version + var ErrExpression = errors.New("expression must contain exactly one sub match that yields a number string") + var ErrFlag = errors.New("unable to parse flag") + var ErrParseError = errors.New("unable to parse value") + var ErrResourceNotFound = errors.New("requested resource not found") + type BlockStorageClient struct + func NewBlockStorageClient(provider Provider) (*BlockStorageClient, error) + func (c *BlockStorageClient) AvailabilityZones(ctx context.Context) ([]availabilityzones.AvailabilityZone, error) + type CloudsProvider struct + func NewCloudsProvider(cloud string) *CloudsProvider + func (p *CloudsProvider) Client() (*gophercloud.ProviderClient, error) + type ComputeClient struct + func NewComputeClient(options *ComputeOptions, provider Provider) (*ComputeClient, error) + func (c *ComputeClient) AvailabilityZones(ctx context.Context) ([]availabilityzones.AvailabilityZone, error) + func (c *ComputeClient) CreateServerGroup(ctx context.Context, name, policy string) (*servergroups.ServerGroup, error) + func (c *ComputeClient) FlavorGPUs(flavor *Flavor) (*GPUMeta, error) + func (c *ComputeClient) Flavors(ctx context.Context) ([]Flavor, error) + func (c *ComputeClient) KeyPairs(ctx context.Context) ([]keypairs.KeyPair, error) + func (c *ComputeClient) ListServerGroups(ctx context.Context) ([]servergroups.ServerGroup, error) + type ComputeOptions struct + func (o *ComputeOptions) AddFlags(f *pflag.FlagSet) + type CreateTokenOptions interface + Options func() *tokens.AuthOptions + type CreateTokenOptionsScopedToken struct + func NewCreateTokenOptionsScopedToken(token, projectID string) *CreateTokenOptionsScopedToken + func (o *CreateTokenOptionsScopedToken) Options() *tokens.AuthOptions + type CreateTokenOptionsUnscopedPassword struct + func NewCreateTokenOptionsUnscopedPassword(domain, username, password string) *CreateTokenOptionsUnscopedPassword + func (o *CreateTokenOptionsUnscopedPassword) Options() *tokens.AuthOptions + type Flavor struct + ExtraSpecs map[string]string + func ExtractFlavors(r pagination.Page) ([]Flavor, error) + func (f *Flavor) UnmarshalJSON(b []byte) error + type GPUMeta struct + GPUs int + type IdentityClient struct + func NewIdentityClient(provider Provider) (*IdentityClient, error) + func (c *IdentityClient) CreateApplicationCredential(ctx context.Context, userID, name, description string, roles []string) (*applicationcredentials.ApplicationCredential, error) + func (c *IdentityClient) CreateToken(ctx context.Context, options CreateTokenOptions) (*tokens.Token, *tokens.User, error) + func (c *IdentityClient) DeleteApplicationCredential(ctx context.Context, userID, id string) error + func (c *IdentityClient) GetUser(ctx context.Context, userID string) (*users.User, error) + func (c *IdentityClient) ListApplicationCredentials(ctx context.Context, userID string) ([]applicationcredentials.ApplicationCredential, error) + func (c *IdentityClient) ListAvailableProjects(ctx context.Context) ([]projects.Project, error) + type ImageClient struct + func NewImageClient(provider Provider) (*ImageClient, error) + func (c *ImageClient) Images(ctx context.Context, key *ecdsa.PublicKey, properties []string) ([]images.Image, error) + type NetworkClient struct + func NewNetworkClient(provider Provider) (*NetworkClient, error) + func (c *NetworkClient) ExternalNetworks(ctx context.Context) ([]networks.Network, error) + type Provider interface + Client func() (*gophercloud.ProviderClient, error) + type TokenProvider struct + func NewTokenProvider(endpoint, token string) *TokenProvider + func (p *TokenProvider) Client() (*gophercloud.ProviderClient, error) + type UnauthenticatedProvider struct + func NewUnauthenticatedProvider(endpoint string) *UnauthenticatedProvider + func (p *UnauthenticatedProvider) Client() (*gophercloud.ProviderClient, error)