Documentation ¶
Index ¶
Constants ¶
View Source
const CredentialsExtension = ".json"
View Source
const CredentialsSubdir = "creds"
View Source
const MountSubdir = "mount"
View Source
const PollSleepTime = 100 * time.Millisecond
View Source
const SocketFilename = "socket"
Variables ¶
This section is empty.
Functions ¶
func NewWatcher ¶
func NewWatcher(path string) watcher
Types ¶
type Binder ¶
type Binder interface { // Returns the gRPC server for this Binder. Used to register the service to be provided to workloads. Server() *grpc.Server // The path this Binder is searching for workload mounts on. SearchPath() string // Search for pod mounts to bind sockets in. // Send a wait group over the stop channel to gracefully cancel. The receiver // should call Done() on the wait group when its shutdown is complete. SearchAndBind(stop <-chan *sync.WaitGroup) }
type Credentials ¶
TODO relocate to shared location
func CallerFromAuthInfo ¶
func CallerFromAuthInfo(ainfo credentials.AuthInfo) (Credentials, bool)
func CallerFromContext ¶
func CallerFromContext(ctx context.Context) (Credentials, bool)
func (Credentials) AuthType ¶
func (c Credentials) AuthType() string
Click to show internal directories.
Click to hide internal directories.