service

package
v0.0.0-...-c5ff3dd Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TODO: Change SID?
	CloudoregPolicy = `` /* 189-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSService

type AWSService interface {
	AssumeRole(awsARN arn.ARN) (*credentials.Credentials, error)
	GetCallerIdentity(sess ...*session.Session) (*sts.GetCallerIdentityOutput, error)
	CreateCustomerSession(creds *credentials.Credentials) (*session.Session, error)
}

type AWSServiceImpl

type AWSServiceImpl struct {
	AppSession *session.Session
}

func (*AWSServiceImpl) AssumeRole

func (as *AWSServiceImpl) AssumeRole(awsARN arn.ARN) (*credentials.Credentials, error)

func (*AWSServiceImpl) CreateCustomerSession

func (as *AWSServiceImpl) CreateCustomerSession(creds *credentials.Credentials) (*session.Session, error)

func (*AWSServiceImpl) GetCallerIdentity

func (as *AWSServiceImpl) GetCallerIdentity(s ...*session.Session) (*sts.GetCallerIdentityOutput, error)

Jump to

Keyboard shortcuts

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