Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerPlacement ¶
type HandlerPlacement struct { AppendAfter string Handler firecracker.Handler }
HandlerPlacement provides a firecracker handler placement instruction. The handler will be placed after the requirement.
func NewHandlerPlacement ¶
func NewHandlerPlacement(handler firecracker.Handler, requirement string) *HandlerPlacement
NewHandlerPlacement creates a new handler placement.
type PlacingStrategy ¶
type PlacingStrategy struct {
// contains filtered or unexported fields
}
PlacingStrategy inserts the handlers at the arbitrary required position.
func NewStrategy ¶
func NewStrategy(handlerPlacement ...func() *HandlerPlacement) PlacingStrategy
NewStrategy returns a new PlacingStrategy.
func (PlacingStrategy) AdaptHandlers ¶
func (s PlacingStrategy) AdaptHandlers(handlers *firecracker.Handlers) error
AdaptHandlers will inject the LinkFilesHandler into the handler list.
func (PlacingStrategy) AddRequirements ¶
func (s PlacingStrategy) AddRequirements(handlerPlacement ...func() *HandlerPlacement) PlacingStrategy
AddRequirements adds more arbitrary handlers with requirements.
Click to show internal directories.
Click to hide internal directories.