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 NewMwMySQLDb ¶
type ComponentConstructor ¶
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
Click to show internal directories.
Click to hide internal directories.