get opts
parent
0bb63cae48
commit
98642fe8fb
|
@ -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
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue