components

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component interface {
	GetName() string
	GetType() string
	GetTraits() []common.ApplicationTrait
}

func MwConstructor

func MwConstructor(mType string, instance, name string) Component

func NewMwMySQLDb

func NewMwMySQLDb(instance, dbname string) Component

type ComponentConstructor

type ComponentConstructor func(instance, name string) Component

type KCronjob

type KCronjob struct {
	Name             string                  `json:"name"`
	Labels           map[string]string       `json:"labels,omitempty"`
	Annotations      map[string]string       `json:"annotations,omitempty"`
	Envs             map[string]string       `json:"envs,omitempty"`
	Image            string                  `json:"image"`
	ImagePullPolicy  string                  `json:"imagePullPolicy,omitempty"`
	ImagePullSecrets []string                `json:"imagePullSecrets,omitempty"`
	Replicas         uint32                  `json:"replicas"`
	Resources        v1.ResourceRequirements `json:"resources"`
}

func NewKCronjob

func NewKCronjob(kApp *app.Application, proj *project.Project) *KCronjob

type KWebservice

type KWebservice struct {
	Name             string                  `json:"name"`
	Labels           map[string]string       `json:"labels,omitempty"`
	Annotations      map[string]string       `json:"annotations,omitempty"`
	Envs             map[string]string       `json:"envs,omitempty"`
	Image            string                  `json:"image"`
	ImagePullPolicy  string                  `json:"imagePullPolicy,omitempty"`
	ImagePullSecrets []string                `json:"imagePullSecrets,omitempty"`
	Args             []string                `json:"args"`
	Ports            []*project.Port         `json:"ports"`
	Replicas         uint32                  `json:"replicas"`
	Resources        v1.ResourceRequirements `json:"resources"`
	LivenessProbe    *app.HealthProbe        `json:"livenessProbe,omitempty"`
	ReadinessProbe   *app.HealthProbe        `json:"readinessProbe,omitempty"`
	// contains filtered or unexported fields
}

func NewKWebservice

func NewKWebservice(ap *app.Application, proj *project.Project) *KWebservice

func (*KWebservice) GetName

func (c *KWebservice) GetName() string

func (*KWebservice) GetTraits

func (c *KWebservice) GetTraits() []common.ApplicationTrait

func (*KWebservice) GetType

func (c *KWebservice) GetType() string

func (*KWebservice) SetupTrait

func (c *KWebservice) SetupTrait(trait traits.Trait)

type KpackBuilder

type KpackBuilder struct {
	Name          string          `json:"name"`
	ImageTag      string          `json:"imageTag"`
	ImageRegistry string          `json:"imageRegistry"`
	StackID       string          `json:"stackId"`
	BuildImage    string          `json:"buildImage"`
	RunImage      string          `json:"runImage"`
	Packs         []*builder.Pack `json:"packs"`
}

func NewKpackBuilder

func NewKpackBuilder(builderPb *builder.Builder, registry *image.Registry) *KpackBuilder

func (*KpackBuilder) GetName

func (m *KpackBuilder) GetName() string

func (*KpackBuilder) GetTraits

func (m *KpackBuilder) GetTraits() []common.ApplicationTrait

func (*KpackBuilder) GetType

func (m *KpackBuilder) GetType() string

type KpackImage

type KpackImage struct {
	Name          string `json:"name"`
	BuilderName   string `json:"builderName"`
	ImageTag      string `json:"imageTag"`
	GitUrl        string `json:"gitUrl"`
	GitCommit     string `json:"gitCommit"`
	GitRepoSecret string `json:"gitRepoSecret"`
	ImgRegSecret  string `json:"imgRegSecret"`
}

func NewKpackImage

func NewKpackImage(img *image.Image, builderName, gitUrl, gitRepoSecret, imgRegSecret string) *KpackImage

func (*KpackImage) GetName

func (m *KpackImage) GetName() string

func (*KpackImage) GetTraits

func (m *KpackImage) GetTraits() []common.ApplicationTrait

func (*KpackImage) GetType

func (m *KpackImage) GetType() string

type MwMySQLDb

type MwMySQLDb struct {
	Instance string `json:"instance"`
	DBName   string `json:"dbname"`
}

func (*MwMySQLDb) GetName

func (m *MwMySQLDb) GetName() string

func (*MwMySQLDb) GetTraits

func (m *MwMySQLDb) GetTraits() []common.ApplicationTrait

func (*MwMySQLDb) GetType

func (m *MwMySQLDb) GetType() string

Jump to

Keyboard shortcuts

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