Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { GetFile(repository string, path string, branch string) ([]byte, error) GetProject(projectID string) (*gitlab.Project, error) GetReleaseArtifact(projectID int, releaseTag string, artifactPath string) ([]byte, error) }
Client holds the method signatures for a GitLab client.
func NewClient ¶
func NewClient(baseURL string, accessToken string, getFileFunc GetFileFunc, getProjectFunc GetProjectFunc, getReleaseArtifact GetReleaseArtifactFunc, options ...gitlab.ClientOptionFunc) (Client, error)
NewClient returns a new GitLab client with the provided configuration
type ClientGetter ¶
type ClientGetter struct{}
ClientGetter is an interface for getting a GitLab client
func (*ClientGetter) GetClient ¶
func (clientGetter *ClientGetter) GetClient(baseURL string, accessToken string, options ...gitlab.ClientOptionFunc) (Client, error)
GetClient returns a new GitLab client
Click to show internal directories.
Click to hide internal directories.