ionos

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCreateDeleteSetsFromChanges added in v0.4.0

func GetCreateDeleteSetsFromChanges(changes *plan.Changes) ([]*endpoint.Endpoint, []*endpoint.Endpoint)

Types

type Configuration

type Configuration struct {
	APIKey         string `env:"IONOS_API_KEY,notEmpty"`
	APIEndpointURL string `env:"IONOS_API_URL"`
	AuthHeader     string `env:"IONOS_AUTH_HEADER"`
	Debug          bool   `env:"IONOS_DEBUG" envDefault:"false"`
	DryRun         bool   `env:"DRY_RUN" envDefault:"false"`
}

Configuration holds configuration from environmental variables

type EndpointCollection added in v0.4.0

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

func NewEndpointCollection added in v0.4.0

func NewEndpointCollection[R any](records []R, creator func(R) *endpoint.Endpoint, identifier func(R) string) *EndpointCollection

func (*EndpointCollection) RetrieveEndPoints added in v0.4.0

func (epc *EndpointCollection) RetrieveEndPoints() []*endpoint.Endpoint

type RecordCollection added in v0.4.0

type RecordCollection[R any] struct {
	// contains filtered or unexported fields
}

func NewRecordCollection added in v0.4.0

func NewRecordCollection[R any](endpoints []*endpoint.Endpoint, creator func(*endpoint.Endpoint) []R) *RecordCollection[R]

func (*RecordCollection[R]) ForEach added in v0.4.0

func (c *RecordCollection[R]) ForEach(visit func(*endpoint.Endpoint, R) error) error

type ZoneTree added in v0.4.0

type ZoneTree[Z any] struct {
	// contains filtered or unexported fields
}

func NewZoneTree added in v0.4.0

func NewZoneTree[Z any]() *ZoneTree[Z]

NewZoneTree creates a new ZoneTree.

func (*ZoneTree[Z]) AddZone added in v0.4.0

func (t *ZoneTree[Z]) AddZone(zone Z, domainName string)

func (*ZoneTree[Z]) FindZoneByDomainName added in v0.4.0

func (t *ZoneTree[Z]) FindZoneByDomainName(domainName string) Z

FindZoneByDomainName returns the zone that matches the given domain name.

func (*ZoneTree[Z]) GetZonesCount added in v0.4.0

func (t *ZoneTree[Z]) GetZonesCount() int

Jump to

Keyboard shortcuts

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