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 ¶
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
Click to show internal directories.
Click to hide internal directories.