pkg

package
v1.5.18 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalIsWarning bool

Functions

func ReadPolicySelectStruct

func ReadPolicySelectStruct(file string) (*valintPkg.PolicySelectStruct, error)

func SetGlobalIsWarning added in v1.5.10

func SetGlobalIsWarning(isWarning bool)

Types

type AdmissionReview

type AdmissionReview struct {
	Object    AdmissionReviewObject `yaml:"object,omitempty" json:"object,omitempty" mapstructure:"object"`
	Operation string                `yaml:"operation,omitempty" json:"operation,omitempty" mapstructure:"operation"`
}

type AdmissionReviewObject

type AdmissionReviewObject struct {
	Kind     string   `yaml:"kind,omitempty" json:"kind,omitempty" mapstructure:"kind"`
	Metadata Metadata `yaml:"metadata,omitempty" json:"metadata,omitempty" mapstructure:"metadata"`
}

type ContextHandler

type ContextHandler func(w http.ResponseWriter, r *http.Request) error

type Metadata

type Metadata struct {
	Labels    map[string]string `yaml:"labels,omitempty" json:"labels,omitempty" mapstructure:"labels"`
	Namespace string            `yaml:"namespace,omitempty" json:"namespace,omitempty" mapstructure:"namespace"`
	Name      string            `yaml:"name,omitempty" json:"name,omitempty" mapstructure:"name"`
}

type ProviderCmd

type ProviderCmd struct {
	// contains filtered or unexported fields
}

func NewProviderCmd

func NewProviderCmd(ctx context.Context, cfg *config.Application) (*ProviderCmd, error)

func (*ProviderCmd) Run

func (cmd *ProviderCmd) Run() error

func (*ProviderCmd) Validate

func (cmd *ProviderCmd) Validate(w http.ResponseWriter, req *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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