manifest

package
v0.0.0-...-0fd85f3 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type BuildTime

type BuildTime struct {
	Release
}

func Encode

func Encode(path string, git gitlib.DotGit) (b BuildTime, err error)

func (BuildTime) EncodedLabels

func (b BuildTime) EncodedLabels() map[string]string

type DeployTime

type DeployTime struct {
	Release
}

func Decode

func Decode(labels map[string]string, templateData any) (d DeployTime, err error)

type EmbeddedFileLabel

type EmbeddedFileLabel struct {
	Description string
	Decoded     string
	Encoded     string
	Key         string
	Required    bool
}

func (*EmbeddedFileLabel) Decode

func (f *EmbeddedFileLabel) Decode(labels map[string]string) error

func (*EmbeddedFileLabel) Encode

func (f *EmbeddedFileLabel) Encode(path string) error

func (*EmbeddedFileLabel) Template

func (f *EmbeddedFileLabel) Template(data any) (err error)

type FileLabel

type FileLabel struct {
	Description string
	Decoded     string
	Encoded     string
	Key         string
	Required    bool
}

func (*FileLabel) Decode

func (f *FileLabel) Decode(labels map[string]string) error

func (*FileLabel) Encode

func (f *FileLabel) Encode(path string) error

func (*FileLabel) Template

func (f *FileLabel) Template(data any) (err error)

type FolderLabel

type FolderLabel struct {
	Description string
	Content     []FileLabel
	KeyPrefix   string
	Required    bool
}

func (*FolderLabel) Decode

func (f *FolderLabel) Decode(labels map[string]string) error

func (*FolderLabel) Encode

func (f *FolderLabel) Encode(parentPath string) error

func (*FolderLabel) Template

func (fldr *FolderLabel) Template(data any) (err error)

type Release

type Release struct {
	Schema    StringLabel
	Name      StringLabel
	Branch    StringLabel
	Sha       StringLabel
	Origin    StringLabel
	Role      EmbeddedFileLabel
	Policy    FileLabel
	Resources FileLabel
	Bus       FolderLabel
}

func Init

func Init() Release

type StringLabel

type StringLabel struct {
	Description string
	Encoded     string
	Decoded     string
	Key         string
	Required    bool
}

func (*StringLabel) Decode

func (s *StringLabel) Decode(labels map[string]string) error

func (*StringLabel) Encode

func (s *StringLabel) Encode(content string) error

func (*StringLabel) Template

func (s *StringLabel) Template(data any) (err error)

Jump to

Keyboard shortcuts

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