Documentation ¶
Overview ¶
Package mutate defines the logic of Liqo Mutating Webhook.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MutationConfig ¶
type MutationServer ¶
type MutationServer struct {
// contains filtered or unexported fields
}
func NewMutationServer ¶
func NewMutationServer(ctx context.Context, c *MutationConfig) (*MutationServer, error)
NewMutationServer creates a new mutation server.
func (*MutationServer) Mutate ¶
func (s *MutationServer) Mutate(body []byte) ([]byte, error)
Mutate mutates the object received via admReview and creates a response that embeds a patch to the received pod.
func (*MutationServer) Serve ¶
func (s *MutationServer) Serve()
Serve is a wrapper function for ListenAndServeTLS.
func (*MutationServer) Shutdown ¶ added in v0.3.0
func (s *MutationServer) Shutdown(ctx context.Context)
Shutdown gracefully shuts down the server without interrupting any active connections.
Click to show internal directories.
Click to hide internal directories.