domain

package
Version: v0.0.0-...-841437a Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2019 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

View Source
const Json = "json"
View Source
const Toml = "toml"
View Source
const Yaml = "yaml"
View Source
const Yml = "yml"

Variables

View Source
var SupportedFileTypes = []string{
	Toml,
	Json,
	Yaml,
	Yml,
}

Functions

This section is empty.

Types

type CompiledSchema

type CompiledSchema struct {
	ParsedSchema
}

type ParsedSchema

type ParsedSchema struct {
	Schema
	Dependencies []ParsedSchema
}

type Schema

type Schema struct {
	// The name of the config schema. This name is generated based upon the dir and will be ignored if specified within
	// the schema file. All schema file names must begin and end with an alphanumeric character and can only contain the
	// '-' special character.
	Name string `json:"name" validate:"required,dns_1123"`

	// The path relative to the root path of the config. The root path of the config is typically the root path of the git
	// repo. These fields cannot contain the '.' or '..' characters.
	Extends []string `json:"extends" validate:"dive,ext=json toml yaml yml,file"`

	// The user's own config. This can be any data the user wishes to use.
	Config commons.Raw `json:"config"`

	// When using the Kubernetes plugin, this value determines what namespace to place the resulting configmap into. If
	// no Kubernetes plugin is running, this field has no effect.
	Namespace string `json:"namespace"`

	// The fullfile path to the file from which this schema was created. Ignored if specified by user as it is only meant
	// to be used internally.
	Path string `json:"-"`
}

Jump to

Keyboard shortcuts

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