inventory

package
v0.26.18 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockInventory

func NewMockInventory() *mockInventory

Types

type Inventory

type Inventory interface {
	QueryReleaseMetadata(project, name, version string) (*core.ReleaseMetadata, error)
	QueryNextVersion(project, name, versionPrefix string) (string, error)
	DownloadRelease(project, name, version, targetFile string) error
	UploadRelease(project, releasePath string, metadata *core.ReleaseMetadata) error
	GetAuthMethods(url string) (map[string]*types.AuthMethod, error)
	Login(url, username, password string) (string, error)
	LoginWithBasicAuth(url, username, password string) error

	ListProjects() ([]string, error)
	ListApplications(project string) ([]string, error)
	ListVersions(project, app string) ([]string, error)
}

func NewLocalInventory

func NewLocalInventory() Inventory

func NewRemoteInventory

func NewRemoteInventory(apiServer, authToken, basicAuthUsername, basicAuthPassword string, insecureSkipVerify bool) Inventory

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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