amp_workspace

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 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

func NewResourceWithOptions

func NewResourceWithOptions(options *AmpWorkspaceOptions) *resource.Resource

Types

type AmpWorkspace

type AmpWorkspace struct {
	Workspace        *types.WorkspaceDescription
	WorkspaceLogging *types.LoggingConfigurationMetadata
}

type AmpWorkspaceOptions

type AmpWorkspaceOptions struct {
	resource.CommonOptions

	Alias string
}

func NewOptions

func NewOptions() (options *AmpWorkspaceOptions, flags cmd.Flags)

func (*AmpWorkspaceOptions) SetName

func (o *AmpWorkspaceOptions) SetName(name string)

type AmpWorkspacePrinter

type AmpWorkspacePrinter struct {
	Workspaces []AmpWorkspace
}

func NewPrinter

func NewPrinter(workspaces []AmpWorkspace) *AmpWorkspacePrinter

func (*AmpWorkspacePrinter) PrintJSON

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

func (*AmpWorkspacePrinter) PrintTable

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

func (*AmpWorkspacePrinter) PrintYAML

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

type Getter

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

func NewGetter

func NewGetter(prometheusClient *aws.AMPClient) *Getter

func (*Getter) Get

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

func (*Getter) GetAll

func (g *Getter) GetAll(alias string) ([]AmpWorkspace, error)

func (*Getter) GetAmpByAlias

func (g *Getter) GetAmpByAlias(alias string) (AmpWorkspace, error)

func (*Getter) Init

func (g *Getter) Init()

type Manager

type Manager struct {
	DryRun bool
	// contains filtered or unexported fields
}

func (*Manager) Create

func (m *Manager) Create(options resource.Options) error

func (*Manager) Delete

func (m *Manager) Delete(options resource.Options) error

func (*Manager) Init

func (m *Manager) Init()

func (*Manager) SetDryRun

func (m *Manager) SetDryRun()

func (*Manager) Update

func (m *Manager) Update(options resource.Options, cmd *cobra.Command) error

Jump to

Keyboard shortcuts

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