command

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientKey = contextKey("client")
	ConfigKey = contextKey("config")
)

Variables

View Source
var ErrProjectExist = errors.New("valist.yml already exists")

Functions

func Create

func Create(ctx context.Context, rpath string) error

Create creates a new organization or repository.

func CreateAccount

func CreateAccount(ctx context.Context) error

CreateAccount creates a new account.

func Daemon

func Daemon(ctx context.Context) error

Daemon runs the valist node daemon indefinitely.

func DefaultAccount

func DefaultAccount(ctx context.Context, addr string) error

DefaultAccount sets the default account in the config.

func ExportAccount

func ExportAccount(ctx context.Context, addr string) error

ExportAccount exports an account in web3 secret json format.

func Get

func Get(ctx context.Context, rpath string) error

Get prints organization, repository, or release metadata.

func ImportAccount

func ImportAccount(ctx context.Context) error

ImportAccount imports an account private key.

func Init

func Init(ctx context.Context, rpath string, wizard bool) error

Init creates a new valist config.

func Install

func Install(ctx context.Context, rpath string) error

Install downloads a binary artifact to the valist bin path.

func KeyAdd

func KeyAdd(ctx context.Context, rpath, addr string) error

KeyAdd adds an organization or repository key.

func KeyRevoke

func KeyRevoke(ctx context.Context, rpath, addr string) error

KeyRevoke revokes an organization or repository key.

func KeyRotate

func KeyRotate(ctx context.Context, rpath, addr string) error

KeyRotate rotates an organization or repository key.

func ListAccounts

func ListAccounts(ctx context.Context) error

ListAccounts prints all account addresses.

func Publish

func Publish(ctx context.Context, dryrun bool) error

func Threshold

func Threshold(ctx context.Context, rpath string, threshold int64) error

Threshold updates the signature threshold for an organization or repository.

func Update

func Update(ctx context.Context, rpath string) error

Update updates organization or repository metadata.

Types

type Config

type Config struct {
	Name      string            `yaml:"name"      validate:"required,lowercase,shortname"`
	Tag       string            `yaml:"tag"       validate:"required,acceptable_characters"`
	Artifacts map[string]string `yaml:"artifacts" validate:"required,dive,keys,shortname,endkeys,shortname"`
}

Config contains project settings.

func (*Config) Load

func (c *Config) Load(path string) error

func (Config) Save

func (c Config) Save(path string) error

func (Config) Validate

func (c Config) Validate() error

Validate returns any validation errors.

Jump to

Keyboard shortcuts

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