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