Documentation ¶
Index ¶
- type Destination
- type File
- type GithubAPI
- func (g *GithubAPI) Create(ctx context.Context, i item.Item) error
- func (g *GithubAPI) Delete(ctx context.Context, i item.Item, hash string) error
- func (g *GithubAPI) Hash(ctx context.Context, i item.Item) (string, error)
- func (g *GithubAPI) Update(ctx context.Context, i item.Item, hash string) error
- type Memory
- type RepoCfg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Destination ¶
type Destination interface { Hash(ctx context.Context, i item.Item) (string, error) Create(ctx context.Context, i item.Item) error Update(ctx context.Context, i item.Item, hash string) error Delete(ctx context.Context, i item.Item, hash string) error }
Destination stores Items.
type File ¶
type File struct {
// contains filtered or unexported fields
}
File takes a directory in the filesystem as destination.
type GithubAPI ¶
type GithubAPI struct {
// contains filtered or unexported fields
}
GithubAPI stores files using github API.
func NewGihubAPI ¶
NewGihubAPI returns a new GithubAPI destination.
Click to show internal directories.
Click to hide internal directories.