root

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LogLevel string
	// Config is the location to a config file
	Config string
	// ID is the worker ID used to get workflow tasks to run
	ID string `validate:"required,mac|ip"`
	// Tink is the URL:Port for the tink server
	Tink string `validate:"required"`
	// TLS can be one of the following
	// 1. location on disk of a cert
	// example: /location/on/disk/of/cert
	// 2. URL from which to GET a cert
	// example: http://weburl:8080/cert
	// 3. boolean; true if the tink server (specified by the Tink key/value) has a cert from a known CA
	// false if the tink server does not have TLS enabled
	// example: true
	TLS string
	// Registry is a slice of container registries with credentials to use
	// during workflow task action execution
	Registry registries `yaml:"registries"`
	AppName  string
	// RegistryAuth holds a map of repo names to base64 encoded auth string
	// this is used to login to container registries to pull images down
	RegistryAuth map[string]string
	Log          logr.Logger
}

func New

func New() (*ffcli.Command, *Config)

func (*Config) Exec

func (c *Config) Exec(context.Context, []string) error

Exec function for this command.

func (*Config) RegisterFlags

func (c *Config) RegisterFlags(fs *flag.FlagSet)

type Registry

type Registry struct {
	// Name is the name of the registry, such as "docker.io"
	Name string
	User string
	Pass string
}

Registry details for a container registry

Jump to

Keyboard shortcuts

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