flags

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActorFlag            = "actor"
	ClientHostFlag       = "client-host"
	ClientIDFlag         = "client-id"
	ClientPortFlag       = "client-port"
	ClientTLSHostFlag    = "client-tls-host"
	ClientTLSPortFlag    = "client-tls-port"
	ClientUnixSocketFlag = "client-unix-socket"
	ColorFlag            = "color"
	ConfigFlag           = "config"
	EnableTLSFlag        = "enable-tls"
	FilterFlag           = "filter"
	GroupFlag            = "group"
	HistoryFlag          = "history"
	IDFlag               = "id"
	JobIDFlag            = "job-id"
	LimitFlag            = "limit"
	LogLevelFlag         = "log-level"
	MessageFlag          = "message"
	MgmtHostFlag         = "mgmt-host"
	MgmtPortFlag         = "mgmt-port"
	MgmtTLSHostFlag      = "mgmt-tls-host"
	MgmtTLSPortFlag      = "mgmt-tls-port"
	MgmtUnixSocketFlag   = "mgmt-unix-socket"
	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 {
	EnableTLS bool
	TLSCa     string

	Host    string `validate:"required,hostname_rfc1123"`
	Port    int    `validate:"required"`
	TLSHost string `validate:"required,hostname_rfc1123"`
	TLSPort int    `validate:"required"`
	Socket  string

	MgmtHost    string `validate:"required,hostname_rfc1123"`
	MgmtPort    int    `validate:"required"`
	MgmtTLSHost string `validate:"required,hostname_rfc1123"`
	MgmtTLSPort int    `validate:"required"`
	MgmtSocket  string

	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
	Actor     string
	Name      string
	Limit     int32
}

func NewBaseCmd

func NewBaseCmd(f *pflag.FlagSet) BaseCmd

func (*BaseCmd) CreateClient

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

func (*BaseCmd) CreateHTTPClient

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

func (*BaseCmd) CreateMgmtClient

func (b *BaseCmd) CreateMgmtClient() (*api.Client, error)

func (*BaseCmd) ProcessResponse added in v0.4.0

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

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