Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EndpointManager ¶
type EndpointManager struct {
// contains filtered or unexported fields
}
func NewEndpointManager ¶
func NewEndpointManager(hcsClient HCSClient, containerId string, config network.Config) *EndpointManager
func (*EndpointManager) ApplyPolicies ¶
func (e *EndpointManager) ApplyPolicies(endpoint hcsshim.HNSEndpoint, nats []*hcsshim.NatPolicy, acls []*hcsshim.ACLPolicy) (hcsshim.HNSEndpoint, error)
func (*EndpointManager) Create ¶
func (e *EndpointManager) Create() (hcsshim.HNSEndpoint, error)
func (*EndpointManager) Delete ¶
func (e *EndpointManager) Delete() error
type HCSClient ¶
type HCSClient interface { GetHNSNetworkByName(string) (*hcsshim.HNSNetwork, error) CreateEndpoint(*hcsshim.HNSEndpoint) (*hcsshim.HNSEndpoint, error) UpdateEndpoint(*hcsshim.HNSEndpoint) (*hcsshim.HNSEndpoint, error) GetHNSEndpointByID(string) (*hcsshim.HNSEndpoint, error) GetHNSEndpointByName(string) (*hcsshim.HNSEndpoint, error) DeleteEndpoint(*hcsshim.HNSEndpoint) (*hcsshim.HNSEndpoint, error) HotAttachEndpoint(containerID string, endpointID string, endpointReady func() (bool, error)) error HotDetachEndpoint(containerID string, endpointID string) error }
Click to show internal directories.
Click to hide internal directories.