(repoName string)
| 50 | } |
| 51 | |
| 52 | func (c *Client) CreateRepository(repoName string) (*_ecr.Repository, error) { |
| 53 | if repoName == "" { |
| 54 | return nil, errors.New("repoName is empty") |
| 55 | } |
| 56 | |
| 57 | params := &_ecr.CreateRepositoryInput{ |
| 58 | RepositoryName: _aws.String(repoName), |
| 59 | } |
| 60 | |
| 61 | res, err := c.svc.CreateRepository(params) |
| 62 | if err != nil { |
| 63 | return nil, err |
| 64 | } |
| 65 | |
| 66 | return res.Repository, nil |
| 67 | } |
| 68 | |
| 69 | func (c *Client) GetDockerLogin() (string, string, string, error) { |
| 70 | params := &_ecr.GetAuthorizationTokenInput{} |