Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // Tags get all tags for a given project Tags(ctx context.Context, project, tagPrefix string) ([]*gitlabdata.Tag, error) // File gets a file with given path and ref (branch, tag or commit SHA) from a given project. Returns os.ErrNotExist // if gitlab API responses with 404 HTTP status code File(ctx context.Context, project, path, ref string) ([]byte, error) // ProjectInfo gets an info for a given project ProjectInfo(ctx context.Context, project string) (*gitlabdata.Project, error) // Archive gets an archive for a given project. Needs explicit numeric project ID unlike other methods Archive(ctx context.Context, projectID int, ref string) (io.ReadCloser, error) // Commits get commits history for given branch, tag or commit (via SHA). Commits(ctx context.Context, project string, ref string) ([]*gitlabdata.Commit, error) }
Client an implementation of gitlab API access for a given user
Click to show internal directories.
Click to hide internal directories.