Documentation
¶
Index ¶
- func DeleteKey(client *api.RESTClient, keyID int) error
- func FetchAuthenticatedUser(client *api.RESTClient) (string, error)
- func FetchScopes(client *api.RESTClient) (string, error)
- func FetchToken(ctx context.Context) (*oauth2.Token, error)
- func Missing(haystack, needle []string) []string
- func NewClient(hostname string, authToken string) (*api.RESTClient, error)
- func UploadKey(client *api.RESTClient, keyFile io.Reader, title string) error
- type SSHKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchAuthenticatedUser ¶
func FetchAuthenticatedUser(client *api.RESTClient) (string, error)
func FetchScopes ¶
func FetchScopes(client *api.RESTClient) (string, error)
Get scopes available to the auth token.
func UploadKey ¶ added in v0.0.3
idempotently upload ssh key adapted from https://github.com/cli/cli/blob/f11f0966959080169dfa7604d8a1a3a60170f417/pkg/cmd/ssh-key/add/http.go#L17
Types ¶
Click to show internal directories.
Click to hide internal directories.