config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	ApiVersion string      `yaml:"apiVersion"`
	Kind       string      `yaml:"kind"`
	Image      DockerImage `yaml:"image"`
}

func ReadYaml

func ReadYaml(filePath string) (*Configuration, error)

func (*Configuration) Validate

func (c *Configuration) Validate() error

type DenyPolicy

type DenyPolicy struct {
	Desc string `yaml:"desc"`
	Size string `yaml:"size"`
}

type DockerImage

type DockerImage struct {
	Name   string      `yaml:"name"`
	Policy GuardPolicy `yaml:"policy"`
}

type GuardPolicy

type GuardPolicy struct {
	Deny []DenyPolicy `yaml:"deny"`
}

Jump to

Keyboard shortcuts

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