Documentation
¶
Index ¶
- func IsSupportedFile(name string) bool
- func ToDir(path string) string
- type Aggregate
- type Error
- type File
- type FileSystem
- type Git
- type HTTP
- type Noop
- type Source
- func Create(str string) (Source, error)
- func CreateFrom(u *url.URL) (Source, error)
- func New(locations ...string) (Source, error)
- func NewFileSystem(u *url.URL) (Source, error)
- func NewGit(u *url.URL) (Source, error)
- func NewGitFrom(repo *git.Repository, filter glob.Glob) (Source, error)
- func NewHTTP(u *url.URL) (Source, error)
- type SourceFactory
- type SourceType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSupportedFile ¶ added in v0.5.0
Types ¶
type Aggregate ¶
type Aggregate struct {
// contains filtered or unexported fields
}
func NewAggregate ¶
type Error ¶ added in v1.1.0
func NewErrorFrom ¶ added in v1.1.0
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
type HTTP ¶ added in v1.1.0
type HTTP struct {
// contains filtered or unexported fields
}
type Source ¶
type Source interface { Read(ctx context.Context) (onNext <-chan File, onError <-chan Error) Resolve(ctx context.Context, url *url.URL) (onNext <-chan File, onError <-chan Error) }
func NewGitFrom ¶ added in v1.1.0
type SourceType ¶ added in v1.1.0
type SourceType int
const ( SourceTypeUnknown SourceType = 0 SourceTypeFS SourceType = 1 SourceTypeHTTP SourceType = 2 SourceTypeGIT SourceType = 3 )
func GetType ¶ added in v1.1.0
func GetType(u *url.URL) SourceType
Click to show internal directories.
Click to hide internal directories.