lfsauthenticate

package
v9.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: MIT Imports: 6 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.CommandArgs) (*Client, error)

func (*Client) Authenticate

func (c *Client) Authenticate(action commandargs.CommandType, repo, userId string) (*Response, error)

type Request

type Request struct {
	Action commandargs.CommandType `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