Documentation ¶
Overview ¶
Package github contains utilities for interacting with the Github API.
Index ¶
- func AddFlags(fl *flag.FlagSet) func() ContentStore
- type Client
- func (cl *Client) CreateFile(ctx context.Context, msg, path string, content []byte) error
- func (cl *Client) GetFile(ctx context.Context, path string) (contents string, err error)
- func (cl *Client) Ping(ctx context.Context) error
- func (cl *Client) UpdateFile(ctx context.Context, msg, path string, content []byte) error
- type ContentStore
- type ErrorClient
- type MockClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFlags ¶
func AddFlags(fl *flag.FlagSet) func() ContentStore
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateFile ¶
type ContentStore ¶
type ErrorClient ¶
type ErrorClient struct {
Error error
}
ErrorClient is a test client that just always returns an error.
func (ErrorClient) CreateFile ¶
func (ErrorClient) UpdateFile ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
func NewMockClient ¶
func NewMockClient(dir string) *MockClient
func (*MockClient) CreateFile ¶
func (*MockClient) UpdateFile ¶
Click to show internal directories.
Click to hide internal directories.