types

package
v1.0.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BananaFile

type BananaFile struct {
	TypeMeta `json:",inline" yaml:",inline"`
	MetaData *ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`

	// Name is the name of this konfig
	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	// Version is the version of this konfig
	Version string `json:"version,omitempty" yaml:"version,omitempty"`

	// Clusters is a list of clusters in this konf
	Clusters []*Cluster `json:"clusters,omitempty" yaml:"clusters,omitempty"`

	// Modules is a list of modules applied to this konfig
	Modules []Module `json:"modules,omitempty" yaml:"modules,omitempty"`
}

type Cluster

type Cluster struct {
	MetaData *ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`

	// Name is the name of this cluster
	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	// Version is the k8s version of this cluster
	Version string `json:"version,omitempty" yaml:"version,omitempty"`

	// Ingress is the ingress configuration for services in this cluster
	Ingress *Ingress `json:"ingress,omitempty" yaml:"ingress,omitempty"`
}

type Component

type Component struct {
	// Name is the name of this component
	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	// Version is the version of this component
	Version string `json:"version,omitempty" yaml:"version,omitempty"`
}

type Ingress

type Ingress struct {
	// URLFormat is the format string for generating URL's to different services in the cluster
	URLFormat string `json:"urlFormat,omitempty" yaml:"urlFormat,omitempty"`
}

type Module

type Module struct {
	MetaData *ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`

	// Name is the name of this module
	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	// Version is the version of this module
	Version string `json:"version,omitempty" yaml:"version,omitempty"`

	// Namespace is the namespace for this module
	Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`

	// Opt is options that can be passed to this module
	Opts ModuleOpts `json:"opts,omitempty" yaml:"opts,omitempty"`

	// Components is a list of components for this module
	Components []string `json:"components,omitempty" yaml:"components,omitempty"`
}

type ModuleOpts

type ModuleOpts map[string]interface{}

type ObjectMeta

type ObjectMeta struct {
	Name        string            `json:"name,omitempty" yaml:"name,omitempty"`
	Namespace   string            `json:"namespace,omitempty" yaml:"namespace,omitempty"`
	Labels      map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
	Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
}

ObjectMeta partially copies apimachinery/pkg/apis/meta/v1.ObjectMeta No need for a direct dependence; the fields are stable.

type TypeMeta

type TypeMeta struct {
	Kind       string `json:"kind,omitempty" yaml:"kind,omitempty"`
	APIVersion string `json:"apiVersion,omitempty" yaml:"apiVersion,omitempty"`
}

TypeMeta partially copies apimachinery/pkg/apis/meta/v1.TypeMeta No need for a direct dependence; the fields are stable.

Jump to

Keyboard shortcuts

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