Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface {
Get(namespace string, serviceAccount string) *PatchConfig
}
type FakeConfig ¶
type FakeConfig struct {
ContainerCredentialsAudience string
ContainerCredentialsFullUri string
Identities map[Identity]bool
}
func NewFakeConfig ¶
func NewFakeConfig(containerCredentialsAudience, containerCredentialsFullUri string, identities map[Identity]bool) *FakeConfig
func (*FakeConfig) Get ¶
func (f *FakeConfig) Get(namespace string, serviceAccount string) *PatchConfig
type FileConfig ¶
type FileConfig struct {
// contains filtered or unexported fields
}
func NewFileConfig ¶
func NewFileConfig(audience, fullUri string) *FileConfig
func (*FileConfig) Get ¶
func (f *FileConfig) Get(namespace string, serviceAccount string) *PatchConfig
func (*FileConfig) Load ¶
func (f *FileConfig) Load(content []byte) error
func (*FileConfig) StartWatcher ¶
func (f *FileConfig) StartWatcher(ctx context.Context, filePath string) error
StartWatcher creates and starts a fsnotify watcher on the target config file. The watcher runs continuously until the context is cancelled. When the file is updated, Load will be invoked, and thus will refresh the cache.
type IdentityConfigObject ¶
type IdentityConfigObject struct {
Identities []Identity `json:"identities,omitempty"`
}
type PatchConfig ¶
Click to show internal directories.
Click to hide internal directories.