Documentation
¶
Overview ¶
Package publish defines methods for publishing a v1.Image reference and returning the published digest for embedding back into a Kubernetes yaml.
Index ¶
Constants ¶
const (
// LocalDomain is a sentinel "registry" that represents side-loading images into the daemon.
LocalDomain = "ko.local"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { // Publish uploads the given v1.Image to a registry incorporating the // provided string into the image's repository name. Returns the digest // of the published image. Publish(v1.Image, string) (name.Reference, error) }
Interface abstracts different methods for publishing images.
func NewCaching ¶
NewCaching wraps the provided publish.Interface in an implementation that shares publish results for a given path until the passed image object changes.
type Namer ¶
Namer is a function from a supported import path to the portion of the resulting image name that follows the "base" repository name.
type Option ¶
type Option func(*defaultOpener) error
Option is a functional option for NewDefault.
func WithAuth ¶
func WithAuth(auth authn.Authenticator) Option
WithAuth is a functional option for overriding the default authenticator on a default publisher.
func WithAuthFromKeychain ¶
WithAuthFromKeychain is a functional option for overriding the default authenticator on a default publisher using an authn.Keychain
func WithNamer ¶
WithNamer is a functional option for overriding the image naming behavior in our default publisher.
func WithTransport ¶
func WithTransport(t http.RoundTripper) Option
WithTransport is a functional option for overriding the default transport on a default publisher.