Documentation
¶
Index ¶
- func List(ctx context.Context, c *github.Client, path string) ([]string, error)
- func Load(ctx context.Context, c *github.Client, path string) (*fileloaders.File, error)
- func New(c *github.Client) fileloaders.Loader
- func With() fileloaders.Option
- func WithAuthToken(token string) fileloaders.LoaderOption
- func WithClient(api *github.Client) fileloaders.Option
- type Builder
- type Loader
- type LoaderBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func With ¶
func With() fileloaders.Option
func WithAuthToken ¶
func WithAuthToken(token string) fileloaders.LoaderOption
func WithClient ¶
func WithClient(api *github.Client) fileloaders.Option
Types ¶
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
func (*Loader) List ¶
func (l *Loader) List(ctx context.Context, path string, opt ...fileloaders.LoaderOption) ([]string, error)
func (*Loader) Load ¶
func (l *Loader) Load(ctx context.Context, path string, opt ...fileloaders.LoaderOption) (*fileloaders.File, error)
type LoaderBuilder ¶
type LoaderBuilder struct {
// contains filtered or unexported fields
}
func (*LoaderBuilder) List ¶
func (b *LoaderBuilder) List(ctx context.Context, path string, opt ...fileloaders.LoaderOption) ([]string, error)
func (*LoaderBuilder) Load ¶
func (b *LoaderBuilder) Load(ctx context.Context, path string, opt ...fileloaders.LoaderOption) (*fileloaders.File, error)
Click to show internal directories.
Click to hide internal directories.