Documentation ¶
Index ¶
- Variables
- type Author
- type Client
- func (c *Client) AddKey(ctx context.Context, uName string, key map[string]string) error
- func (c *Client) GetDiff(ctx context.Context, repo, previousCommit, lastCommit string) (string, error)
- func (c *Client) GetHealthCheck(ctx context.Context) ([]byte, error)
- func (c *Client) GetLog(ctx context.Context, repo, ref, path string, total int) (Log, error)
- func (c *Client) GetRepository(ctx context.Context, name string) (repository, error)
- func (c *Client) GrantAccess(ctx context.Context, rNames, uNames []string) error
- func (c *Client) ListKeys(ctx context.Context, uName string) (map[string]string, error)
- func (c *Client) NewRepository(ctx context.Context, name string, users []string, isPublic bool) (repository, error)
- func (c *Client) NewUser(ctx context.Context, name string, keys map[string]string) (user, error)
- func (c *Client) RemoveKey(ctx context.Context, uName, kName string) error
- func (c *Client) RemoveRepository(ctx context.Context, name string) error
- func (c *Client) RemoveUser(ctx context.Context, name string) error
- func (c *Client) RevokeAccess(ctx context.Context, rNames, uNames []string) error
- func (c *Client) UpdateKey(ctx context.Context, uName, kName, kBody string) error
- type Commit
- type GitTime
- type HTTPError
- type Log
Constants ¶
This section is empty.
Variables ¶
View Source
var GitTimeFormat = "Mon Jan _2 15:04:05 2006 -0700"
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) GetDiff ¶
func (c *Client) GetDiff(ctx context.Context, repo, previousCommit, lastCommit string) (string, error)
GetDiff gets diff output between commits from a repository in Gandalf server.
func (*Client) GetHealthCheck ¶
GetHealthCheck gets healthcheck request output in Gandalf server.
func (*Client) GetRepository ¶
GetRepository gets metadata from a repository in Gandalf server.
func (*Client) GrantAccess ¶
GrantAccess grants access to N users into N repositories.
func (*Client) NewRepository ¶
func (c *Client) NewRepository(ctx context.Context, name string, users []string, isPublic bool) (repository, error)
NewRepository creates a new repository with a given name and, grants access to a list of users and defines whether the repository is public.
func (*Client) RemoveRepository ¶
RemoveRepository removes a repository.
func (*Client) RemoveUser ¶
RemoveUser removes a user.
func (*Client) RevokeAccess ¶
RevokeAccess revokes access from N users from N repositories.
type GitTime ¶
func (*GitTime) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.