repository

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Config

type Config struct {
	ApiBasePath string
	AuthToken   string
	ProjectId   string
	HttpClient  *http.Client
}

type RRSetRepository

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

type RRSetRepositoryFactory

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

func NewRRSetRepositoryFactory

func NewRRSetRepositoryFactory() RRSetRepositoryFactory

type ZoneRepository

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

type ZoneRepositoryFactory

type ZoneRepositoryFactory interface {
	NewZoneRepository(config Config) ZoneRepository
}

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