Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewK8SClientGetterWithKubeConfig ¶
func NewK8SClientGetterWithKubeConfig(cluster *tsuru.Cluster) (sigsk8sclient.Client, error)
Types ¶
type K8SClientGetter ¶
type K8SClientGetter func(*tsuru.Cluster) (sigsk8sclient.Client, error)
func NewK8SClientGetterWithToken ¶
func NewK8SClientGetterWithToken(token string) K8SClientGetter
type Service ¶
type Service interface {
EnsurePrometheusRule(pool string, ruleName string, ruleGroups rulefmt.RuleGroups) error
}
func NewService ¶
func NewService(tsuruToken string, k8SClientGetter K8SClientGetter) Service
Click to show internal directories.
Click to hide internal directories.