client

package
v0.0.0-prealpha-202304... Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProfileConfig

func GetProfileConfig(profile string) (aws.Config, error)

Types

type CodeCommitClient

type CodeCommitClient struct {
	Client *codecommit.Client
}

func NewCodeCommitClient

func NewCodeCommitClient(profile string) (*CodeCommitClient, error)

func (*CodeCommitClient) CreatePR

func (l *CodeCommitClient) CreatePR(targets []types.Target, title, desc string) (*codecommit.CreatePullRequestOutput, error)

func (*CodeCommitClient) DeleteBranch

func (l *CodeCommitClient) DeleteBranch(repo string, branch string) (*codecommit.DeleteBranchOutput, error)

func (*CodeCommitClient) GetBranches

func (l *CodeCommitClient) GetBranches(repoName string) ([]string, error)

func (*CodeCommitClient) GetDifferences

func (l *CodeCommitClient) GetDifferences(repositoryName, beforeCommitSpecifier, afterCommitSpecifier *string) ([]*codecommit.GetDifferencesOutput, error)

func (*CodeCommitClient) GetPRInfo

func (*CodeCommitClient) ListPRs

func (l *CodeCommitClient) ListPRs(repositoryName, authorArn string, status types.PullRequestStatusEnum) ([]string, error)

ListPRs returns a list of CodeCommit PR IDs

type STSClient

type STSClient struct {
	Client *sts.Client
}

func NewSTSClient

func NewSTSClient(profile string) (*STSClient, error)

NewSTSClient returns a convenient wrapper around the actual AWS STS SDK client

func (*STSClient) GetCallerIdentity

func (s *STSClient) GetCallerIdentity() (*sts.GetCallerIdentityOutput, error)

GetCallerIdentity returns the caller identity of the profile the associated client was created with. i.e. from `NewSTSClient`

Jump to

Keyboard shortcuts

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