auth

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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

type Client struct {
	sdk.Client
	// contains filtered or unexported fields
}

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 Empty

type Empty struct{}

func Get

func Get() *Empty

type Provider

type Provider interface {
	AssumeRoleWithOIDC() (*sts.AssumeRoleWithOIDCResponse, error)
	NewClientWithStsToken(response *sts.AssumeRoleWithOIDCResponse) (*Client, error)
	GetStsTokenWithCache() (*sts.AssumeRoleWithOIDCResponse, error)
	GetClient() (*Client, error)
}

type Singleton

type Singleton interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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