Documentation ¶
Overview ¶
Package gitea contains Gitea client specific functionality.
Index ¶
- type Client
- func (g *Client) AddReadOnlyUserToRepository(ctx context.Context, repo, username string) error
- func (g *Client) CreatePackageRegistryToken(ctx context.Context) (string, error)
- func (g *Client) CreateReadOnlyUser(ctx context.Context, username, password string) error
- func (g *Client) DoRequest(ctx context.Context, method string, path string, body []byte) (_ []byte, _ int, err error)
- func (g *Client) UpdateGitUser(ctx context.Context, username string, password string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a client that communicates with the Gitea API.
func (*Client) AddReadOnlyUserToRepository ¶
AddReadOnlyUserToRepository adds a read only user to a repository.
func (*Client) CreatePackageRegistryToken ¶
CreatePackageRegistryToken creates or replaces an existing package registry token.
func (*Client) CreateReadOnlyUser ¶
CreateReadOnlyUser creates a non-admin Zarf user.
Click to show internal directories.
Click to hide internal directories.