Documentation ¶
Index ¶
- func NewResource() *resource.Resource
- type AmpRuleOptions
- type AmpRulePrinter
- type Getter
- func (g *Getter) Get(name string, output printer.Output, options resource.Options) error
- func (g *Getter) GetAllRules(workspaceId string) ([]*types.RuleGroupsNamespaceDescription, error)
- func (g *Getter) GetRuleByName(ruleName, workspaceId string) (*types.RuleGroupsNamespaceDescription, error)
- func (g *Getter) Init()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResource ¶
Types ¶
type AmpRuleOptions ¶
type AmpRuleOptions struct { resource.CommonOptions Alias string WorkspaceId string }
type AmpRulePrinter ¶
type AmpRulePrinter struct {
// contains filtered or unexported fields
}
func NewPrinter ¶
func NewPrinter(ruleGroupNamespaces []*types.RuleGroupsNamespaceDescription) *AmpRulePrinter
func (*AmpRulePrinter) PrintTable ¶
func (p *AmpRulePrinter) PrintTable(writer io.Writer) error
type Getter ¶
type Getter struct {
// contains filtered or unexported fields
}
func (*Getter) GetAllRules ¶
func (g *Getter) GetAllRules(workspaceId string) ([]*types.RuleGroupsNamespaceDescription, error)
func (*Getter) GetRuleByName ¶
func (g *Getter) GetRuleByName(ruleName, workspaceId string) (*types.RuleGroupsNamespaceDescription, error)
Click to show internal directories.
Click to hide internal directories.