cortex

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoConfig         = errors.New("no config exists for this user")
	ErrResourceNotFound = errors.New("requested resource not found")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	Client http.Client
	// contains filtered or unexported fields
}

func New

func New(cfg Config) (*Client, error)

func (*Client) DeleteRuleGroup

func (c *Client) DeleteRuleGroup(log logr.Logger, namespace string, groupName string) error

func (*Client) DeleteRuleNamespace

func (c *Client) DeleteRuleNamespace(log logr.Logger, namespace string) error

func (*Client) SetRuleGroup

func (c *Client) SetRuleGroup(log logr.Logger, namespace string, group v1.RuleGroup) error

type Config

type Config struct {
	Key             string `yaml:"key"`
	Address         string `yaml:"address"`
	ID              string `yaml:"id"`
	UseLegacyRoutes bool   `yaml:"use_legacy_routes"`
}

Config is used to configure a Ruler Client

Jump to

Keyboard shortcuts

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