sdk

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SearchR53

func SearchR53(in Input) ([]*awsu.GetRecordAliasesResult, error)

func ToJSONOutput

func ToJSONOutput(resultSet []*awsu.GetRecordAliasesResult, pretty bool) ([]byte, error)

Types

type AWSAuthInput

type AWSAuthInput struct {
	AWSProfile string
}

type HostedZoneOutput

type HostedZoneOutput struct {
	Name         string `json:"name"`
	Id           string `json:"id"`
	WebUrl       string `json:"url"`
	TotalRecords int64  `json:"totalRecords"`
	Private      bool   `json:"private"`
}

type Input

type Input struct {
	SkipNSVerification bool
	AwsAuth            AWSAuthInput
	Record             string
	RecursiveSearch    bool
	RecursiveMaxDepth  int
	Debug              bool
	MuteLogs           bool
}

func NewInput

func NewInput(recordInput, awsProfile string, debug, muteLogs bool, skipNSVerification, recursiveSearch bool, recursiveMaxDepth int) (Input, error)

type RecordOutput

type RecordOutput struct {
	HzID      string        `json:"hostedZoneId"`
	Record    string        `json:"record"`
	Type      string        `json:"type"`
	Alias     string        `json:"alias"`
	WebURL    string        `json:"url"`
	Routing   RoutingOutput `json:"routing,omitempty"`
	Resources []string      `json:"resources,omitempty"`
}

func NewRecordOutput

func NewRecordOutput(a awsu.RecordAccessor) RecordOutput

type ResultOutput

type ResultOutput struct {
	Records     []RecordOutput              `json:"records"`
	HostedZones map[string]HostedZoneOutput `json:"hostedZones"`
}

func ToSimpleOutput

func ToSimpleOutput(resultSet []*awsu.GetRecordAliasesResult) *ResultOutput

type RoutingOutput

type RoutingOutput struct {
	Policy         awsu.RoutingPolicy `json:"policy,omitempty"`
	Differentiator string             `json:"differentiator,omitempty"`
}

Jump to

Keyboard shortcuts

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