output

package
v0.0.0-...-8f1a599 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entries

type Entries struct {
	Entries []*Entry
	// contains filtered or unexported fields
}

Entries represents the content of the output file.

func New

func New() *Entries

New returns a new empty entries.

func (*Entries) EntryByName

func (e *Entries) EntryByName(name string) *Entry

EntryByName returns a Entry by passing its name.

func (*Entries) Read

func (e *Entries) Read(path string) error

Read reads entries from a file.

func (*Entries) Upsert

func (e *Entries) Upsert(entry *Entry)

Upsert adds a new entry to the Index or updates an existing one.

func (*Entries) Write

func (e *Entries) Write(path string) error

Write writes entries to a file.

type Entry

type Entry struct {
	// Mandatory fields
	Name       string `yaml:"name"`
	Type       string `yaml:"type"`
	Registry   string `yaml:"registry"`
	Repository string `yaml:"repository"`
}

Entry describes an entry of the output file.

Jump to

Keyboard shortcuts

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