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 any value over the stop channel to gracefully cancel. SearchAndBind(stop <-chan bool) }
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.