manifest

package
v0.0.0-...-5af6bcd Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CapsuleFile string = ".capsule"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	Build() *CapsuleManifests
}

func New

func New(template *template.AppTemplate) Builder

type Capsule

type Capsule struct {
	Name         string      `json:"name"`
	Type         CapsuleType `json:"type,omitempty"`
	CapsuleItems `json:",inline"`
}

type CapsuleItems

type CapsuleItems struct {
	Items        map[string]string `json:"items,omitempty"`
	DynamicItems *string           `json:"dynamics,omitempty"`
}

type CapsuleManifests

type CapsuleManifests struct {
	Manifest

	CompsManifests []*CompManifests
}

type CapsuleType

type CapsuleType string
const (
	ConfigmapType CapsuleType = "configmap"
	SecretType    CapsuleType = "secret"
)

type CompManifests

type CompManifests struct {
	Manifest
}

type Manifest

type Manifest struct {
	Name       string
	ConfigMaps []*core_v1.ConfigMap
	Secrets    []*core_v1.Secret
}

Jump to

Keyboard shortcuts

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