Documentation ¶
Index ¶
Constants ¶
View Source
const ( DockerImageScheme = "docker-image" GitScheme = "git" LocalScheme = "local" HttpScheme = "http" HttpsScheme = "https" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitIdentifier ¶
func NewGitIdentifier ¶
func NewGitIdentifier(remoteURL string) (*GitIdentifier, error)
func (*GitIdentifier) ID ¶
func (i *GitIdentifier) ID() string
type HttpIdentifier ¶
type HttpIdentifier struct { TLS bool URL string Checksum digest.Digest Filename string Perm int UID int GID int }
func NewHttpIdentifier ¶
func NewHttpIdentifier(str string, tls bool) (*HttpIdentifier, error)
func (*HttpIdentifier) ID ¶
func (_ *HttpIdentifier) ID() string
type Identifier ¶
type Identifier interface {
ID() string // until sources are in process this string comparison could be avoided
}
func FromString ¶
func FromString(s string) (Identifier, error)
type ImageIdentifier ¶
func NewImageIdentifier ¶
func NewImageIdentifier(str string) (*ImageIdentifier, error)
func (*ImageIdentifier) ID ¶
func (_ *ImageIdentifier) ID() string
type LocalIdentifier ¶
type LocalIdentifier struct { Name string SessionID string IncludePatterns []string ExcludePatterns []string }
func NewLocalIdentifier ¶
func NewLocalIdentifier(str string) (*LocalIdentifier, error)
func (*LocalIdentifier) ID ¶
func (*LocalIdentifier) ID() string
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) Resolve ¶
func (sm *Manager) Resolve(ctx context.Context, id Identifier) (SourceInstance, error)
type Source ¶
type Source interface { ID() string Resolve(ctx context.Context, id Identifier) (SourceInstance, error) }
Click to show internal directories.
Click to hide internal directories.