credentials

package
v0.0.0-...-4c37ff3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 0 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessKeyCredential

type AccessKeyCredential struct {
	AccessKeyId     string
	AccessKeySecret string
}

AccessKeyCredential is kind of credential

func NewAccessKeyCredential

func NewAccessKeyCredential(accessKeyId, accessKeySecret string) *AccessKeyCredential

NewAccessKeyCredential returns AccessKeyCredential

type BaseCredential

type BaseCredential struct {
	AccessKeyId     string
	AccessKeySecret string
}

BaseCredential is deprecated: Use AccessKeyCredential in this package instead.

func NewBaseCredential

func NewBaseCredential(accessKeyId, accessKeySecret string) *BaseCredential

NewBaseCredential is deprecated: Use NewAccessKeyCredential in this package instead.

func (*BaseCredential) ToAccessKeyCredential

func (baseCred *BaseCredential) ToAccessKeyCredential() *AccessKeyCredential

ToAccessKeyCredential returns AccessKeyCredential

type EcsRamRoleCredential

type EcsRamRoleCredential struct {
	RoleName string
}

EcsRamRoleCredential is kind of credential on ECS

func NewEcsRamRoleCredential

func NewEcsRamRoleCredential(roleName string) *EcsRamRoleCredential

NewEcsRamRoleCredential returns EcsRamRoleCredential

type OIDCCredential

type OIDCCredential struct {
	RoleArn               string
	OIDCProviderArn       string
	OIDCTokenFilePath     string
	RoleSessionName       string
	RoleSessionExpiration int
}

OIDCCredential is a kind of credentials

func NewOIDCRoleArnCredential

func NewOIDCRoleArnCredential(roleArn, OIDCProviderArn, OIDCTokenFilePath, RoleSessionName string, RoleSessionExpiration int) *OIDCCredential

NewOIDCRoleArnCredential returns OIDCCredential

type RamRoleArnCredential

type RamRoleArnCredential struct {
	AccessKeyId           string
	AccessKeySecret       string
	RoleArn               string
	RoleSessionName       string
	RoleSessionExpiration int
}

RamRoleArnCredential is going to replace StsRoleArnCredential

func NewRamRoleArnCredential

func NewRamRoleArnCredential(accessKeyId, accessKeySecret, roleArn, roleSessionName string, roleSessionExpiration int) *RamRoleArnCredential

NewRamRoleArnCredential returns RamRoleArnCredential

type RsaKeyPairCredential

type RsaKeyPairCredential struct {
	PrivateKey        string
	PublicKeyId       string
	SessionExpiration int
}

RsaKeyPairCredential is kind of credential

func NewRsaKeyPairCredential

func NewRsaKeyPairCredential(privateKey, publicKeyId string, sessionExpiration int) *RsaKeyPairCredential

NewRsaKeyPairCredential returns RsaKeyPairCredential

type StsRoleArnCredential

type StsRoleArnCredential struct {
	AccessKeyId           string
	AccessKeySecret       string
	RoleArn               string
	RoleSessionName       string
	RoleSessionExpiration int
}

StsRoleArnCredential is deprecated: Use RamRoleArnCredential in this package instead.

func NewStsRoleArnCredential

func NewStsRoleArnCredential(accessKeyId, accessKeySecret, roleArn, roleSessionName string, roleSessionExpiration int) *StsRoleArnCredential

NewStsRoleArnCredential is deprecated: Use RamRoleArnCredential in this package instead.

func (*StsRoleArnCredential) ToRamRoleArnCredential

func (oldCred *StsRoleArnCredential) ToRamRoleArnCredential() *RamRoleArnCredential

ToRamRoleArnCredential returns RamRoleArnCredential

type StsRoleNameOnEcsCredential

type StsRoleNameOnEcsCredential struct {
	RoleName string
}

StsRoleNameOnEcsCredential is deprecated: Use EcsRamRoleCredential in this package instead.

func NewStsRoleNameOnEcsCredential

func NewStsRoleNameOnEcsCredential(roleName string) *StsRoleNameOnEcsCredential

NewStsRoleNameOnEcsCredential is deprecated: Use NewEcsRamRoleCredential in this package instead.

func (*StsRoleNameOnEcsCredential) ToEcsRamRoleCredential

func (oldCred *StsRoleNameOnEcsCredential) ToEcsRamRoleCredential() *EcsRamRoleCredential

ToEcsRamRoleCredential is deprecated

type StsTokenCredential

type StsTokenCredential struct {
	AccessKeyId       string
	AccessKeySecret   string
	AccessKeyStsToken string
}

StsTokenCredential is kind of credential

func NewStsTokenCredential

func NewStsTokenCredential(accessKeyId, accessKeySecret, accessKeyStsToken string) *StsTokenCredential

NewStsTokenCredential returns StsTokenCredential

Jump to

Keyboard shortcuts

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