runtime

package
v0.0.436 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 23 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"`
	IsInternal bool   `json:"isInternal"`
}

func (*AppDef) CreateApp

func (a *AppDef) CreateApp(ctx context.Context, f kube.Factory, cloneOpts *git.CloneOptions, projectName, cfType, include, exclude string) 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"`
	Cluster             string          `json:"cluster"`
	IngressHost         string          `json:"ingressHost"`
	IngressClass        string          `json:"ingressClassName"`
	InternalIngressHost string          `json:"internalIngressHost"`
	IngressController   string          `json:"ingressController"`
	Repo                string          `json:"repo"`
	// contains filtered or unexported fields
}

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