dns_record

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT-0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_COMBINED_NAME_AND_RECORD_LENGTH int = 90

Variables

This section is empty.

Functions

func NewResource

func NewResource() *resource.Resource

Types

type DnsRecordOptions

type DnsRecordOptions struct {
	resource.CommonOptions
	// Shared
	ZoneName string
	// Create
	Type  string
	Value string
	// Delete
	AllRecords bool
	AllTypes   bool
	// Get
	Filter []string
}

type Getter

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

func NewGetter

func NewGetter(route53Client *aws.Route53Client) *Getter

func (*Getter) Get

func (g *Getter) Get(name string, output printer.Output, options resource.Options) error

func (*Getter) GetRecords

func (g *Getter) GetRecords(name, zoneId string) ([]types.ResourceRecordSet, error)

func (*Getter) GetRecordsWithFilter

func (g *Getter) GetRecordsWithFilter(name, zoneId string, filterTypes map[string]bool) ([]types.ResourceRecordSet, error)

func (*Getter) Init

func (g *Getter) Init()

type Manager

type Manager struct {
	DryRun bool
	// contains filtered or unexported fields
}

func (*Manager) Create

func (m *Manager) Create(options resource.Options) error

func (*Manager) Delete

func (m *Manager) Delete(options resource.Options) error

func (*Manager) Init

func (m *Manager) Init()

func (*Manager) SetDryRun

func (m *Manager) SetDryRun()

func (*Manager) Update

func (m *Manager) Update(options resource.Options, cmd *cobra.Command) error

type RecordSetPrinter

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

func NewPrinter

func NewPrinter(recordSets []types.ResourceRecordSet) *RecordSetPrinter

func (*RecordSetPrinter) PrintJSON

func (p *RecordSetPrinter) PrintJSON(writer io.Writer) error

func (*RecordSetPrinter) PrintTable

func (p *RecordSetPrinter) PrintTable(writer io.Writer) error

func (*RecordSetPrinter) PrintYAML

func (p *RecordSetPrinter) PrintYAML(writer io.Writer) error

Jump to

Keyboard shortcuts

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