Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultCRIMounts ¶
DefaultCRIMounts returns default mounts added to windows spec by containerD.
func DefaultCRIPrivilegedMounts ¶
DefaultCRIPrivilegedMounts returns a slice of mounts which are added to the windows container spec when a container runs in a privileged mode.
func UnknownMessage ¶
func UnknownMessage(r *request) error
UnknownMessage represents the default handler logic for an unmatched request type sent from the bridge.
Types ¶
type Bridge ¶
type Bridge struct {
// contains filtered or unexported fields
}
func NewBridge ¶
func NewBridge(shimConn io.ReadWriteCloser, inboxGCSConn io.ReadWriteCloser, initialEnforcer securitypolicy.SecurityPolicyEnforcer) *Bridge
func (*Bridge) AssignHandlers ¶
func (b *Bridge) AssignHandlers()
AssignHandlers creates and assigns appropriate event handlers for the different bridge message types.
func (*Bridge) Handle ¶
func (b *Bridge) Handle(rpcProcID prot.RPCProc, handlerFunc HandlerFunc)
Handle registers the handler for the given message id and protocol version.
func (*Bridge) HandleFunc ¶
func (*Bridge) ListenAndServeShimRequests ¶
ListenAndServeShimRequests listens to messages on the hcsshim and inbox GCS connections and schedules them for processing. After processing, messages are forwarded to inbox GCS on success and responses from inbox GCS or error messages are sent back to hcsshim via bridge connection.
type HandlerFunc ¶
type HandlerFunc func(*request) error
HandlerFunc is an adapter to use functions as handlers.
type Host ¶
type Host struct {
// contains filtered or unexported fields
}
func NewHost ¶
func NewHost(initialEnforcer securitypolicy.SecurityPolicyEnforcer) *Host
func (*Host) SetWCOWConfidentialUVMOptions ¶
func (h *Host) SetWCOWConfidentialUVMOptions(securityPolicyRequest *guestresource.WCOWConfidentialOptions) error
type SecurityPolicyEnforcer ¶
type SecurityPolicyEnforcer struct {
// contains filtered or unexported fields
}
func NewPolicyEnforcer ¶
func NewPolicyEnforcer(initialEnforcer securitypolicy.SecurityPolicyEnforcer) *SecurityPolicyEnforcer