Documentation
¶
Index ¶
Constants ¶
View Source
const ( Error_NeedExecuteFirst = Error("You should run generator.Execute first") Error_FailedToFindGenerator = Error("Can not detect an generator handler.") )
generator
View Source
const ( Error_NeedOAM = Error("path for file 'OAM' is required.") Error_NeedPath = Error("path is required.") Error_NeedOutput = Error("output is required.") Error_InvalidParameterType = Error("invalid parameter type(boolean, string, number, null)") )
generator.kubebuilder.crgen
View Source
const ( TemplateType_Type = "type" TemplateType_GVInfo = "groupversion_info" TemplateType_Controller = "controller" TemplateType_Main = "main" TemplateType_Makefile = "makefile" )
View Source
const ( ResourceType_Workload = "workload" ResourceType_Trait = "trait" ResourceType_Exchange = "exchange" )
View Source
const ( LABEL_OAM_UUID = "OAM_UUID" LABEL_OAM_GENERATION = "OAM_GENERATION" LABEL_OAM_WORKLOAD = "OAM_WORKLOAD" )
View Source
const (
Error_OnlySupportScaffoldV2 = Error("We support scaffold v2 for kubebuilder only.")
)
generator.kubebuilder
View Source
const (
Error_PartialWrite = Error("Failed to write all data to file.")
)
View Source
const (
Error_VDRMismatch = Error("Generated Version/Domain/Repo set is not match with OAM")
)
project
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExchangeGetter ¶
type GroupVersionKind ¶
func (GroupVersionKind) IsSame ¶
func (gvk GroupVersionKind) IsSame(ggvk GroupVersionKind) bool
type ResourceType ¶
type ResourceType string
type TemplateType ¶
type TemplateType string
func (TemplateType) String ¶
func (t TemplateType) String() string
type WorkloadUIDGetter ¶
type WorkloadUIDGetter interface {
WorkloadUID() string
}
Click to show internal directories.
Click to hide internal directories.