lfsauthenticate

package
v14.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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
}

func NewClient

func NewClient(config *config.Config, args *commandargs.Shell) (*Client, error)

func (*Client) Authenticate

func (c *Client) Authenticate(ctx context.Context, operation, repo, userId string) (*Response, error)

type Request

type Request struct {
	Operation string `json:"operation"`
	Repo      string `json:"project"`
	KeyId     string `json:"key_id,omitempty"`
	UserId    string `json:"user_id,omitempty"`
}

type Response

type Response struct {
	Username  string `json:"username"`
	LfsToken  string `json:"lfs_token"`
	RepoPath  string `json:"repository_http_path"`
	ExpiresIn int    `json:"expires_in"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL