stackver

package
v0.0.0-...-bcdcd4e Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FormatJSON       = "json"
	FormatYAML       = "yaml"
	FormatText       = "text"
	FormatCSV        = "csv"
	FormatPrometheus = "prometheus"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectMeta

type ObjectMeta struct {
	Name        string            `json:"name" yaml:"name"`
	Labels      map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
	Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
}

type Service

type Service struct {
	Name        string                     `json:"name" yaml:"name"`
	Description string                     `json:"description,omitempty" yaml:"description,omitempty"`
	Version     string                     `json:"version" yaml:"version"`
	Tracker     tracker.ServiceTrackerMeta `json:"tracker" yaml:"tracker"`
	Status      tracker.ServiceStatus      `json:"status" yaml:"status"`
}

type ServiceStatusJob

type ServiceStatusJob struct {
	Service Service
	Error   error
}

type Stack

type Stack struct {
	ObjectMeta *ObjectMeta `json:"metadata" yaml:"metadata"`
	Spec       StackSpec   `json:"spec" yaml:"spec"`
}

func LoadFile

func LoadFile(f string) (*Stack, error)

func (*Stack) CheckVersions

func (s *Stack) CheckVersions() error

func (*Stack) Output

func (s *Stack) Output(format string, file string) error

type StackSpec

type StackSpec struct {
	Dependencies []Service `json:"dependencies" yaml:"dependencies"`
}

Jump to

Keyboard shortcuts

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