serviceaccount

package
v0.0.0-...-1cb3484 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package serviceaccount provides access to service account associated with eks-connector pod

Index

Constants

View Source
const (
	BaseDir     = "/var/run/secrets/kubernetes.io/serviceaccount"
	FileToken   = "token"
	FileRootCAs = "ca.crt"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSecretProvider

type MockSecretProvider struct {
	mock.Mock
}

MockSecretProvider is an autogenerated mock type for the SecretProvider type

func (*MockSecretProvider) Get

func (_m *MockSecretProvider) Get() (*Secret, error)

Get provides a mock function with given fields:

type Secret

type Secret struct {
	RootCAs *x509.CertPool
	Token   string
}

type SecretProvider

type SecretProvider interface {
	Get() (*Secret, error)
}

func NewProvider

func NewProvider() SecretProvider

Jump to

Keyboard shortcuts

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