Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOIDCProvider ¶
func NewOIDCProvider(region, appName, providerName, roleName, UUID, network string, durationSeconds time.Duration) *oidcProvider
NewOIDCProvider create a new OIDC Provider
func NewOIDCProviderVPC ¶
func NewOIDCProviderVPC(region, appName, providerName, roleName, UUID string, durationSeconds time.Duration) *oidcProvider
NewOIDCProviderVPC create a new OIDC Provider with VPC network
Types ¶
type Client ¶
Client is the sdk client struct, each func corresponds to an OpenAPI
func NewClientWithStsToken ¶
func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)
NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
type Provider ¶
type Provider interface { AssumeRoleWithOIDC() (*sts.AssumeRoleWithOIDCResponse, error) NewClientWithStsToken(response *sts.AssumeRoleWithOIDCResponse) (*Client, error) GetStsTokenWithCache() (*sts.AssumeRoleWithOIDCResponse, error) GetClient() (*Client, error) }
Click to show internal directories.
Click to hide internal directories.