data

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManifestFile

type ManifestFile struct {
	Metadata ManifestFileMetadata `yaml:"metadata"`
	Spec     interface{}          `yaml:"spec"`
}

ManifestFile represents a file that contains information about a workflow or workspace template

func ManifestFileFromFile

func ManifestFileFromFile(path string) (*ManifestFile, error)

ManifestFileFromFile loads a manifest from a yaml file.

func (*ManifestFile) SpecString

func (m *ManifestFile) SpecString() (string, error)

SpecString returns the spec of a manifest file as a string

type ManifestFileMetadata

type ManifestFileMetadata struct {
	Name        string
	Kind        string // {Workflow, Workspace}
	Version     uint64
	Action      string // {create,update}
	Description *string
	Labels      map[string]string
	Deprecated  *bool
	Source      *string
}

ManifestFileMetadata represents information about the tempalte we are working with

Jump to

Keyboard shortcuts

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