Help us shape the future of Go! Take the 2026 Go Developer Survey

repository

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRRSetNotFound = fmt.Errorf("rrset not found")
	ErrEmptyRRSet    = fmt.Errorf("empty rrset")
)
View Source
var ErrZoneNotFound = fmt.Errorf("zone not found")

Functions

This section is empty.

Types

type Config

type Config struct {
	ApiBasePath           string
	ServiceAccountBaseUrl string
	AuthToken             string
	ProjectId             string
	HttpClient            *http.Client
	SaKeyPath             string
	UseSaKey              bool
}

type RRSetRepository

type RRSetRepository interface {
	FetchRRSetForZone(ctx context.Context, rrSetName string, rrSetType string) (*stackitdnsclient.RecordSet, error)
	CreateRRSet(ctx context.Context, rrSet stackitdnsclient.RecordSet) error
	UpdateRRSet(ctx context.Context, rrSet stackitdnsclient.RecordSet) error
	DeleteRRSet(ctx context.Context, rrSetId string) error
}

type RRSetRepositoryFactory

type RRSetRepositoryFactory interface {
	NewRRSetRepository(config Config, zoneId string) (RRSetRepository, error)
}

func NewRRSetRepositoryFactory

func NewRRSetRepositoryFactory() RRSetRepositoryFactory

type ZoneRepository

type ZoneRepository interface {
	FetchZone(ctx context.Context, zoneDnsName string) (*stackitdnsclient.Zone, error)
}

type ZoneRepositoryFactory

type ZoneRepositoryFactory interface {
	NewZoneRepository(config Config) (ZoneRepository, error)
}

func NewZoneRepositoryFactory

func NewZoneRepositoryFactory() ZoneRepositoryFactory

Directories

Path Synopsis
Package mock_repository is a generated GoMock package.
Package mock_repository is a generated GoMock package.

Jump to

Keyboard shortcuts

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