hash

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Names = names.Components
	Verb  = verbs.Hash
)

Functions

func NewCommand

func NewCommand(ctx clictx.Context, names ...string) *cobra.Command

NewCommand creates a new ctf command.

func TableOutput

func TableOutput(opts *output.Options, h *action, mapping processing.MappingFunction, wide ...string) *output.TableOutput

Types

type Command

type Command struct {
	utils.BaseCommand

	Refs []string
}

func (*Command) Complete

func (o *Command) Complete(args []string) error

func (*Command) ForName

func (o *Command) ForName(name string) *cobra.Command

func (*Command) Run

func (o *Command) Run() error

type Manifest

type Manifest struct {
	History    common.History `json:"context"`
	Component  string         `json:"component"`
	Version    string         `json:"version"`
	Normalized string         `json:"normalized,omitempty"`
	Hash       string         `json:"hash,omitempty"`
	Error      string         `json:"error,omitempty"`
}

type Object

type Object struct {
	Spec       ocm.RefSpec
	History    common.History
	Descriptor *compdesc.ComponentDescriptor
	Error      error
}

type Option

type Option struct {
	Actual bool
	Update bool
	Verify bool
	// contains filtered or unexported fields
}

func From

func (*Option) AddFlags

func (o *Option) AddFlags(fs *pflag.FlagSet)

func (*Option) Complete

func (o *Option) Complete(cmd *Command) error

func (*Option) Usage

func (o *Option) Usage() string

Jump to

Keyboard shortcuts

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