aws

package
v0.0.0-...-dbfc090 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Provider provides header for AWS Cloud Info
	Provider = "table {{.AccessKeyID}}\t{{.AccessKeySecret}}\t{{.HostedZoneID}}" +
		"\t{{.HostedZoneName}}\t{{.VpcType}}"

	// Region provides header for AWS Region Cloud Info
	Region = "table {{.Arch}}\t{{.SecurityGroupID}}\t{{.VNet}}"

	// EAR1 for EAR listing
	EAR1 = "table {{.AccessKeyID}}\t{{.AccessKeySecret}}\t{{.EndPoint}}"

	// EAR2 for EAR listing
	EAR2 = "table {{.Region}}\t{{.CMKID}}"

	// EAR3 for EAR listing
	EAR3 = "table {{.CMKPolicy}}"

	// AccessKeyIDHeader for Access key ID header
	AccessKeyIDHeader = "AWS Access Key ID"
	// AccessKeySecretHeader for Access key secret header
	AccessKeySecretHeader = "AWS Access Key Secret"
)

Variables

This section is empty.

Functions

func NewEARFormat

func NewEARFormat(source string) formatter.Format

NewEARFormat for formatting output

func NewProviderFormat

func NewProviderFormat(source string) formatter.Format

NewProviderFormat for formatting output

func NewRegionFormat

func NewRegionFormat(source string) formatter.Format

NewRegionFormat for formatting output

Types

type EARContext

EARContext for ksm outputs

func NewEARContext

func NewEARContext() *EARContext

NewEARContext creates a new context for rendering kms config

func (*EARContext) AccessKeyID

func (c *EARContext) AccessKeyID() string

AccessKeyID fetches AWS access key ID

func (*EARContext) AccessKeySecret

func (c *EARContext) AccessKeySecret() string

AccessKeySecret fetches AWS access key secret

func (*EARContext) CMKID

func (c *EARContext) CMKID() string

CMKID fetches AWS cmk ID

func (*EARContext) CMKPolicy

func (c *EARContext) CMKPolicy() string

CMKPolicy fetches AWS cmk policy

func (*EARContext) EndPoint

func (c *EARContext) EndPoint() string

EndPoint fetches AWS end point

func (*EARContext) MarshalJSON

func (c *EARContext) MarshalJSON() ([]byte, error)

MarshalJSON function

func (*EARContext) Region

func (c *EARContext) Region() string

Region fetches AWS region

type ProviderContext

type ProviderContext struct {
	formatter.HeaderContext
	formatter.Context
	Aws ybaclient.AWSCloudInfo
}

ProviderContext for provider outputs

func NewProviderContext

func NewProviderContext() *ProviderContext

NewProviderContext creates a new context for rendering provider

func (*ProviderContext) AccessKeyID

func (c *ProviderContext) AccessKeyID() string

AccessKeyID fetches AWS access key ID

func (*ProviderContext) AccessKeySecret

func (c *ProviderContext) AccessKeySecret() string

AccessKeySecret fetches AWS access key secret

func (*ProviderContext) HostedZoneID

func (c *ProviderContext) HostedZoneID() string

HostedZoneID fetches AWS Hosted Zone ID

func (*ProviderContext) HostedZoneName

func (c *ProviderContext) HostedZoneName() string

HostedZoneName fetches AWS Hosted Zone Name

func (*ProviderContext) MarshalJSON

func (c *ProviderContext) MarshalJSON() ([]byte, error)

MarshalJSON function

func (*ProviderContext) VpcType

func (c *ProviderContext) VpcType() string

VpcType fetches AWS VPC Type

type RegionContext

type RegionContext struct {
	formatter.HeaderContext
	formatter.Context
	Region ybaclient.AWSRegionCloudInfo
}

RegionContext for provider outputs

func NewRegionContext

func NewRegionContext() *RegionContext

NewRegionContext creates a new context for rendering provider

func (*RegionContext) Arch

func (c *RegionContext) Arch() string

Arch fetches AWS Region architecture type

func (*RegionContext) MarshalJSON

func (c *RegionContext) MarshalJSON() ([]byte, error)

MarshalJSON function

func (*RegionContext) SecurityGroupID

func (c *RegionContext) SecurityGroupID() string

SecurityGroupID fetches AWS Region security group ID

func (*RegionContext) VNet

func (c *RegionContext) VNet() string

VNet fetches AWS Region virtual network

Jump to

Keyboard shortcuts

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