runtime

package
v0.0.42 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppDef

type AppDef struct {
	Name string `json:"name"`
	Type string `json:"type"`
	URL  string `json:"url"`
	Wait bool   `json:"wait"`
}

func (*AppDef) CreateApp

func (a *AppDef) CreateApp(ctx context.Context, f kube.Factory, cloneOpts *git.CloneOptions, projectName, cfType string, version *semver.Version) error

type CommonConfig

type CommonConfig struct {
	CodefreshBaseURL string `json:"baseUrl"`
}

type Runtime

type Runtime struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec RuntimeSpec `json:"spec"`
}

func Download

func Download(version *semver.Version, name string) (*Runtime, error)

func Load

func Load(fs fs.FS, filename string) (*Runtime, error)

func (*Runtime) Save

func (r *Runtime) Save(fs fs.FS, filename string, config *CommonConfig) error

func (*Runtime) Upgrade

func (r *Runtime) Upgrade(fs fs.FS, newRt *Runtime, config *CommonConfig) ([]AppDef, error)

type RuntimeSpec

type RuntimeSpec struct {
	DefVersion         *semver.Version `json:"defVersion"`
	Version            *semver.Version `json:"version"`
	BootstrapSpecifier string          `json:"bootstrapSpecifier"`
	Components         []AppDef        `json:"components"`
}

func (*RuntimeSpec) FullSpecifier

func (r *RuntimeSpec) FullSpecifier() string

Jump to

Keyboard shortcuts

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