cloudtrail_trail

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT-0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResource

func NewResource() *resource.Resource

Types

type Getter

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

func NewGetter

func NewGetter(cloudtrailClient *aws.CloudtrailClient) *Getter

func (*Getter) Get

func (g *Getter) Get(name string, output printer.Output, options resource.Options) error

func (*Getter) GetAllTrails

func (g *Getter) GetAllTrails() ([]Trail, error)

func (*Getter) GetTrailByName

func (g *Getter) GetTrailByName(name string) (Trail, error)

func (*Getter) Init

func (g *Getter) Init()

type Trail

type Trail struct {
	Trail       *types.Trail
	TrailStatus *cloudtrail.GetTrailStatusOutput
}

type TrailPrinter

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

func NewPrinter

func NewPrinter(trails []Trail) *TrailPrinter

func (*TrailPrinter) PrintJSON

func (p *TrailPrinter) PrintJSON(writer io.Writer) error

func (*TrailPrinter) PrintTable

func (p *TrailPrinter) PrintTable(writer io.Writer) error

func (*TrailPrinter) PrintYAML

func (p *TrailPrinter) PrintYAML(writer io.Writer) error

Jump to

Keyboard shortcuts

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