flags

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 25 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ClientIDFlag         = "client-id"
	ColorFlag            = "color"
	ConfigFlag           = "config"
	CredentialHelperFlag = "credential-helper"
	FilterFlag           = "filter"
	GroupFlag            = "group"
	HeaderFlag           = "header"
	HistoryFlag          = "history"
	HostFlag             = "host"
	IDFlag               = "id"
	JobIDFlag            = "job-id"
	LimitFlag            = "limit"
	LogLevelFlag         = "log-level"
	MessageFlag          = "message"
	OffsetFlag           = "offset"
	ProgressFlag         = "progress"
	RawFlag              = "raw"
	SortFlag             = "sort"
	StateFlag            = "state"
	TLSCaFlag            = "tls-ca"
	TagFlag              = "tag"
	WorkflowFlag         = "workflow"
	NameFlag             = "name"
	AutoReconnectFlag    = "auto-reconnect"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseCmd

type BaseCmd struct {
	TLSCa string

	Host string `validate:"required"`

	Filter string
	// Strip quotes to make output usable in shell scripts
	RawOutput bool
	ColorMode string

	ID               string
	ClientID         string
	ClientIDs        []string
	Workflow         string
	Workflows        []string
	Tags             *[]string
	State            string
	Sort             string
	Groups           []string
	Offset           int64
	JobIDs           []string
	History          bool
	Progress         int
	Message          string
	Name             string
	Limit            int32
	Headers          []string
	CredentialHelper string
}

func NewBaseCmd

func NewBaseCmd(f *pflag.FlagSet) BaseCmd

func (*BaseCmd) CreateClient

func (b *BaseCmd) CreateClient(opts ...api.ClientOption) (*api.Client, error)

func (*BaseCmd) CreateClientWithResponses added in v0.7.0

func (b *BaseCmd) CreateClientWithResponses(opts ...api.ClientOption) (*api.ClientWithResponses, error)

func (*BaseCmd) CreateHTTPClient

func (b *BaseCmd) CreateHTTPClient() (*http.Client, error)

func (*BaseCmd) ProcessResponse added in v0.4.0

func (b *BaseCmd) ProcessResponse(resp *http.Response, w io.Writer) error

func (*BaseCmd) ServerRedacted added in v0.7.0

func (b *BaseCmd) ServerRedacted() string

func (*BaseCmd) SortParam added in v0.4.0

func (b *BaseCmd) SortParam() (*api.SortEnum, error)

Jump to

Keyboard shortcuts

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