Documentation ¶
Index ¶
- type AuthFS
- func (a *AuthFS) CheckGithubAuth(ctx context.Context) error
- func (a *AuthFS) Close()
- func (a *AuthFS) GetGithubUserLogin(ctx context.Context) (string, string, error)
- func (a *AuthFS) Login(ctx context.Context) error
- func (a *AuthFS) Logout(ctx context.Context) error
- func (a *AuthFS) Status(ctx context.Context)
- type GithubClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthFS ¶
func NewAuthFS ¶
func NewAuthFS() *AuthFS
Returns an AuthFS object, responsible for managing authentication on the local FS. This is meant to be used by the cli on the user's local filesystem.
func (*AuthFS) GetGithubUserLogin ¶
type GithubClient ¶
A simple wrapper around the github client, exposing additional functionality relevant to lekko.
func NewGithubClient ¶
func NewGithubClient(h *http.Client) *GithubClient
func NewGithubClientFromToken ¶
func NewGithubClientFromToken(ctx context.Context, token string) *GithubClient
Click to show internal directories.
Click to hide internal directories.