Documentation ¶
Index ¶
- Constants
- func NewEARFormat(source string) formatter.Format
- func NewProviderFormat(source string) formatter.Format
- func NewRegionFormat(source string) formatter.Format
- type EARContext
- func (c *EARContext) ClientID() string
- func (c *EARContext) ClientSecret() string
- func (c *EARContext) KeyAlgorithm() string
- func (c *EARContext) KeyName() string
- func (c *EARContext) KeySize() int
- func (c *EARContext) MarshalJSON() ([]byte, error)
- func (c *EARContext) TenantID() string
- func (c *EARContext) VaultURL() string
- type ProviderContext
- func (c *ProviderContext) ClientID() string
- func (c *ProviderContext) ClientSecret() string
- func (c *ProviderContext) HostedZoneID() string
- func (c *ProviderContext) MarshalJSON() ([]byte, error)
- func (c *ProviderContext) NetworkRG() string
- func (c *ProviderContext) NetworkSubscriptionID() string
- func (c *ProviderContext) RG() string
- func (c *ProviderContext) SubscriptionID() string
- func (c *ProviderContext) TenantID() string
- func (c *ProviderContext) VpcType() string
- type RegionContext
Constants ¶
const ( // Provider1 provides header for AZU Cloud Info Provider1 = "table {{.ClientID}}\t{{.ClientSecret}}\t{{.SubscriptionID}}\t{{.TenantID}}" + "\t{{.RG}}" // Provider2 provides header for AZU Cloud Info Provider2 = "table {{.HostedZoneID}}\t{{.NetworkSubscriptionID}}\t{{.NetworkRG}}" + "\t{{.VpcType}}" // Region provides header for AZU Region Cloud Info Region = "table {{.SecurityGroupID}}\t{{.VNet}}" // EAR1 provides header for Azure KMS Info EAR1 = "table {{.ClientID}}\t{{.ClientSecret}}\t{{.TenantID}}" // EAR2 provides header for Azure KMS Info EAR2 = "table {{.VaultURL}}\t{{.KeyName}}\t{{.KeyAlgorithm}}\t{{.KeySize}}" )
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 Azu util.AzuKmsAuthConfigField }
EARContext for kms outputs
func NewEARContext ¶
func NewEARContext() *EARContext
NewEARContext creates a new context for rendering ear config
func (*EARContext) ClientID ¶
func (c *EARContext) ClientID() string
ClientID fetches Azure Client ID
func (*EARContext) ClientSecret ¶
func (c *EARContext) ClientSecret() string
ClientSecret fetches Azure Client Secret
func (*EARContext) KeyAlgorithm ¶
func (c *EARContext) KeyAlgorithm() string
KeyAlgorithm fetches Azure Key Algorithm
func (*EARContext) MarshalJSON ¶
func (c *EARContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*EARContext) TenantID ¶
func (c *EARContext) TenantID() string
TenantID fetches Azure Tenant ID
func (*EARContext) VaultURL ¶
func (c *EARContext) VaultURL() string
VaultURL fetches Azure Vault URL
type ProviderContext ¶
type ProviderContext struct { formatter.HeaderContext formatter.Context Azu ybaclient.AzureCloudInfo }
ProviderContext for provider outputs
func NewProviderContext ¶
func NewProviderContext() *ProviderContext
NewProviderContext creates a new context for rendering provider
func (*ProviderContext) ClientID ¶
func (c *ProviderContext) ClientID() string
ClientID fetches Azure Client ID
func (*ProviderContext) ClientSecret ¶
func (c *ProviderContext) ClientSecret() string
ClientSecret fetches Azure Client Secret
func (*ProviderContext) HostedZoneID ¶
func (c *ProviderContext) HostedZoneID() string
HostedZoneID fetches Azure Hosted Zone ID
func (*ProviderContext) MarshalJSON ¶
func (c *ProviderContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*ProviderContext) NetworkRG ¶
func (c *ProviderContext) NetworkRG() string
NetworkRG fetches Azure Network Resource Group
func (*ProviderContext) NetworkSubscriptionID ¶
func (c *ProviderContext) NetworkSubscriptionID() string
NetworkSubscriptionID fetches Azure Network Subscription ID
func (*ProviderContext) SubscriptionID ¶
func (c *ProviderContext) SubscriptionID() string
SubscriptionID fetches Azure Subscription ID
func (*ProviderContext) TenantID ¶
func (c *ProviderContext) TenantID() string
TenantID fetches Azure Tenant ID
func (*ProviderContext) VpcType ¶
func (c *ProviderContext) VpcType() string
VpcType fetches VPC Type
type RegionContext ¶
type RegionContext struct { formatter.HeaderContext formatter.Context Region ybaclient.AzureRegionCloudInfo }
RegionContext for provider outputs
func NewRegionContext ¶
func NewRegionContext() *RegionContext
NewRegionContext creates a new context for rendering provider
func (*RegionContext) MarshalJSON ¶
func (c *RegionContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*RegionContext) SecurityGroupID ¶
func (c *RegionContext) SecurityGroupID() string
SecurityGroupID fetches Azure Region security group ID
func (*RegionContext) VNet ¶
func (c *RegionContext) VNet() string
VNet fetches Azure Region virtual network