vkcloud

package
v0.0.0-...-054d7fd Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: Apache-2.0 Imports: 5 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 {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(authOpts gophercloud.AuthOptions) (*Client, error)

func (*Client) CreateRecord

func (c *Client) CreateRecord(zone *Zone, record *Record) error

func (*Client) DeleteRecord

func (c *Client) DeleteRecord(zone *Zone, record *Record) error

func (*Client) FindRecordByContent

func (c *Client) FindRecordByContent(zone *Zone, content string) (*Record, error)

func (*Client) GetZone

func (c *Client) GetZone(resolvedZone string) (*Zone, error)

type Config

type Config struct {
	OSAuthURLSecretRef    core.SecretKeySelector `json:"osAuthUrlSecretRef"`
	OSUsernameSecretRef   core.SecretKeySelector `json:"osUsernameSecretRef"`
	OSPasswordSecretRef   core.SecretKeySelector `json:"osPasswordSecretRef"`
	OSProjectIDSecretRef  core.SecretKeySelector `json:"osProjectIDSecretRef"`
	OSDomainNameSecretRef core.SecretKeySelector `json:"osDomainNameSecretRef"`
}

type CreateDNSRecordRequest

type CreateDNSRecordRequest struct {
	Content string `json:"content"`
	Name    string `json:"name"`
	TTL     int    `json:"ttl"`
}

type Record

type Record struct {
	UUID    string `json:"uuid"`
	Content string `json:"content"`
	Name    string `json:"name"`
	TTL     int    `json:"ttl"`
}

type RecordCollection

type RecordCollection []*Record

type RecordNotFoundErr

type RecordNotFoundErr struct {
	// contains filtered or unexported fields
}

func (RecordNotFoundErr) Error

func (e RecordNotFoundErr) Error() string

type Zone

type Zone struct {
	UUID string `json:"uuid"`
	Zone string `json:"zone"`
}

type ZoneCollection

type ZoneCollection []*Zone

type ZoneNotFoundError

type ZoneNotFoundError struct {
	// contains filtered or unexported fields
}

func (ZoneNotFoundError) Error

func (e ZoneNotFoundError) Error() string

Jump to

Keyboard shortcuts

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