config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfigFileName = "config.yaml"
)
View Source
var ConfigSample = `` /* 1281-byte string literal not displayed */
View Source
var ConfigSimple = `` /* 324-byte string literal not displayed */

Functions

This section is empty.

Types

type Config

type Config struct {
	Service Service `json:"service"`
}

func Default

func Default() (*Config, error)

func New

func New() (*Config, error)

func Simple added in v0.2.0

func Simple() (*Config, error)

type Import

type Import struct {
	SelectorConfig k8sutils.KubernetesSelector `yaml:"selector" json:"selector" mapstructure:"selector"`
	OpslevelConfig ServiceRegistrationConfig   `yaml:"opslevel" json:"opslevel" mapstructure:"opslevel"`
}

type Service

type Service struct {
	Import []Import `json:"import"`
}

type ServiceRegistrationConfig

type ServiceRegistrationConfig struct {
	Name        string `default:".metadata.name"`
	Description string
	Owner       string
	Lifecycle   string
	Tier        string
	Product     string
	Language    string
	Framework   string
	Aliases     []string // JQ expressions that return a single string or a string[]
	Tags        []string // JQ expressions that return a single string or a map[string]string
	Tools       []string // JQ expressions that return a single map[string]string or a []map[string]string
}

Jump to

Keyboard shortcuts

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