in

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingPath = errors.New("missing path in request")

ErrMissingPath Error

Functions

This section is empty.

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

Command struct for In

func NewCommand

func NewCommand(nexusclient nexusresource.NexusClient) *Command

NewCommand creates a new In command

func (*Command) Run

func (command *Command) Run(destinationDir string, request Request) (Response, error)

Run the command

type MetadataProvider

type MetadataProvider struct {
	// contains filtered or unexported fields
}

MetadataProvider struct

func (*MetadataProvider) GetSHA

func (provider *MetadataProvider) GetSHA(request Request, remotePath string) string

GetSHA returns the SHA for the provided remotePath

func (*MetadataProvider) GetURL

func (provider *MetadataProvider) GetURL(request Request, remotePath string) string

GetURL returns the Nexus URL for the provided remotePath

type Params

type Params struct {
	Unpack       bool `json:"unpack"`
	SkipDownload bool `json:"skip_download"`
}

Params struct for the In command

type Request

type Request struct {
	Source  models.Source  `json:"source"`
	Version models.Version `json:"version"`
	Params  Params         `json:"params"`
}

Request struct for the In command

type Response

type Response struct {
	Version  models.Version        `json:"version"`
	Metadata []models.MetadataPair `json:"metadata"`
}

Response struct of the In command

Jump to

Keyboard shortcuts

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