Documentation ¶
Index ¶
Constants ¶
View Source
const ( ANNOTATION_VAULT_DB_PATH string = "db-creds-injector.numberly.io/cluster" ANNOTATION_ROLE string = "db-creds-injector.numberly.io/role" ANNOTATION_MODE string = "db-creds-injector.numberly.io/mode" // DEFAULT_TO : classic. can be : classic, uri, file ANNOTATION_VAULT_POD_UUID string = "db-creds-injector.numberly.io/uuid" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct{}
func (*Client) GetKubernetesClient ¶
func (c *Client) GetKubernetesClient() (*kubernetes.Clientset, error)
func (*Client) GetServiceAccountToken ¶
type ClientInterface ¶
type DbConfiguration ¶
type KubernetesClient ¶
type KubernetesClient interface {
CoreV1() v1.CoreV1Interface
}
type ParserService ¶
type ParserService struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(cfg config.Config, pod *corev1.Pod) *ParserService
func (*ParserService) GetPodDbConfig ¶
func (s *ParserService) GetPodDbConfig() (*podDbConfig, error)
type PodInformations ¶
type PodService ¶
type PodService interface {
GetAllPodAndNamespace(ctx context.Context) ([]PodInformations, error)
}
func NewPodService ¶
func NewPodService(clientset KubernetesClient, cfg *config.Config) PodService
Click to show internal directories.
Click to hide internal directories.