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
}

func NewAccessKeyCredential

func NewAccessKeyCredential(accessKeyId, accessKeySecret string) *AccessKeyCredential

type BaseCredential

type BaseCredential struct {
	AccessKeyId     string
	AccessKeySecret string
}

    Deprecated: Use AccessKeyCredential in this package instead.

    func NewBaseCredential

    func NewBaseCredential(accessKeyId, accessKeySecret string) *BaseCredential

      Deprecated: Use NewAccessKeyCredential in this package instead.

      func (*BaseCredential) ToAccessKeyCredential

      func (baseCred *BaseCredential) ToAccessKeyCredential() *AccessKeyCredential

      type BearerTokenCredential

      type BearerTokenCredential struct {
      	BearerToken string
      }

      func NewBearerTokenCredential

      func NewBearerTokenCredential(token string) *BearerTokenCredential

        NewBearerTokenCredential return a BearerTokenCredential object

        type EcsRamRoleCredential

        type EcsRamRoleCredential struct {
        	RoleName string
        }

        func NewEcsRamRoleCredential

        func NewEcsRamRoleCredential(roleName string) *EcsRamRoleCredential

        type RamRoleArnCredential

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

        func NewRamRoleArnCredential

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

        func NewRamRoleArnWithPolicyCredential

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

        type RsaKeyPairCredential

        type RsaKeyPairCredential struct {
        	PrivateKey        string
        	PublicKeyId       string
        	SessionExpiration int
        }

        func NewRsaKeyPairCredential

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

        type StsRoleArnCredential

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

          Deprecated: Use RamRoleArnCredential in this package instead.

          func NewStsRoleArnCredential

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

            Deprecated: Use RamRoleArnCredential in this package instead.

            func (*StsRoleArnCredential) ToRamRoleArnCredential

            func (oldCred *StsRoleArnCredential) ToRamRoleArnCredential() *RamRoleArnCredential

            type StsRoleNameOnEcsCredential

            type StsRoleNameOnEcsCredential struct {
            	RoleName string
            }

              Deprecated: Use EcsRamRoleCredential in this package instead.

              func NewStsRoleNameOnEcsCredential

              func NewStsRoleNameOnEcsCredential(roleName string) *StsRoleNameOnEcsCredential

                Deprecated: Use NewEcsRamRoleCredential in this package instead.

                func (*StsRoleNameOnEcsCredential) ToEcsRamRoleCredential

                func (oldCred *StsRoleNameOnEcsCredential) ToEcsRamRoleCredential() *EcsRamRoleCredential

                type StsTokenCredential

                type StsTokenCredential struct {
                	AccessKeyId       string
                	AccessKeySecret   string
                	AccessKeyStsToken string
                }

                func NewStsTokenCredential

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

                Directories

                Path Synopsis
                Package providers Deprecated
                Package providers Deprecated