Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var QuayAPIEndpoint = "https://quay.io/api/v1/repository/%s/tag/%s/images"
QuayAPIEndpoint is the quay.io API endpoint used to look up tags: https://docs.quay.io/api/swagger/#!/tag - Any successful response indicates the tag exists - A 404 response means the tag does not exist This API call requires a valid OAuth bearer token with repo:read permissions
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct { Quay *QuayChecker ECR *ECRChecker }
type ECRChecker ¶
type ECRChecker struct {
AccessKeyID, SecretAccessKey string // AWS credentials scoped to ECR only
ECRClientFactoryFunc func(s *session.Session) ecriface.ECRAPI
}
func (ECRChecker) AllTagsExist ¶
AllTagsExist returns whether all tags exist in repo ([ecr server url]/[repo name]), and returns missing tags (if any)
type FakeChecker ¶
type FakeChecker struct {
AllTagsExistFunc func(tags []string, repo string) (bool, []string, error)
}
func (*FakeChecker) AllTagsExist ¶
type QuayChecker ¶
type QuayChecker struct { APIToken string // contains filtered or unexported fields }
func (QuayChecker) AllTagsExist ¶
AllTagsExist returns whether all tags exist in repo (quay.io/[repo name]), and returns missing tags (if any)
func (QuayChecker) IsQuay ¶
func (qc QuayChecker) IsQuay(repo string) bool
IsQuay returns whether repo is hosted on quay.io
Click to show internal directories.
Click to hide internal directories.