Documentation
¶
Index ¶
- Variables
- type Author
- type Client
- func (c *Client) AddKey(uName string, key map[string]string) error
- func (c *Client) GetDiff(repo, previousCommit, lastCommit string) (string, error)
- func (c *Client) GetHealthCheck() ([]byte, error)
- func (c *Client) GetLog(repo, ref, path string, total int) (Log, error)
- func (c *Client) GetRepository(name string) (repository, error)
- func (c *Client) GrantAccess(rNames, uNames []string) error
- func (c *Client) ListKeys(uName string) (map[string]string, error)
- func (c *Client) NewRepository(name string, users []string, isPublic bool) (repository, error)
- func (c *Client) NewUser(name string, keys map[string]string) (user, error)
- func (c *Client) RemoveKey(uName, kName string) error
- func (c *Client) RemoveRepository(name string) error
- func (c *Client) RemoveUser(name string) error
- func (c *Client) RevokeAccess(rNames, uNames []string) error
- func (c *Client) UpdateKey(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 ¶
type Client struct {
Endpoint string
}
func (*Client) GetDiff ¶
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 ¶
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.
