whois

package
v1.0.3-0...-345ff72 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsIP

func IsIP(ip string) bool

func RemoveElementOfSliceString

func RemoveElementOfSliceString(a, b []string) []string

func ResolvDNS

func ResolvDNS(dns string) ([]string, error)

func ShowAWSProfile

func ShowAWSProfile() ([]string, error)

func ToJson

func ToJson(r *Result) string

Types

type EC2Output

type EC2Output struct {
	InstanceId    *string
	InstanceState *string
	LaunchTime    *time.Time
	InstanceType  *string
	Tags          []*ec2.Tag
}

type RDSEndpoint

type RDSEndpoint struct {
	Identifier *string
	Endpoint   *string
}

type RDSOutput

type RDSOutput struct {
	Identifier      *string
	Engine          *string
	DBInstanceClass *string
	Endpoint        *string
	Status          *string
}

type Result

type Result struct {
	Profile string
	Message string        `json:",omitempty"`
	Result  *ResultOutput `json:",omitempty"`
}

func FindIP

func FindIP(profile, region, ip string) (*Result, error)

type ResultOutput

type ResultOutput struct {
	Status           *string
	VPCId            *string
	VPCName          *string
	Description      *string
	InterfaceType    *string
	AvailabilityZone *string
	EC2Associated    *EC2Output `json:",omitempty"`
	RDSAssociated    *RDSOutput `json:",omitempty"`
}

Jump to

Keyboard shortcuts

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