handler

package
v0.0.0-...-2510b82 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package handler provides command processing functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Handle(cmd []string, out command.Outputter) error
}

Handler defines an interface that can accept and process commands.

type S3Handler

type S3Handler struct {
	// contains filtered or unexported fields
}

S3Handler defines a struct that handles commands and dispatches them through the Amazon S3 API.

func NewS3

func NewS3(s3 command.S3Client, ui indicator) S3Handler

NewS3 initializes and returns an S3Handler.

func (S3Handler) Handle

func (s S3Handler) Handle(cmd []string, out command.Outputter) error

Handle takes a cmd as input and performs the required processing.

Directories

Path Synopsis
Package command provides the ability to execute commands.
Package command provides the ability to execute commands.
context
Package context provides user state for a handler.
Package context provides user state for a handler.
util
Package util provides shared utility and convenience functions for commands.
Package util provides shared utility and convenience functions for commands.

Jump to

Keyboard shortcuts

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