archer

package
v0.0.0-...-f51211f Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 4 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 {
	*gophercloud.ServiceClient
}

func NewClient

func NewClient(provider *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*Client, error)

func (*Client) GetQuotaSet

func (c *Client) GetQuotaSet(ctx context.Context, projectUUID string) (qs QuotaSet, err error)

func (*Client) PutQuotaSet

func (c *Client) PutQuotaSet(ctx context.Context, projectUUID string, qs QuotaSet) error

type Logic

type Logic struct {
	// connections
	Archer *Client `yaml:"-"`
}

func (*Logic) BuildServiceInfo

func (l *Logic) BuildServiceInfo(ctx context.Context) (liquid.ServiceInfo, error)

BuildServiceInfo implements the liquidapi.Logic interface.

func (*Logic) Init

func (l *Logic) Init(ctx context.Context, provider *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (err error)

Init implements the liquidapi.Logic interface.

func (*Logic) ScanCapacity

ScanCapacity implements the liquidapi.Logic interface.

func (*Logic) ScanUsage

func (l *Logic) ScanUsage(ctx context.Context, projectUUID string, req liquid.ServiceUsageRequest, serviceInfo liquid.ServiceInfo) (liquid.ServiceUsageReport, error)

ScanUsage implements the liquidapi.Logic interface.

func (*Logic) SetQuota

func (l *Logic) SetQuota(ctx context.Context, projectUUID string, req liquid.ServiceQuotaRequest, serviceInfo liquid.ServiceInfo) error

SetQuota implements the liquidapi.Logic interface.

type QuotaSet

type QuotaSet struct {
	// for both GET and PUT
	Endpoint int64 `json:"endpoint"`
	Service  int64 `json:"service"`
	// only for GET
	InUseEndpoint uint64 `json:"in_use_endpoint"`
	InUseService  uint64 `json:"in_use_service"`
}

Jump to

Keyboard shortcuts

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