Documentation
¶
Index ¶
Constants ¶
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 ¶
NewEARFormat for formatting output
func NewProviderFormat ¶
NewProviderFormat for formatting output
func NewRegionFormat ¶
NewRegionFormat for formatting output
Types ¶
type EARContext ¶
type EARContext struct { formatter.HeaderContext formatter.Context Aws util.AwsKmsAuthConfigField }
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) CMKPolicy ¶
func (c *EARContext) CMKPolicy() string
CMKPolicy fetches AWS cmk policy
func (*EARContext) MarshalJSON ¶
func (c *EARContext) MarshalJSON() ([]byte, error)
MarshalJSON function
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