amg_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: 16 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 *AmgOptions) *resource.Resource

Types

type AmgOptions

type AmgOptions struct {
	resource.CommonOptions

	Auth          []string
	Id            string
	WorkspaceName string
}

func NewOptions

func NewOptions() (options *AmgOptions, createFlags, deleteFlags cmd.Flags)

func (*AmgOptions) SetName

func (o *AmgOptions) SetName(name string)

type AmgPrinter

type AmgPrinter struct {
	Workspaces []*types.WorkspaceDescription
}

func NewPrinter

func NewPrinter(workspaces []*types.WorkspaceDescription) *AmgPrinter

func (*AmgPrinter) PrintJSON

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

func (*AmgPrinter) PrintTable

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

func (*AmgPrinter) PrintYAML

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

type Getter

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

func NewGetter

func NewGetter(grafanaClient *aws.GrafanaClient) *Getter

func (*Getter) Get

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

func (*Getter) GetAll

func (g *Getter) GetAll() ([]*types.WorkspaceDescription, error)

func (*Getter) GetAllAmgByName

func (g *Getter) GetAllAmgByName(name string) ([]*types.WorkspaceDescription, error)

func (*Getter) GetAmgByName

func (g *Getter) GetAmgByName(name string) (*types.WorkspaceDescription, error)

func (*Getter) Init

func (g *Getter) Init()

type Manager

type Manager struct {
	AssumeRolePolicyTemplate template.TextTemplate
	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