cmd

package
v0.0.0-...-72c91eb Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ListObjectsFormatStringMap = map[ListObjectsFormat][]string{
	ListObjectsFormatPlain:      {"plain"},
	ListObjectsFormatCwlS3Event: {"cwl-s3-event"},
}

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func ListObjectsFormatStrings

func ListObjectsFormatStrings() []string

ListObjectsFormatStrings returns a slice of all String values of the enum

Types

type ListObjectsCwlS3EventWriter

type ListObjectsCwlS3EventWriter struct {
	DetailType string
	Reason     string
}

func (*ListObjectsCwlS3EventWriter) WriteObject

func (w *ListObjectsCwlS3EventWriter) WriteObject(out io.Writer, bucket string, object types.Object) error

type ListObjectsFormat

type ListObjectsFormat enumflag.Flag
const (
	ListObjectsFormatPlain ListObjectsFormat = iota
	ListObjectsFormatCwlS3Event
)

func ListObjectsFormatString

func ListObjectsFormatString(s string) (ListObjectsFormat, error)

ListObjectsFormatString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func ListObjectsFormatValues

func ListObjectsFormatValues() []ListObjectsFormat

ListObjectsFormatValues returns all values of the enum

func (ListObjectsFormat) IsAListObjectsFormat

func (i ListObjectsFormat) IsAListObjectsFormat() bool

IsAListObjectsFormat returns "true" if the value is listed in the enum definition. "false" otherwise

func (ListObjectsFormat) MarshalJSON

func (i ListObjectsFormat) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for ListObjectsFormat

func (ListObjectsFormat) MarshalText

func (i ListObjectsFormat) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for ListObjectsFormat

func (ListObjectsFormat) MarshalYAML

func (i ListObjectsFormat) MarshalYAML() (interface{}, error)

MarshalYAML implements a YAML Marshaler for ListObjectsFormat

func (ListObjectsFormat) String

func (i ListObjectsFormat) String() string

func (*ListObjectsFormat) UnmarshalJSON

func (i *ListObjectsFormat) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for ListObjectsFormat

func (*ListObjectsFormat) UnmarshalText

func (i *ListObjectsFormat) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for ListObjectsFormat

func (*ListObjectsFormat) UnmarshalYAML

func (i *ListObjectsFormat) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements a YAML Unmarshaler for ListObjectsFormat

type ListObjectsOpts

type ListObjectsOpts struct {
	Bucket string

	Prefixes  []string
	Delimiter string

	Format ListObjectsFormat

	// for cwl-s3-event
	DetailType string
	Reason     string
}

type ListObjectsPlainWriter

type ListObjectsPlainWriter struct{}

func (*ListObjectsPlainWriter) WriteObject

func (w *ListObjectsPlainWriter) WriteObject(out io.Writer, bucket string, object types.Object) error

type ListObjectsWriter

type ListObjectsWriter interface {
	WriteObject(out io.Writer, bucket string, object types.Object) error
}

type SendMessageOpts

type SendMessageOpts struct {
	QueueURL string

	Input string
}

Jump to

Keyboard shortcuts

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