repository

package
v0.0.0-...-847e9cf Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() error

func Install

func Install(repo string, force bool, branch string) error

func List

func List() (string, error)
func Search(name string) (string, error)

Types

type Component

type Component struct {
	Name     string             `yaml:"name"`
	Type     string             `yaml:"type"`
	Versions []ComponentVersion `yaml:"versions"`
}

Component struct is main element in repository identifying component and gathering all versions of it

func (*Component) String

func (c *Component) String() string

type ComponentCommand

type ComponentCommand struct {
	Name        string            `yaml:"name"`
	Description string            `yaml:"description"`
	Command     string            `yaml:"command"`
	Envs        map[string]string `yaml:"envs"`
	Args        []string          `yaml:"args"`
}

ComponentCommand struct contains information about specific command provided by component to be executed

func (*ComponentCommand) String

func (cc *ComponentCommand) String() string

type ComponentVersion

type ComponentVersion struct {
	Name          string             `yaml:"-"`
	Type          string             `yaml:"-"`
	Version       string             `yaml:"version"`
	IsLatest      bool               `yaml:"latest"`
	Image         string             `yaml:"image"`
	WorkDirectory string             `yaml:"workdir"`
	Mounts        []string           `yaml:"mounts"`
	Shared        string             `yaml:"shared"`
	Commands      []ComponentCommand `yaml:"commands"`
}

ComponentVersion struct contains information about version of component available to be installed

func GetModule

func GetModule(repoName, moduleName, moduleVersion string) (*ComponentVersion, error)

func (*ComponentVersion) String

func (cv *ComponentVersion) String() string

type V1

type V1 struct {
	Version    string      `yaml:"version"`
	Kind       string      `yaml:"kind"`
	Name       string      `yaml:"name"`
	Components []Component `yaml:"components"`
}

V1 struct is entrypoint repository for version 1 of used repository structure

Jump to

Keyboard shortcuts

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