Documentation
¶
Index ¶
- Constants
- func BindableAs(t resourcesv1.ResourceType) (bindingsv1.BindingType, bool)
- func BindableResourceTypes() []resourcesv1.ResourceType
- func BindingProperty(l *bindingsv1.Binding, name string) (any, bool)
- func BindingPropertyNames(l *bindingsv1.Binding) []string
- func BindingTypeOf(l *bindingsv1.Binding) bindingsv1.BindingType
- func BindingTypes() []bindingsv1.BindingType
- func BindingVarsKey(project, class, binding string) string
- func DigestTag(digest string) string
- func EnvFragment(t bindingsv1.BindingType) string
- func Fit(max int, separator string, segments ...Segment) string
- func ISRTagKey(project string, stack StackName, tag string) string
- func ISRTagPrefix(project string, stack StackName) string
- func InlineRecordName(t resourcesv1.ResourceType, declared string) string
- func IsInlineRecord(name string) bool
- func IsRepositorySegment(value string) bool
- func Join(separator string, values ...string) string
- func NamespaceField(namespace string) string
- func PhaseID(unit, phase string) []byte
- func ProjectKey(project string) string
- func ProjectOf(key string) (string, error)
- func PropertyShapeMessages(shapes []PropertyShape) []*envvarsv1.PropertyShape
- func Proxied(t bindingsv1.BindingType) bool
- func PulumiProject(project string) string
- func RepositorySegment(repository string) string
- func ResourceEnvName(t bindingsv1.BindingType, resource string) string
- func ResourceID(kind Kind, name string, parts ...string) string
- func ResourceTypeName(t resourcesv1.ResourceType) string
- func ResourceTypeNamed(name string) (resourcesv1.ResourceType, bool)
- func Sanitize(value string) string
- func SanitizeAlpha(value string) string
- func SanitizeHost(hostname string) string
- func SessionKeyPrefix(project, env string) string
- func StackKey(project string, stack StackName) string
- func StateBackendURL(scheme, bucket, project string) string
- func Underscore(value string) string
- func UnitID(unit string) []byte
- func Validate(field, value string) error
- func ValidateDeploymentID(value string) error
- func VarsKey(project, class string) string
- type Coordinate
- func (c Coordinate) AssetKey(assetPath string) string
- func (c Coordinate) BytecodePrefix() string
- func (c Coordinate) Description(detail string) string
- func (c Coordinate) FunctionArtifactKey(sha string) string
- func (c Coordinate) ISRPrefix() string
- func (c Coordinate) ImageConfigKey() string
- func (c Coordinate) PhysicalName(max int) string
- func (c Coordinate) PhysicalPrefix(max int) string
- func (c Coordinate) SliceName() string
- func (c Coordinate) Stack() StackName
- func (c Coordinate) StoragePrefix() string
- func (c Coordinate) Tags(f Facts) map[string]string
- func (c Coordinate) Validate() error
- type Facts
- type Kind
- type PropertyShape
- type Release
- type Segment
- type StackName
Constants ¶
View Source
const ( InlineRecordPrefix = "ocel:" InlineRecordOwner = "ocel-config" )
View Source
const ( JSONTypeString = "string" JSONTypeNumber = "number" JSONTypeBoolean = "boolean" JSONTypeObject = "object" JSONTypeUnknown = "unknown" )
View Source
const ( FieldSeparator = "--" WordSeparator = "-" PathSeparator = "/" KeySeparator = "#" )
View Source
const ( UnitEnvironment = "environment" UnitEdge = "edge" UnitHostnames = "hostnames" UnitPromotion = "promotion" UnitConnector = "connector" PhaseBuilding = "building" PhaseUploading = "uploading" PhaseProvisioning = "provisioning" PhaseFinalizing = "finalizing" PhaseDeleting = "deleting" StageIDLen = 8 )
View Source
const (
InfraApp = "infra"
)
View Source
const MaxNamespaceField = 12
View Source
const ResourceEnvPrefix = "OCEL_RESOURCE_"
View Source
const WildcardSuffix = "wildcard"
Variables ¶
This section is empty.
Functions ¶
func BindableAs ¶
func BindableAs(t resourcesv1.ResourceType) (bindingsv1.BindingType, bool)
func BindableResourceTypes ¶
func BindableResourceTypes() []resourcesv1.ResourceType
func BindingProperty ¶
func BindingProperty(l *bindingsv1.Binding, name string) (any, bool)
func BindingPropertyNames ¶
func BindingPropertyNames(l *bindingsv1.Binding) []string
func BindingTypeOf ¶
func BindingTypeOf(l *bindingsv1.Binding) bindingsv1.BindingType
func BindingTypes ¶
func BindingTypes() []bindingsv1.BindingType
func BindingVarsKey ¶
func EnvFragment ¶
func EnvFragment(t bindingsv1.BindingType) string
func ISRTagPrefix ¶
func InlineRecordName ¶
func InlineRecordName(t resourcesv1.ResourceType, declared string) string
func IsInlineRecord ¶
func IsRepositorySegment ¶
func NamespaceField ¶
func ProjectKey ¶
func PropertyShapeMessages ¶
func PropertyShapeMessages(shapes []PropertyShape) []*envvarsv1.PropertyShape
func Proxied ¶
func Proxied(t bindingsv1.BindingType) bool
func PulumiProject ¶
func RepositorySegment ¶
func ResourceEnvName ¶
func ResourceEnvName(t bindingsv1.BindingType, resource string) string
func ResourceTypeName ¶
func ResourceTypeName(t resourcesv1.ResourceType) string
func ResourceTypeNamed ¶
func ResourceTypeNamed(name string) (resourcesv1.ResourceType, bool)
func SanitizeAlpha ¶
func SanitizeHost ¶
func SessionKeyPrefix ¶
func StateBackendURL ¶
func Underscore ¶
func ValidateDeploymentID ¶
Types ¶
type Coordinate ¶
type Coordinate struct {
Project string
Env string
App string
Kind Kind
Name string
Release Release
}
func (Coordinate) AssetKey ¶
func (c Coordinate) AssetKey(assetPath string) string
func (Coordinate) BytecodePrefix ¶
func (c Coordinate) BytecodePrefix() string
func (Coordinate) Description ¶
func (c Coordinate) Description(detail string) string
func (Coordinate) FunctionArtifactKey ¶
func (c Coordinate) FunctionArtifactKey(sha string) string
func (Coordinate) ISRPrefix ¶
func (c Coordinate) ISRPrefix() string
func (Coordinate) ImageConfigKey ¶
func (c Coordinate) ImageConfigKey() string
func (Coordinate) PhysicalName ¶
func (c Coordinate) PhysicalName(max int) string
func (Coordinate) PhysicalPrefix ¶
func (c Coordinate) PhysicalPrefix(max int) string
func (Coordinate) SliceName ¶
func (c Coordinate) SliceName() string
func (Coordinate) Stack ¶
func (c Coordinate) Stack() StackName
func (Coordinate) StoragePrefix ¶
func (c Coordinate) StoragePrefix() string
func (Coordinate) Validate ¶
func (c Coordinate) Validate() error
type PropertyShape ¶
type PropertyShape struct {
Name string `json:"name"`
JSONType string `json:"jsonType"`
List bool `json:"list,omitempty"`
}
func BindingPropertyShapes ¶
func BindingPropertyShapes(l *bindingsv1.Binding) []PropertyShape
type Release ¶
type Release struct {
// contains filtered or unexported fields
}
func NewRelease ¶
func ParseRelease ¶
type Segment ¶
func Compressible ¶
Click to show internal directories.
Click to hide internal directories.