vault

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiResponse

type ApiResponse struct {
	Status     string        `json:"status,omitempty"`
	Message    string        `json:"message,omitempty"`
	StatusCode int64         `json:"statusCode,omitempty"`
	Data       AwsCredential `json:"data,omitempty"`
}

func GetUserCredential

func GetUserCredential(cloudElementId string, apiUrl string) (apiResponse *ApiResponse, statusCode int, err error)

type AwsCredential

type AwsCredential struct {
	Region              string `json:"region,omitempty"`
	AccessKey           string `json:"accessKey,omitempty"`
	SecretKey           string `json:"secretKey,omitempty"`
	CrossAccountRoleArn string `json:"crossAccountRoleArn,omitempty"`
	ExternalId          string `json:"externalId,omitempty"`
}

type VaultResponse

type VaultResponse struct {
	RequestId     string        `json:"request_id,omitempty"`
	LeaseId       string        `json:"lease_id,omitempty"`
	Renewable     string        `json:"renewable,omitempty"`
	LeaseDuration int64         `json:"lease_duration,omitempty"`
	Data          AwsCredential `json:"data,omitempty"`
}

func GetAccountDetails

func GetAccountDetails(vaultUrl string, vaultToken string, accountNo string) (*VaultResponse, error)

func GetAccountDetailsForENV

func GetAccountDetailsForENV(vaultUrl string, vaultToken string, accountNo string) (*VaultResponse, error)

Jump to

Keyboard shortcuts

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