plugin

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Flags = []cli.Flag{
	&cli.StringFlag{
		Name:    "github-tag",
		EnvVars: []string{"PLUGIN_GITHUB_TAG"},
	},
	&cli.StringFlag{
		Name:    "input-file",
		EnvVars: []string{"PLUGIN_INPUT_FILE"},
		Value:   "images.txt",
	},
	&cli.StringFlag{
		Name:    "output-file",
		EnvVars: []string{"PLUGIN_OUTPUT_FILE"},
		Value:   "images-digests.txt",
	},
	&cli.StringFlag{
		Name:    "registry",
		EnvVars: []string{"PLUGIN_REGISTRY"},
		Value:   "docker.io",
	},
	&cli.StringFlag{
		Name:    "artifacts-base-url",
		EnvVars: []string{"PLUGIN_ARTIFACTS_BASE_URL"},
		Value:   "https://prime.ribs.rancher.io",
	},
	&cli.IntFlag{
		Name:    "threads",
		EnvVars: []string{"PLUGIN_THREADS"},
		Value:   1,
	},
}

Functions

func Exec

func Exec(c *cli.Context, pipeline drone.Pipeline) error

Types

type Digests

type Digests map[string]string

func (Digests) String

func (d Digests) String() string

type Settings

type Settings struct {
	GithubTag        string
	InputFile        string
	OutputFile       string
	Registry         string
	ArtifactsBaseURL string
	Threads          int
}

func NewSettingsFromContext

func NewSettingsFromContext(c *cli.Context) (Settings, error)

type Status

type Status struct {
	Status string `json:"status,omitempty"`
}

Jump to

Keyboard shortcuts

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