Documentation
¶
Index ¶
- Constants
- type Manager
- func (m *Manager) Clear()
- func (m *Manager) ProjectionDir(microserviceUUID string) string
- func (m *Manager) ReconcileManagedMicroservices(microservices []*models.Microservice) error
- func (m *Manager) RotateExpiringManagedTokens(microservices []*models.Microservice, now time.Time) error
- func (m *Manager) WriteProjection(microserviceUUID, token string, caPEM []byte) error
Constants ¶
View Source
const (
// MountPath is the in-container projection path for serviceaccount material.
MountPath = "/var/run/secrets/edgelet.iofog.org/serviceaccount"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages host-side projected serviceaccount artifacts.
func GetInstance ¶
func GetInstance() *Manager
GetInstance returns singleton service-account manager.
func NewManager ¶
func NewManager() *Manager
NewManager creates a manager using current runtime paths.
func (*Manager) Clear ¶
func (m *Manager) Clear()
Clear removes projected service-account materials and metadata.
func (*Manager) ProjectionDir ¶
ProjectionDir returns host-side projection path for the microservice token bundle.
func (*Manager) ReconcileManagedMicroservices ¶
func (m *Manager) ReconcileManagedMicroservices(microservices []*models.Microservice) error
ReconcileManagedMicroservices mints and projects service-account material for managed microservices.
func (*Manager) RotateExpiringManagedTokens ¶
func (m *Manager) RotateExpiringManagedTokens(microservices []*models.Microservice, now time.Time) error
RotateExpiringManagedTokens rotates service-account tokens for active managed microservices when rotation policy indicates expiry is close.
Click to show internal directories.
Click to hide internal directories.