ibmcloud

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IBMCloudProvider

type IBMCloudProvider struct {
	provider.BaseProvider

	Client ibmcloudClient

	DryRun bool
	// contains filtered or unexported fields
}

IBMCloudProvider is an implementation of Provider for IBM Cloud DNS.

func NewIBMCloudProvider

func NewIBMCloudProvider(configFile string, domainFilter endpoint.DomainFilter, zoneIDFilter provider.ZoneIDFilter, source source.Source, proxiedByDefault bool, dryRun bool) (*IBMCloudProvider, error)

NewIBMCloudProvider creates a new IBMCloud provider.

Returns the provider or an error if a provider could not be created.

func (*IBMCloudProvider) AdjustEndpoints

func (p *IBMCloudProvider) AdjustEndpoints(endpoints []*endpoint.Endpoint) ([]*endpoint.Endpoint, error)

AdjustEndpoints modifies the endpoints as needed by the specific provider

func (*IBMCloudProvider) ApplyChanges

func (p *IBMCloudProvider) ApplyChanges(ctx context.Context, changes *plan.Changes) error

ApplyChanges applies a given set of changes in a given zone.

func (*IBMCloudProvider) Records

func (p *IBMCloudProvider) Records(ctx context.Context) (endpoints []*endpoint.Endpoint, err error)

Records gets the current records.

Returns the current records or an error if the operation failed.

type Source

type Source interface {
	Endpoints(ctx context.Context) ([]*endpoint.Endpoint, error)
	AddEventHandler(context.Context, func())
}

Source shadow the interface source.Source. used primarily for unit testing.

Jump to

Keyboard shortcuts

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