schema

package
v0.0.0-...-dd5f658 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateToError

func ValidateToError(values CogValues) error

ValidateToError returns all failures as a user presentable error or nil if no errors

func ValidateToSingleString

func ValidateToSingleString(values CogValues) string

ValidateToStrings returns all failures as user presentable single line breaked string. 0 length text indicates no failures

func ValidateToStrings

func ValidateToStrings(values CogValues) []string

ValidateToStrings returns all failures as user presentable text in an array. 0 length array indicates no failures

Types

type ArgoCD

type ArgoCD struct {
	HA bool `json:"ha,omitempty"`
}

ArgoCD is a member of CogValues for controlling the installation of ArgoCD

type CogValues

type CogValues struct {
	ArgoCD   ArgoCD   `json:"name,omitempty"`
	Platform Platform `json:"platform" validate:"required"`
}

CogValues is the top level structure for cogvalues.yaml as used by cog-plugin. Add json: and validate: tags as appropriate for validation.

type Platform

type Platform struct {
	Provider string `json:"provider" validate:"required,oneof=rke k3s aks eks"`
}

Platform is a member of CogValues for telling cog where it is being installed

Jump to

Keyboard shortcuts

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