publish

package
v0.0.0-...-64567a0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2017 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() cli.Command

func DistsNotBuilt

func DistsNotBuilt(buildSpecWithDeps []params.ProductBuildSpecWithDeps) []params.ProductBuildSpecWithDeps

func Run

func Run(buildSpecWithDeps params.ProductBuildSpecWithDeps, publisher Publisher, almanacInfo *AlmanacInfo, stdout io.Writer) error

Types

type AlmanacInfo

type AlmanacInfo struct {
	URL      string
	AccessID string
	Secret   string
	Release  bool
}

func (*AlmanacInfo) CheckConnectivity

func (a *AlmanacInfo) CheckConnectivity(client *http.Client) error

func (*AlmanacInfo) CheckProduct

func (a *AlmanacInfo) CheckProduct(client *http.Client, product string) error

func (*AlmanacInfo) CheckProductBranch

func (a *AlmanacInfo) CheckProductBranch(client *http.Client, product, branch string) error

func (*AlmanacInfo) CreateProduct

func (a *AlmanacInfo) CreateProduct(client *http.Client, product string) error

func (*AlmanacInfo) CreateProductBranch

func (a *AlmanacInfo) CreateProductBranch(client *http.Client, product, branch string) error

func (*AlmanacInfo) CreateUnit

func (a *AlmanacInfo) CreateUnit(client *http.Client, unit AlmanacUnit, version string, stdout io.Writer) error

func (*AlmanacInfo) GetUnit

func (a *AlmanacInfo) GetUnit(client *http.Client, product, branch, revision string) ([]byte, error)

func (*AlmanacInfo) ReleaseProduct

func (a *AlmanacInfo) ReleaseProduct(client *http.Client, product, branch, revision string) error

type AlmanacUnit

type AlmanacUnit struct {
	Product  string            `json:"product"`
	Branch   string            `json:"branch"`
	Revision string            `json:"revision"`
	URL      string            `json:"url"`
	Tags     []string          `json:"tags,omitempty"`
	Metadata map[string]string `json:"metadata,omitempty"`
}

type ArtifactoryConnectionInfo

type ArtifactoryConnectionInfo struct {
	BasicConnectionInfo
	Repository string
}

func (*ArtifactoryConnectionInfo) Publish

func (a *ArtifactoryConnectionInfo) Publish(buildSpec params.ProductBuildSpec, paths ProductPaths, stdout io.Writer) (rURLs []string, rErr error)

type BasicConnectionInfo

type BasicConnectionInfo struct {
	URL      string
	Username string
	Password string
}

type BintrayConnectionInfo

type BintrayConnectionInfo struct {
	BasicConnectionInfo
	Subject       string
	Repository    string
	Release       bool
	DownloadsList bool
}

func (*BintrayConnectionInfo) Publish

func (b *BintrayConnectionInfo) Publish(buildSpec params.ProductBuildSpec, paths ProductPaths, stdout io.Writer) ([]string, error)

type GitHubConnectionInfo

type GitHubConnectionInfo struct {
	APIURL string
	User   string
	Token  string

	Owner      string
	Repository string
}

func (*GitHubConnectionInfo) Publish

func (g *GitHubConnectionInfo) Publish(buildSpec params.ProductBuildSpec, paths ProductPaths, stdout io.Writer) ([]string, error)

type LocalPublishInfo

type LocalPublishInfo struct {
	Path string
}

func (*LocalPublishInfo) Publish

func (l *LocalPublishInfo) Publish(buildSpec params.ProductBuildSpec, paths ProductPaths, stdout io.Writer) ([]string, error)

type ProductPaths

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

type Publisher

type Publisher interface {
	Publish(buildSpec params.ProductBuildSpec, paths ProductPaths, stdout io.Writer) ([]string, error)
}

Jump to

Keyboard shortcuts

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