net

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package net contains function and type to handle http request and response

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Readyz

func Readyz(w http.ResponseWriter, r *http.Request)

Readyz handle function to implement readiness probe

func Serve

func Serve(w http.ResponseWriter, r *http.Request, admit webhook.AdmitHandler)

Serve wrappe logic for the http request prior to invoke the webhook.AdmitHandler function

Types

type TLSConfig

type TLSConfig struct {
	CertFile string
	KeyFile  string
}

TLSConfig struct to configure tls key and cert

func (TLSConfig) Load

func (receiver TLSConfig) Load() *tls.Config

Load load a cert and key pem file into a tls.Config structure

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL