internal

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OciDNSClient

func OciDNSClient(config OciConfig) (*dns.DnsClient, error)

func UpdateDns

func UpdateDns(appConfig *AppConfig, dnsClient *dns.DnsClient, ctx context.Context, ipAddress string) error

Types

type AppConfig

type AppConfig struct {
	OciConfig OciConfig `json:"oci"`
	Zone      string    `json:"zone"`
	Host      string    `json:"host"`
	Token     string    `json:"token"`
}

func LoadAppConfig

func LoadAppConfig(fileName *string) (AppConfig, error)

type OciConfig

type OciConfig struct {
	Tenancy              string `json:"tenancy"`
	User                 string `json:"user"`
	Region               string `json:"region"`
	Fingerprint          string `json:"fingerprint"`
	PrivateKey           string `json:"privateKey"`
	PrivateKeyPassphrase string `json:"privateKeyPassphrase"`
}

type Service

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

func NewService

func NewService(appConfig *AppConfig, logger *zap.SugaredLogger) (*Service, error)

func (*Service) Serve

func (svc *Service) Serve(listenAddress *string) error

Jump to

Keyboard shortcuts

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