message

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd(options command.Options) *cobra.Command

func NewCmdDownloadAttachment

func NewCmdDownloadAttachment(options command.Options) *cobra.Command

func NewCmdGet

func NewCmdGet(options command.Options) *cobra.Command

func NewCmdList

func NewCmdList(options command.Options) *cobra.Command

Types

type CommandDownloadAttachment

type CommandDownloadAttachment struct {
	Config  configs.Config
	Service service.APIServiceInterface

	MessageID    string
	AttachmentID string

	FileDir string
}

func (*CommandDownloadAttachment) Complete

func (command *CommandDownloadAttachment) Complete(cmd *cobra.Command, args []string) error

func (*CommandDownloadAttachment) Run

func (command *CommandDownloadAttachment) Run() error

func (*CommandDownloadAttachment) Validate

func (command *CommandDownloadAttachment) Validate() error

type CommandGet

type CommandGet struct {
	Writer  io.Writer
	Config  configs.Config
	Service service.APIServiceInterface

	ID string
}

func (*CommandGet) Complete

func (command *CommandGet) Complete(cmd *cobra.Command, args []string) error

func (*CommandGet) Run

func (command *CommandGet) Run() error

func (*CommandGet) Validate

func (command *CommandGet) Validate() error

type CommandList

type CommandList struct {
	Writer     io.Writer
	Config     configs.Config
	Service    service.APIServiceInterface
	SSOService service.SSEServiceInterface

	Watch bool
}

func (*CommandList) Complete

func (command *CommandList) Complete(cmd *cobra.Command, args []string) error

func (*CommandList) Run

func (command *CommandList) Run() error

func (*CommandList) Validate

func (command *CommandList) Validate() error

Jump to

Keyboard shortcuts

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