pkg

package
v0.0.0-...-ec897cd Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotationMutateKey = "io.ydzs.admission-registry/mutate" // io.ydzs.admission-registry/mutate=no/off/false/n
	AnnotationStatusKey = "io.ydzs.admission-registry/status" // io.ydzs.admission-registry/status=mutated
)

Variables

This section is empty.

Functions

func InitKubernetesCli

func InitKubernetesCli() (*kubernetes.Clientset, error)

func WriteFile

func WriteFile(filePath string, bts []byte) error

Types

type WebhookServer

type WebhookServer struct {
	Server              *http.Server // http server
	WhiteListRegistries []string     // 白名单的镜像仓库列表
}

func (*WebhookServer) Handler

func (s *WebhookServer) Handler(writer http.ResponseWriter, request *http.Request)

type WhSvrParam

type WhSvrParam struct {
	Port     int
	CertFile string
	KeyFile  string
}

Jump to

Keyboard shortcuts

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