Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is the registered list of upstreams
func GetRegistry ¶
func GetRegistry() Registry
GetRegistry returns the current and globaly available Registry instance
func NewRegistry ¶
func NewRegistry() Registry
NewRegistry inits a new instance of Registry with default values
type Upstream ¶
type Upstream interface {
// APITokenEnvVar specifies which ENV var holds the API token for the upstream
APITokenEnvVar() string
// Publish a release to the upstream
Publish(ctx context.Context, apiToken string, r *release.Release) (*release.UpstreamResult, error)
}
Upstream is the interface to pushlish releases
Click to show internal directories.
Click to hide internal directories.