azu

package
v0.0.0-...-cb0dfba Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

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 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) KeyName

func (c *EARContext) KeyName() string

KeyName fetches Azure Key Name

func (*EARContext) KeySize

func (c *EARContext) KeySize() int

KeySize fetches Azure Key Size

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) RG

func (c *ProviderContext) RG() string

RG fetches Azure Resource Group

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

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

Jump to

Keyboard shortcuts

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