hub

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: Apache-2.0 Imports: 12 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 {
	URL        string
	Token      string
	HttpClient *http.Client
}

func NewClient

func NewClient() (*Client, error)

func (*Client) GenerateSignedURLs

func (c *Client) GenerateSignedURLs(remotePaths []string, requestType GenerateSignedURLsRequestType) (*GenerateSignedURLsResponse, error)

type GenerateSignedURLsRequest

type GenerateSignedURLsRequest struct {
	Paths []string                      `json:"paths,omitempty"`
	Type  GenerateSignedURLsRequestType `json:"type,omitempty"`
}

type GenerateSignedURLsRequestType

type GenerateSignedURLsRequestType int
const (
	GenerateSignedURLsRequestPUSH GenerateSignedURLsRequestType = iota
	GenerateSignedURLsRequestPUSHFORCE
	GenerateSignedURLsRequestPULL
	GenerateSignedURLsRequestYANK
)

type GenerateSignedURLsResponse

type GenerateSignedURLsResponse struct {
	Urls  []*api.SignedURL `json:"urls,omitempty"`
	Error string           `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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