cli53: github.com/barnybug/cli53 Index | Files

package cli53

import "github.com/barnybug/cli53"

Index

Package Files

awsrr.go bind.go commands.go formatters.go instances.go lexer.go main.go util.go

Constants

const ChangeBatchSize = 100
const ClassAWS = 253
const TypeALIAS = 0x0F99

Variables

var RoutingTypes = map[string]func() AWSRoute{
    "FAILOVER":    func() AWSRoute { return &FailoverRoute{} },
    "GEOLOCATION": func() AWSRoute { return &GeoLocationRoute{} },
    "LATENCY":     func() AWSRoute { return &LatencyRoute{} },
    "WEIGHTED":    func() AWSRoute { return &WeightedRoute{} },
    "MULTIVALUE":  func() AWSRoute { return &MultiValueAnswerRoute{} },
}

func ConvertAliasToRRSet Uses

func ConvertAliasToRRSet(alias *dns.PrivateRR) *route53.ResourceRecordSet

ConvertAliasToRRSet will convert an alias to a ResourceRecordSet.

func ConvertBindToRR Uses

func ConvertBindToRR(record dns.RR) *route53.ResourceRecord

ConvertBindToRR will convert a DNS record into a route53 ResourceRecord.

func ConvertBindToRRSet Uses

func ConvertBindToRRSet(records []dns.RR) *route53.ResourceRecordSet

ConvertBindToRRSet will convert some DNS records into a route53 ResourceRecordSet. The records should have been previously grouped by matching name, type and (if applicable) identifier.

func ConvertRRSetToBind Uses

func ConvertRRSetToBind(rrset *route53.ResourceRecordSet) []dns.RR

ConvertRRSetToBind will convert a ResourceRecordSet to an array of RR entries

func ExportBindToWriter Uses

func ExportBindToWriter(r53 *route53.Route53, zone *route53.HostedZone, full bool, out io.Writer)

func ListAllRecordSets Uses

func ListAllRecordSets(r53 *route53.Route53, id string) (rrsets []*route53.ResourceRecordSet, err error)

Paginate request to get all record sets.

func Main Uses

func Main(args []string) int

Main entry point for cli53 application

func NewALIASRdata Uses

func NewALIASRdata() dns.PrivateRdata

func UnexpandSelfAliases Uses

func UnexpandSelfAliases(records []dns.RR, zone *route53.HostedZone, full bool)

type ALIASRdata Uses

type ALIASRdata struct {
    Type                 string
    Target               string
    ZoneId               string
    EvaluateTargetHealth bool
}

func (*ALIASRdata) Copy Uses

func (rd *ALIASRdata) Copy(dest dns.PrivateRdata) error

func (*ALIASRdata) Len Uses

func (rd *ALIASRdata) Len() int

func (*ALIASRdata) Pack Uses

func (rd *ALIASRdata) Pack(buf []byte) (int, error)

func (*ALIASRdata) Parse Uses

func (rd *ALIASRdata) Parse(txt []string) error

func (*ALIASRdata) String Uses

func (rr *ALIASRdata) String() string

func (*ALIASRdata) Unpack Uses

func (rd *ALIASRdata) Unpack(buf []byte) (int, error)

type AWSRR Uses

type AWSRR struct {
    dns.RR
    Route         AWSRoute
    HealthCheckId *string
    Identifier    string
}

func (*AWSRR) String Uses

func (rr *AWSRR) String() string

type AWSRoute Uses

type AWSRoute interface {
    String() string
    Parse(KeyValues)
}

type CSVFormatter Uses

type CSVFormatter struct {
}

type FailoverRoute Uses

type FailoverRoute struct {
    Failover string
}

func (*FailoverRoute) Parse Uses

func (f *FailoverRoute) Parse(kvs KeyValues)

func (*FailoverRoute) String Uses

func (f *FailoverRoute) String() string

type Formatter Uses

type Formatter interface {
    // contains filtered or unexported methods
}

type GeoLocationRoute Uses

type GeoLocationRoute struct {
    CountryCode     *string
    ContinentCode   *string
    SubdivisionCode *string
}

func (*GeoLocationRoute) Parse Uses

func (f *GeoLocationRoute) Parse(kvs KeyValues)

func (*GeoLocationRoute) String Uses

func (f *GeoLocationRoute) String() string

type InstanceRecord Uses

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

type JlFormatter Uses

type JlFormatter struct {
}

type JsonFormatter Uses

type JsonFormatter struct {
}

type Key Uses

type Key struct {
    Name       string
    Rrtype     uint16
    Identifier string
}

type KeyValues Uses

type KeyValues []interface{}

func ParseKeyValues Uses

func ParseKeyValues(input string) (result KeyValues, err error)

func (KeyValues) GetInt Uses

func (kvs KeyValues) GetInt(key string) int

func (KeyValues) GetOptString Uses

func (kvs KeyValues) GetOptString(key string) *string

func (KeyValues) GetString Uses

func (kvs KeyValues) GetString(key string) string

func (KeyValues) String Uses

func (kvs KeyValues) String() string

type LatencyRoute Uses

type LatencyRoute struct {
    Region string
}

func (*LatencyRoute) Parse Uses

func (f *LatencyRoute) Parse(kvs KeyValues)

func (*LatencyRoute) String Uses

func (f *LatencyRoute) String() string

type MultiValueAnswerRoute Uses

type MultiValueAnswerRoute struct {
}

func (*MultiValueAnswerRoute) Parse Uses

func (f *MultiValueAnswerRoute) Parse(kvs KeyValues)

func (*MultiValueAnswerRoute) String Uses

func (f *MultiValueAnswerRoute) String() string

type TableFormatter Uses

type TableFormatter struct {
}

type TextFormatter Uses

type TextFormatter struct {
}

type WeightedRoute Uses

type WeightedRoute struct {
    Weight int64
}

func (*WeightedRoute) Parse Uses

func (f *WeightedRoute) Parse(kvs KeyValues)

func (*WeightedRoute) String Uses

func (f *WeightedRoute) String() string

Package cli53 imports 25 packages (graph) and is imported by 2 packages. Updated 2021-01-20. Refresh now. Tools for package owners.