Documentation
¶
Index ¶
- Constants
- Variables
- type Config
- type LabelNamesOutput
- type LabelValuesOutput
- type ListInstancesOutput
- type LokiInstance
- type QueryRangeOutput
- type Toolset
- func (t *Toolset) GetDescription() string
- func (t *Toolset) GetName() string
- func (t *Toolset) GetPrompts() []api.ServerPrompt
- func (t *Toolset) GetResourceTemplates() []api.ServerResourceTemplate
- func (t *Toolset) GetResources() []api.ServerResource
- func (t *Toolset) GetTools(_ api.FilteringProvider) []api.ServerTool
Constants ¶
View Source
const ServerPrompt = `` /* 439-byte string literal not displayed */
View Source
const ToolsetName = "observability/logs"
Variables ¶
View Source
var DefaultConfig = &Config{}
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// AuthMode controls where the bearer token is obtained for authenticating against Loki endpoints.
// Valid values: "header" (default), "kubeconfig".
AuthMode auth.AuthMode `toml:"auth_mode,omitempty"`
// LokiURL is the URL of the Loki API endpoint.
LokiURL string `toml:"loki_url,omitempty"`
// Insecure controls whether to skip TLS certificate verification.
Insecure bool `toml:"insecure,omitempty"`
// UseRoute controls whether to use OpenShift Routes for discovering LokiStack endpoints.
UseRoute bool `toml:"use_route,omitempty"`
}
func GetConfig ¶
func GetConfig(params api.ToolHandlerParams) *Config
func (*Config) GetAuthMode ¶
type LabelNamesOutput ¶
type LabelNamesOutput struct {
Labels []string `json:"labels"`
}
type LabelValuesOutput ¶
type LabelValuesOutput struct {
Values []string `json:"values"`
}
type ListInstancesOutput ¶
type ListInstancesOutput struct {
Instances []LokiInstance `json:"instances"`
}
type LokiInstance ¶
type QueryRangeOutput ¶
type Toolset ¶
type Toolset struct{}
Toolset implements the observability toolset for Loki.
func (*Toolset) GetDescription ¶
func (*Toolset) GetPrompts ¶
func (t *Toolset) GetPrompts() []api.ServerPrompt
func (*Toolset) GetResourceTemplates ¶
func (t *Toolset) GetResourceTemplates() []api.ServerResourceTemplate
func (*Toolset) GetResources ¶
func (t *Toolset) GetResources() []api.ServerResource
func (*Toolset) GetTools ¶
func (t *Toolset) GetTools(_ api.FilteringProvider) []api.ServerTool
Click to show internal directories.
Click to hide internal directories.