Documentation ¶
Index ¶
- Constants
- type BifrostClient
- type Config
- type FakeBifrostClient
- type FakePrometheusClient
- type Manager
- func (m *Manager) NewUnleash(ctx context.Context, name string, allowedTeams []string) (*model.Unleash, error)
- func (m *Manager) PromQuery(ctx context.Context, q string) (model.SampleValue, error)
- func (m Manager) Start(ctx context.Context, log logrus.FieldLogger) error
- func (m *Manager) Unleash(team string) (*model.Unleash, error)
- func (m *Manager) UpdateUnleash(ctx context.Context, name string, allowedTeams []string) (*model.Unleash, error)
- type Opt
- type Prometheus
Constants ¶
View Source
const (
ManagementClusterNamespace = "bifrost-unleash"
)
View Source
const PrometheusUrl = "https://nais-prometheus.%s.cloud.nais.io"
View Source
const (
UnleashTeamsEnvVar = "TEAMS_ALLOWED_TEAMS"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BifrostClient ¶
type BifrostClient interface { Post(ctx context.Context, path string, v any) (*http.Response, error) WithClient(client *http.Client) }
func NewBifrostClient ¶
func NewBifrostClient(url string, log logrus.FieldLogger) BifrostClient
func NewFakeBifrostClient ¶
func NewFakeBifrostClient(k8sClient dynamic.Interface) BifrostClient
type FakeBifrostClient ¶
type FakeBifrostClient struct {
// contains filtered or unexported fields
}
func (FakeBifrostClient) WithClient ¶
func (f FakeBifrostClient) WithClient(_ *http.Client)
type FakePrometheusClient ¶
type FakePrometheusClient struct{}
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) NewUnleash ¶
Click to show internal directories.
Click to hide internal directories.