designate

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: 6 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) CountZoneRecordsets

func (c *Client) CountZoneRecordsets(ctx context.Context, projectUUID, zoneID string) (uint64, error)

func (*Client) GetQuota

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

func (*Client) ListZoneIDs

func (c *Client) ListZoneIDs(ctx context.Context, projectUUID string) ([]string, error)

func (*Client) SetQuota

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

type Logic

type Logic struct {
	// connections
	DesignateV2 *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 {
	Zones             int64 `json:"zones"`
	RecordsetsPerZone int64 `json:"zone_recordsets"`
	RecordsPerZone    int64 `json:"zone_records"`
}

Jump to

Keyboard shortcuts

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