pull/26/head
Karolis Rusenas 2017-07-02 08:29:26 +01:00
parent 0bb63cae48
commit 98642fe8fb
2 changed files with 10 additions and 2 deletions

View File

@ -104,7 +104,12 @@ If you don't want to expose your Keel service - I would recommend using [https:/
Since only the owners of docker registries can control webhooks - it's sometimes convenient to use
polling. Be aware that registries can be rate limited so it's a good practice to set up reasonable polling intervals.
```
keel.sh/trigger=poll
keel.sh/pollSchedule=@every 1m
keel.sh/registryUsername=username_secret_ref
keel.sh/registryPassword=password_secret_ref
```
### Step 2: Kubernetes

View File

@ -11,12 +11,15 @@ var (
ErrTagNotSupplied = errors.New("tag not supplied")
)
// Repository - holds repository related info
type Repository struct {
Name string
Tags []string
Tags []string // available tags
}
type Client interface {
Get(opts Opts) (*Repository, error)
Digest(opts Opts) (digest string, err error)
}
func New() *DefaultClient {