intent

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	SchemaV1       = "workflow.domain-intent.v1"
	LegacySchemaV1 = "gocodealone.domain-intent.v1"
	ReportSchemaV1 = "workflow.domain-intent.report.v1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Type                       string   `json:"type" yaml:"type"`
	Provider                   string   `json:"provider" yaml:"provider"`
	Resource                   string   `json:"resource" yaml:"resource"`
	RecordCount                *int     `json:"record_count,omitempty" yaml:"record_count,omitempty"`
	ManageUnlisted             *bool    `json:"manage_unlisted,omitempty" yaml:"manage_unlisted,omitempty"`
	RecordsPolicy              string   `json:"records_policy,omitempty" yaml:"records_policy,omitempty"`
	TargetURL                  string   `json:"target_url,omitempty" yaml:"target_url,omitempty"`
	DesiredNameservers         []string `json:"desired_nameservers,omitempty" yaml:"desired_nameservers,omitempty"`
	ExpectedCurrentNameservers []string `json:"expected_current_nameservers,omitempty" yaml:"expected_current_nameservers,omitempty"`
}

type Bundle

type Bundle struct {
	Config config.WorkflowConfig `json:"config" yaml:"config"`
	Report Report                `json:"report" yaml:"report"`
}

func Compile

func Compile(opts Options) (*Bundle, error)

type Document

type Document struct {
	Schema  string                  `json:"schema" yaml:"schema"`
	Domains map[string]DomainIntent `json:"domains" yaml:"domains"`
}

type DomainIntent

type DomainIntent struct {
	Registrar                  string   `json:"registrar" yaml:"registrar"`
	DNSHost                    string   `json:"dns_host" yaml:"dns_host"`
	StageDNS                   *bool    `json:"stage_dns,omitempty" yaml:"stage_dns,omitempty"`
	NameserverCutover          bool     `json:"nameserver_cutover" yaml:"nameserver_cutover"`
	RecordsPolicy              string   `json:"records_policy" yaml:"records_policy"`
	ExpectedCurrentNameservers []string `json:"expected_current_nameservers,omitempty" yaml:"expected_current_nameservers,omitempty"`
	AllowDiscardNonparked      bool     `json:"allow_discard_nonparked,omitempty" yaml:"allow_discard_nonparked,omitempty"`
	ForwardTo                  string   `json:"forward_to,omitempty" yaml:"forward_to,omitempty"`
	WebTarget                  string   `json:"web_target,omitempty" yaml:"web_target,omitempty"`
	WebHosts                   []string `json:"web_hosts,omitempty" yaml:"web_hosts,omitempty"`
}

type DomainReport

type DomainReport struct {
	Domain                string   `json:"domain" yaml:"domain"`
	Registrar             string   `json:"registrar" yaml:"registrar"`
	DNSHost               string   `json:"dns_host" yaml:"dns_host"`
	CloudflareNameservers []string `json:"cloudflare_nameservers" yaml:"cloudflare_nameservers"`
	RecordsPolicy         string   `json:"records_policy" yaml:"records_policy"`
	Actions               []Action `json:"actions" yaml:"actions"`
	Blockers              []string `json:"blockers" yaml:"blockers"`
}

type Options

type Options struct {
	IntentPath     string
	PortfolioGlobs []string
	DomainFilter   string
	StateDir       string
}

type Report

type Report struct {
	Schema         string         `json:"schema" yaml:"schema"`
	Domains        []DomainReport `json:"domains" yaml:"domains"`
	BlockedDomains int            `json:"blocked_domains" yaml:"blocked_domains"`
	ActionCount    int            `json:"action_count" yaml:"action_count"`
}

Jump to

Keyboard shortcuts

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