aliyungo: github.com/denverdino/aliyungo/sts Index | Files

package sts

import "github.com/denverdino/aliyungo/sts"

Index

Package Files

assume_role.go client.go get_caller_identity.go

Constants

const (
    // STSDefaultEndpoint is the default API endpoint of STS services
    STSDefaultEndpoint = "https://sts.aliyuncs.com"
    STSAPIVersion      = "2015-04-01"
)

type AssumeRoleRequest Uses

type AssumeRoleRequest struct {
    RoleArn         string
    RoleSessionName string
    DurationSeconds int
    Policy          string
}

type AssumeRoleResponse Uses

type AssumeRoleResponse struct {
    common.Response
    AssumedRoleUser AssumedRoleUser
    Credentials     AssumedRoleUserCredentials
}

type AssumedRoleUser Uses

type AssumedRoleUser struct {
    AssumedRoleId string
    Arn           string
}

type AssumedRoleUserCredentials Uses

type AssumedRoleUserCredentials struct {
    AccessKeySecret string
    AccessKeyId     string
    Expiration      string
    SecurityToken   string
}

type GetCallerIdentityRequest Uses

type GetCallerIdentityRequest struct {
}

type GetCallerIdentityResponse Uses

type GetCallerIdentityResponse struct {
    common.Response
    AccountId string
    UserId    string
    Arn       string
}

type STSClient Uses

type STSClient struct {
    common.Client
}

func NewClient Uses

func NewClient(accessKeyId string, accessKeySecret string) *STSClient

func NewClientWithEndpoint Uses

func NewClientWithEndpoint(endpoint string, accessKeyId string, accessKeySecret string) *STSClient

func NewClientWithEndpointAndSecurityToken Uses

func NewClientWithEndpointAndSecurityToken(endpoint string, accessKeyId string, accessKeySecret string, securityToken string) *STSClient

func NewClientWithSecurityToken Uses

func NewClientWithSecurityToken(accessKeyId string, accessKeySecret string, securityToken string) *STSClient

func (*STSClient) AssumeRole Uses

func (c *STSClient) AssumeRole(r AssumeRoleRequest) (AssumeRoleResponse, error)

func (*STSClient) GetCallerIdentity Uses

func (c *STSClient) GetCallerIdentity() (*GetCallerIdentityResponse, error)

Package sts imports 2 packages (graph) and is imported by 1 packages. Updated 2019-04-16. Refresh now. Tools for package owners.