package nameserver
import "github.com/oslokommune/okctl/pkg/git/nameserver"
Package nameserver knows how to create git commits for zone delegation and revocation
Index ¶
- Constants
- func BranchNameFromFQDN(fqdn string) string
- func CreateRecord(fqdn string, nameservers []string) []byte
- func DefaultRepositoryURL() string
- func FileNameFromFQDN(fqdn string) string
- type Delegator
Constants ¶
const ( // DefaultWorkingDir represents the default working directory DefaultWorkingDir = "infrastructure/production/dns/oslo.systems/auto_applied_subdomains" // DefaultAutoWorkingDir represents the default auto working directory DefaultAutoWorkingDir = "infrastructure/production/dns/oslo.systems/auto_applied_subdomains/auto" )
Functions ¶
func BranchNameFromFQDN ¶
BranchNameFromFQDN returns a random branch name based on the provided fqdn
func CreateRecord ¶
CreateRecord returns the create record template
func DefaultRepositoryURL ¶
func DefaultRepositoryURL() string
DefaultRepositoryURL represents the default repository URL
func FileNameFromFQDN ¶
FileNameFromFQDN returns a filename based on the provided fqdn
Types ¶
type Delegator ¶
type Delegator struct{}
Delegator contains required state
func NewDelegator ¶
NewDelegator returns an initialised delegator
func (*Delegator) Assign ¶
Assign a delegation record
func (*Delegator) Revoke ¶
Revoke a delegation record
Source Files ¶
- Version
- v0.0.106 (latest)
- Published
- Oct 21, 2022
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 18 hours ago –
Tools for package owners.