Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResourcePlugin ¶
func NewResourcePlugin(config string) (apiv1.ResourcePlugin, error)
Types ¶
type Attributes ¶ added in v0.3.0
type Configuration ¶
type Gist ¶
type Gist struct { ID string Attributes }
type GistManager ¶
type GistManager interface { CreateGist(ctx context.Context, gist Gist) (*Gist, error) GetGist(ctx context.Context, id string) (*Gist, error) DeleteGist(ctx context.Context, id string) error UpdateGist(ctx context.Context, gist Gist) error }
GistManager knows how to manage Gists with external storage.
func NewAPIGistManager ¶
func NewAPIGistManager(ghToken string, apiURL string) GistManager
NewAPIGistManager returns a Gist manager implementation using Github's HTTP rest API. More info here: https://docs.github.com/en/rest/gists/gists.
Click to show internal directories.
Click to hide internal directories.