Documentation
¶
Index ¶
- Constants
- type BaseCmd
- func (b *BaseCmd) CreateClient(opts ...api.ClientOption) (*api.Client, error)
- func (b *BaseCmd) CreateClientWithResponses(opts ...api.ClientOption) (*api.ClientWithResponses, error)
- func (b *BaseCmd) CreateHTTPClient() (*http.Client, error)
- func (b *BaseCmd) ProcessResponse(resp *http.Response, w io.Writer) error
- func (b *BaseCmd) ServerRedacted() string
- func (b *BaseCmd) SortParam() (*api.SortEnum, error)
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 (*BaseCmd) CreateClient ¶
func (*BaseCmd) CreateClientWithResponses ¶ added in v0.7.0
func (b *BaseCmd) CreateClientWithResponses(opts ...api.ClientOption) (*api.ClientWithResponses, error)
func (*BaseCmd) ProcessResponse ¶ added in v0.4.0
func (*BaseCmd) ServerRedacted ¶ added in v0.7.0
Click to show internal directories.
Click to hide internal directories.