actions

package
v0.0.0-...-fc78dae Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package actions contains all the major functional actions that can be taken by the cli.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenAndWriteKeyPair

func GenAndWriteKeyPair(ctx context.Context, destPath, prefix string, wantCert bool) error

GenAndWriteKeyPair creates a public private ecdsa key pair, writing them to the specified destination. The public and private key files are named <prefix>.pub and <prefix>.key respectively.

Types

type Config

type Config struct {
	*DataTool

	Sample bool
}

Config is the action for getting the server configuration.

func (*Config) Run

func (action *Config) Run(ctx context.Context, out io.Writer) error

Run is the action method.

type DataTool

type DataTool struct {
	Config *conf.Configuration
	// contains filtered or unexported fields
}

DataTool represents the base data tool action.

func NewTool

func NewTool(version string) *DataTool

NewTool creates a new tool action.

func (*DataTool) Version

func (action *DataTool) Version() string

Version returns the version of ace data tool.

type GenKeyPair

type GenKeyPair struct {
	*DataTool

	Prefix   string // file name prefix to add to key names
	MakeCert bool   // true to generate a self-signed x509 certificate as well
}

GenKeyPair represents the generate key pair action.

func (*GenKeyPair) Run

func (action *GenKeyPair) Run(ctx context.Context, destPath, prefix string) error

Run runs the gen-key-pair action.

type Login

type Login struct {
	*DataTool

	DisableAuthCheck bool // Disables the registry Ping() to check for auth.

	Username string // Username credential for login
	Password string // Password credential for login
}

Login represents the login action.

func (*Login) Run

func (action *Login) Run(ctx context.Context, registry string, out io.Writer) error

Run runs the login action.

type Logout

type Logout struct {
	*DataTool

	Username string // Username credential for logout
	Password string // Password credential for logout
}

Logout represents the logout action.

func (*Logout) Run

func (action *Logout) Run(ctx context.Context, registry string, out io.Writer) error

Run runs the logout action.

type Prune

type Prune struct {
	*DataTool

	Max int64 // Maximum size to keep in the cache, in MiB
}

Prune represents the prune action.

func (*Prune) Run

func (action *Prune) Run(ctx context.Context, out io.Writer) error

Run runs the prune action.

type Simulate

type Simulate struct {
	*DataTool
	NumTasks          int
	NumMaxParallel    int
	NumCountRecursive int
}

Simulate is an action for simulating UI activity. Used for testing the UI machinery.

func (*Simulate) Run

func (action *Simulate) Run(ctx context.Context) error

Run runs the visualize action.

type TelemetryOptions

type TelemetryOptions struct {
	URL string // overrides the current telemetry host url
}

TelemetryOptions defines the options for telemetry server use.

Directories

Path Synopsis
Package bottle defines bottle command and subcommand actions.
Package bottle defines bottle command and subcommand actions.
Package git facilitates executing actions for git repositories stored in an OCI registry.
Package git facilitates executing actions for git repositories stored in an OCI registry.
internal
format
Package format and console layout utilities
Package format and console layout utilities
Package mirror defines commands for performing mirror operations for OCI objects and bottles.
Package mirror defines commands for performing mirror operations for OCI objects and bottles.
Package oci defines general purpose oci push and pull operations backed by oras.
Package oci defines general purpose oci push and pull operations backed by oras.
Package pypi facilitates executing the program as a proxy server for translating pypi requests into OCI registry operations.
Package pypi facilitates executing the program as a proxy server for translating pypi requests into OCI registry operations.
Package security defines the security actions.
Package security defines the security actions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳