models

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetadataPair

type MetadataPair struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

MetadataPair struct

type RepositoryItem

type RepositoryItem struct {
	ID     string                `json:"id"`
	Group  string                `json:"group"`
	Name   string                `json:"name"`
	Assets []RepositoryItemAsset `json:"assets"`
}

RepositoryItem struct represent a Component in Nexus

type RepositoryItemAsset

type RepositoryItemAsset struct {
	DownloadURL string                       `json:"downloadUrl"`
	ID          string                       `json:"id"`
	Checksum    RepositoryItemAssetsChecksum `json:"checksum"`
}

RepositoryItemAsset struct represent an Asset in Nexus

type RepositoryItemAssetsChecksum

type RepositoryItemAssetsChecksum struct {
	Sha1   string `json:"sha1"`
	Sha256 string `json:"sha256"`
	Sha512 string `json:"sha512"`
	Md5    string `json:"md5"`
}

RepositoryItemAssetsChecksum struct represent an Assets Checksum in Nexus

type RespositoryItems

type RespositoryItems struct {
	Items             []RepositoryItem `json:"items"`
	ContinuationToken string           `json:"continuationToken"`
}

RespositoryItems struct is a collection of RepositoryItems

type Source

type Source struct {
	URL        string `json:"url"`
	Repository string `json:"repository"`
	Username   string `json:"username"`
	Password   string `json:"password"`
	Group      string `json:"group"`
	Regexp     string `json:"regexp"`
	Timeout    int    `json:"timeout"`
	Debug      bool   `json:"debug"`
}

Source Struct for the Nexus Resource

func (Source) IsValid

func (source Source) IsValid() (bool, string)

IsValid validates the provided Source

type Version

type Version struct {
	Path string `json:"path,omitempty"`
}

Version struct

Jump to

Keyboard shortcuts

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