Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func NewWithDeps ¶
func NewWithDeps(sendExecutor actions.SendExecutor, sink audit.Sink, mediaDownloader ...actions.MediaFileDownloader) App
func NewWithScopedDeps ¶
func NewWithScopedDeps(replyExecutor actions.ReplyExecutor, markReadExecutor actions.MarkReadExecutor, sink audit.Sink) App
func NewWithSendFileDeps ¶
func NewWithSendFileDeps(sendFileExecutor actions.SendFileExecutor, sink audit.Sink) App
type ArgumentSpec ¶
type CommandSpec ¶
type CommandSpec struct {
Name string `json:"name"`
Summary string `json:"summary"`
Usage string `json:"usage"`
Arguments []ArgumentSpec `json:"arguments,omitempty"`
Flags []FlagSpec `json:"flags,omitempty"`
CommandRef string `json:"command_ref"`
Lifecycle string `json:"lifecycle"`
SafetyClass string `json:"safety_class"`
ReadOnly bool `json:"read_only"`
WriteCapable bool `json:"write_capable"`
RequiresConfirmation bool `json:"requires_confirmation"`
OutputModes []string `json:"output_modes"`
Refs RefContract `json:"refs"`
}
type DoctorCheck ¶
type DoctorEnvelope ¶
type DoctorEnvelope struct {
OK bool `json:"ok"`
Mode string `json:"mode"`
Version version.Info `json:"version"`
Binary string `json:"binary,omitempty"`
Checks []DoctorCheck `json:"checks"`
Config config.DoctorReport `json:"config"`
}
type ErrorContract ¶
type ErrorContract struct {
Fields []ErrorFieldSpec `json:"fields"`
}
type ErrorFieldSpec ¶
type ExitCodeSpec ¶
type RefContract ¶
type Schema ¶
type Schema struct {
Program string `json:"program"`
Version version.Info `json:"version"`
Commands []CommandSpec `json:"commands"`
ContractVersion string `json:"contract_version"`
ErrorContract ErrorContract `json:"error_contract"`
ExitCodes []ExitCodeSpec `json:"exit_codes"`
}
Click to show internal directories.
Click to hide internal directories.