Documentation
¶
Index ¶
- Variables
- func List(ctx context.Context, path string, opt ...LoaderOption) ([]string, error)
- func ListFile(ctx context.Context, path string) ([]string, error)
- func Setup(options ...Option)
- type File
- func (f *File) Add(o ...FileOption) *File
- func (f *File) GetBody() []byte
- func (f *File) Hash() (string, bool)
- func (f *File) Reader() io.ReadSeeker
- func (f *File) Unmarshal(obj any) error
- func (f *File) Version() (string, bool)
- func (f *File) Write(p []byte) (n int, err error)
- func (f *File) WriteBody(p []byte) *File
- type FileOption
- type ListFunc
- type Loader
- type LoaderFunc
- type LoaderOption
- type MapLoader
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotSupported = errors.New("does not supported")
Functions ¶
Types ¶
type File ¶
type File struct {
Type string
Bucket string
Path string
// contains filtered or unexported fields
}
func (*File) Add ¶
func (f *File) Add(o ...FileOption) *File
func (*File) Reader ¶
func (f *File) Reader() io.ReadSeeker
type FileOption ¶
type FileOption func(f *File)
func WithHash ¶
func WithHash(hash *string) FileOption
func WithVersion ¶
func WithVersion(version *string) FileOption
type LoaderOption ¶
type LoaderOption func(loader Loader)
Directories
¶
| Path | Synopsis |
|---|---|
|
github-loader
module
|
|
|
gs
module
|
|
|
gs-loader
module
|
|
|
http
module
|
|
|
http-loader
module
|
|
|
s3
module
|
|
|
s3-loader
module
|
|
|
ssm-loader
module
|
Click to show internal directories.
Click to hide internal directories.