app

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version of vebhook
	Version = "unknown"
)

Functions

func NewSideCarConfig

func NewSideCarConfig(s *ServerRunOptions) *webhook.SideCarConfig

NewSideCarConfig initializes the config of side car container

func Run

func Run(s *ServerRunOptions) error

Run runs the webhook

Types

type ServerRunOptions

type ServerRunOptions struct {
	// Address of webhook listening
	Address string
	// Port of webhook listening
	Port    int
	TlsCA   string
	TlsCert string
	TlsKey  string
	// ShowVersion prints version if true
	ShowVersion bool
	// HttpPort of side car
	HttpPort int
	// GRPC port of side car
	GrpcPort int
	// Image of side car
	Image string
	// CPU of side car
	CPU string
	//Memory of side car
	Memory string
}

ServerRunOptions is the webhook options.

func NewServerRunOptions

func NewServerRunOptions() *ServerRunOptions

NewServerRunOptions creates new run options

func (*ServerRunOptions) Validate

func (s *ServerRunOptions) Validate() error

Validate address

Jump to

Keyboard shortcuts

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