You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
707 B
Go
28 lines
707 B
Go
// Copyright 2019 Drone.IO Inc. All rights reserved.
|
|
// Use of this source code is governed by the Polyform License
|
|
// that can be found in the LICENSE file.
|
|
|
|
// Package registry provides registry credentials used
|
|
// to pull private images from a registry.
|
|
package registry
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/drone/drone-go/drone"
|
|
)
|
|
|
|
// Request provides arguments for requesting a secret from
|
|
// a secret Provider.
|
|
type Request struct {
|
|
Repo *drone.Repo
|
|
Build *drone.Build
|
|
}
|
|
|
|
// Provider is the interface that must be implemented by a
|
|
// registry provider.
|
|
type Provider interface {
|
|
// Find finds and returns a list of registry credentials.
|
|
List(context.Context, *Request) ([]*drone.Registry, error)
|
|
}
|