components

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HCLDiagConfigBodyNil = &hcl.Diagnostic{
		Severity: hcl.DiagError,
		Summary:  "*hcl.Body is nil",
		Detail:   "*hcl.Body pointer must not be nil - did you provide a lokocfg configuration file?",
	}
)

Functions

func Chart added in v0.4.0

func Chart(name string) (*chart.Chart, error)

Chart is a convenience function which returns a pointer to a chart.Chart representing the component named name.

func ListNames

func ListNames() []string

func Register

func Register(name string, obj Component)

Types

type Component

type Component interface {
	// LoadConfig loads specific component configuration from HCL configuration.
	// If an error occurs, HCL diagnostics are returned.
	LoadConfig(*hcl.Body, *hcl.EvalContext) hcl.Diagnostics
	// RenderManifests returns a map of Kubernetes manifests in YAML format, where
	// the key is the file from which the content comes.
	RenderManifests() (map[string]string, error)
	// Metadata returns component metadata.
	Metadata() Metadata
}

Component represents functionality each Lokomotive component should implement.

func Get

func Get(name string) (Component, error)

func List

func List() []Component

type HelmMetadata

type HelmMetadata struct {
	Wait bool
}

HelmMetadata stores Helm-related information about a component that is needed when managing component using Helm.

type Metadata

type Metadata struct {
	Name      string
	Namespace k8sutil.Namespace
	Helm      HelmMetadata
}

Metadata is a struct which represents basic information about the component. It may contain information like name, version, dependencies, namespace, source etc.

Directories

Path Synopsis
Package awsebscsidriver contains code for the aws-ebs-csi-driver component.
Package awsebscsidriver contains code for the aws-ebs-csi-driver component.
Package contour has code related to deployment of contour component.
Package contour has code related to deployment of contour component.
Package dex has code related to deployment of dex component.
Package dex has code related to deployment of dex component.
Package httpbin has code related to deployment of httpbin component.
Package httpbin has code related to deployment of httpbin component.
Package istiooperator has code related to deployment of istio operator component.
Package istiooperator has code related to deployment of istio operator component.
Package linkerd has code related to deployment of istio operator component.
Package linkerd has code related to deployment of istio operator component.
Package types contains common types used by the components.
Package types contains common types used by the components.
Package util package has helper functions for installing/deleting/templatising a helm chart.
Package util package has helper functions for installing/deleting/templatising a helm chart.

Jump to

Keyboard shortcuts

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