Documentation
¶
Index ¶
Constants ¶
View Source
const (
// OutputFieldName is the name of the struct contains the CR data
OutputFieldName = model.OutputFieldName
// OutputsFieldName is the name of the struct contains the map[string]CR data
OutputsFieldName = model.OutputsFieldName
// PatchFieldName is the name of the struct contains the patch of CR data
PatchFieldName = "patch"
// PatchOutputsFieldName is the name of the struct contains the patch of outputs CR data
PatchOutputsFieldName = "patchOutputs"
// CustomMessage defines the custom message in definition template
CustomMessage = "message"
// HealthCheckPolicy defines the health check policy in definition template
HealthCheckPolicy = "isHealth"
// ErrsFieldName check if errors contained in the cue
ErrsFieldName = "errs"
)
View Source
const (
// AuxiliaryWorkload defines the extra workload obj from a workloadDefinition,
// e.g. a workload composed by deployment and service, the service will be marked as AuxiliaryWorkload
AuxiliaryWorkload = "AuxiliaryWorkload"
)
Variables ¶
This section is empty.
Functions ¶
func GetCommonLabels ¶
func GetCommonLabels(contextLabels map[string]string) map[string]string
GetCommonLabels will convert context based labels to OAM standard labels
Types ¶
type AbstractEngine ¶
type AbstractEngine interface {
Complete(ctx process.Context, abstractTemplate string, params interface{}) error
HealthCheck(ctx process.Context, cli client.Client, ns string, healthPolicyTemplate string) (bool, error)
Status(ctx process.Context, cli client.Client, ns string, customStatusTemplate string, parameter interface{}) (string, error)
}
AbstractEngine defines Definition's Render interface
func NewTraitAbstractEngine ¶
func NewTraitAbstractEngine(name string, pd *packages.PackageDiscover) AbstractEngine
NewTraitAbstractEngine create Trait Definition AbstractEngine
func NewWorkloadAbstractEngine ¶
func NewWorkloadAbstractEngine(name string, pd *packages.PackageDiscover) AbstractEngine
NewWorkloadAbstractEngine create Workload Definition AbstractEngine
Click to show internal directories.
Click to hide internal directories.