cloud

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSClientAPI

type AWSClientAPI interface {
	CreateStack(input *cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error)
	DescribeStacks(input *cloudformation.DescribeStacksInput) (*cloudformation.DescribeStacksOutput, error)
	WaitUntilStackCreateCompleteWithContext(ctx aws.Context, input *cloudformation.DescribeStacksInput) error
	WaitUntilStackDeleteCompleteWithContext(ctx aws.Context, input *cloudformation.DescribeStacksInput) error
	GetCallerIdentity(input *sts.GetCallerIdentityInput) (*sts.GetCallerIdentityOutput, error)
	PutSecretValue(input *secretsmanager.PutSecretValueInput) (*secretsmanager.PutSecretValueOutput, error)
	GetSecretValue(input *secretsmanager.GetSecretValueInput) (*secretsmanager.GetSecretValueOutput, error)
	DescribeSubnets(input *ec2.DescribeSubnetsInput) (*ec2.DescribeSubnetsOutput, error)
	ValidateTemplate(input *cloudformation.ValidateTemplateInput) (*cloudformation.ValidateTemplateOutput, error)
	NewFAClient(ctx context.Context, host string, adminSecretsManagerArn string) (array.FAClientAPI, error)
}

func NewAWSClient

func NewAWSClient(region string) (AWSClientAPI, error)

type AzureClientAPI

type AzureClientAPI interface {
	SubscriptionID() string
	GroupsListComplete(ctx context.Context, filter string) (*[]graphrbac.ADGroup, error)
	AppsCreateOrUpdate(ctx context.Context, resourceGroupName string, applicationName string, parameters managedapplications.Application) error
	AppsGet(ctx context.Context, resourceGroupName string, applicationName string) (managedapplications.Application, error)
	AppsDelete(ctx context.Context, resourceGroupName string, applicationName string) error
	SecretSet(ctx context.Context, vaultId string, secretName string, parameters vaultSecret.SecretSetParameters) (vaultSecret.SecretBundle, error)
	SecretGet(ctx context.Context, vaultId string, secretName string, version string) (vaultSecret.SecretBundle, error)
	SecretDelete(ctx context.Context, vaultId string, secretName string) (vaultSecret.DeletedSecretBundle, error)
	SecretRecover(ctx context.Context, vaultId string, secretName string) error
	DeactivateWait()
	NewFAClient(ctx context.Context, host string, vaultId string, secretName string) (array.FAClientAPI, error)
}

func NewAzureClient

func NewAzureClient(ctx context.Context, config AzureConfig) (AzureClientAPI, error)

type AzureConfig

type AzureConfig struct {
	SubscriptionID string
	ClientID       string
	ClientSecret   string
	TenantID       string
}

Jump to

Keyboard shortcuts

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