cortextool

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string, cortexClient *CortexRuleClient) func() *schema.Provider

New returns a newly created provider

Types

type CortexRuleClient

type CortexRuleClient interface {
	CreateRuleGroup(context.Context, string, rwrulefmt.RuleGroup) error
	DeleteRuleGroup(context.Context, string, string) error
	ListRules(context.Context, string) (map[string][]rwrulefmt.RuleGroup, error)
}

type MockCortexRuleClient added in v0.0.6

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

func NewMockCortexRuleClient added in v0.0.6

func NewMockCortexRuleClient() MockCortexRuleClient

func (MockCortexRuleClient) CreateRuleGroup added in v0.0.6

func (m MockCortexRuleClient) CreateRuleGroup(ctx context.Context, namespace string, group rwrulefmt.RuleGroup) error

func (MockCortexRuleClient) DeleteRuleGroup added in v0.0.6

func (m MockCortexRuleClient) DeleteRuleGroup(_ context.Context, namespace string, groupName string) error

func (MockCortexRuleClient) ListRules added in v0.0.6

func (m MockCortexRuleClient) ListRules(_ context.Context, namespace string) (map[string][]rwrulefmt.RuleGroup, error)

Jump to

Keyboard shortcuts

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