Documentation ¶
Index ¶
- func GetProfileConfig(profile string) (aws.Config, error)
- type CodeCommitClient
- func (l *CodeCommitClient) CreatePR(targets []types.Target, title, desc string) (*codecommit.CreatePullRequestOutput, error)
- func (l *CodeCommitClient) DeleteBranch(repo string, branch string) (*codecommit.DeleteBranchOutput, error)
- func (l *CodeCommitClient) GetBranches(repoName string) ([]string, error)
- func (l *CodeCommitClient) GetDifferences(repositoryName, beforeCommitSpecifier, afterCommitSpecifier *string) ([]*codecommit.GetDifferencesOutput, error)
- func (l *CodeCommitClient) GetPRInfo(prID string) (*codecommit.GetPullRequestOutput, error)
- func (l *CodeCommitClient) ListPRs(repositoryName, authorArn string, status types.PullRequestStatusEnum) ([]string, error)
- type STSClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 (l *CodeCommitClient) GetPRInfo(prID string) (*codecommit.GetPullRequestOutput, error)
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 ¶
func NewSTSClient ¶
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`
Click to show internal directories.
Click to hide internal directories.