cloudaccess

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package cloudaccess contains code for exporting CloudAccess key

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrFetchingKey is returned when key could not be fetched
	ErrFetchingKey = errors.New("problem with fetching key")
	// ErrListingKeyVersions is returned when key versions could not be listed
	ErrListingKeyVersions = errors.New("problem with listing key versions")
	// ErrSavingFiles is returned when an issue with processing templates occurs
	ErrSavingFiles = errors.New("saving terraform project files")
	// ErrNoGroup is returned when key does not have group and contract assigned
	ErrNoGroup = errors.New("access key has no defined group or contract")
	// ErrNonUniqueCloudAccessKeyID is returned when key have the same `cloud_access_key_id` for both pairs of credentials
	ErrNonUniqueCloudAccessKeyID = errors.New("'cloud_access_key_id' should be unique for each pair of credentials")
)

Functions

func CmdCreateCloudAccess

func CmdCreateCloudAccess(c *cli.Context) error

CmdCreateCloudAccess is an entrypoint to export-cloudaccess command

Types

type Credential

type Credential struct {
	CloudAccessKeyID string
}

Credential represents CLoudAccess credential

type NetworkConfiguration

type NetworkConfiguration struct {
	AdditionalCDN   *string
	SecurityNetwork string
}

NetworkConfiguration represents CLoudAccess network configuration

type TFCloudAccessData

type TFCloudAccessData struct {
	Key     TFCloudAccessKey
	Section string
	Flag    bool
}

TFCloudAccessData represents the data used in CloudAccess

type TFCloudAccessKey

type TFCloudAccessKey struct {
	KeyResourceName      string
	AccessKeyName        string
	AuthenticationMethod string
	GroupID              int64
	ContractID           string
	AccessKeyUID         int64
	CredentialA          *Credential
	CredentialB          *Credential
	NetworkConfiguration *NetworkConfiguration
}

TFCloudAccessKey represents the data used for export CloudAccess key

Jump to

Keyboard shortcuts

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