Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAuth ¶
func WithAuth(auth transport.AuthMethod) containers.Option[Source]
WithAuth returns an option which configures the auth method used by the provided source.
func WithPollInterval ¶
func WithPollInterval(tick time.Duration) containers.Option[Source]
WithPollInterval configures the interval in which origin is polled to discover any updates to the target reference.
Types ¶
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source is an implementation of storage/fs.FSSource This implementation is backed by a Git repository and it tracks an upstream reference. When subscribing to this source, the upstream reference is tracked by polling the upstream on a configurable interval.
func NewSource ¶
func NewSource(logger *zap.Logger, url string, opts ...containers.Option[Source]) (_ *Source, err error)
NewSource constructs and configures a Source. The source uses the connection and credential details provided to build fs.FS implementations around a target git repository.
Click to show internal directories.
Click to hide internal directories.