Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AllDefinitions []*definitionWithHelp
AllDefinitions contains all marker definitions for this package.
var XRDMarkers = []*definitionWithHelp{ must(markers.MakeDefinition("crossbuilder:generate:xrd:claimNames", markers.DescribesType, ClaimNames{})), must(markers.MakeDefinition("crossbuilder:generate:xrd:defaultCompositionRef", markers.DescribesType, DefaultCompositionRef{})), must(markers.MakeDefinition("crossbuilder:generate:xrd:enforcedCompositionRef", markers.DescribesType, EnforcedCompositionRef{})), must(markers.MakeDefinition("crossbuilder:generate:xrd:defaultCompositeDeletePolicy", markers.DescribesType, DefaultCompositeDeletePolicy{})), must(markers.MakeDefinition("crossbuilder:generate:xrd:connectionSecretKeys", markers.DescribesType, ConnectionSecretKeys(nil))), }
XRDMarkers lists all markers that directly modify the XRD (not validation schemas).
Functions ¶
Types ¶
type ClaimNames ¶
type ClaimNames struct { Kind string `marker:"kind"` Plural string `marker:"plural"` Singular string `marker:"singular,optional"` ShortNames []string `marker:"shortNames,optional"` ListKind string `marker:"listKind,optional"` Categories []string `marker:"categories,optional"` }
ClaimNames is a marker to specify claim names for generated XRDs.
func (ClaimNames) ApplyToXRD ¶
func (c ClaimNames) ApplyToXRD(xrd *xapiext.CompositeResourceDefinition, version string) error
ApplyToXRD applies the claim names to the XRD.
type ConnectionSecretKeys ¶
type ConnectionSecretKeys []string
ConnectionSecretKeys is a marker to specify connection secret keys of an XRD
func (ConnectionSecretKeys) ApplyToXRD ¶
func (c ConnectionSecretKeys) ApplyToXRD(xrd *xapiext.CompositeResourceDefinition, version string) error
type DefaultCompositeDeletePolicy ¶
type DefaultCompositeDeletePolicy struct {
Policy xpv1.CompositeDeletePolicy `marker:"policy"`
}
DefaultCompositeDeletePolicy is a marker to specify the default composite delete policy of an XRD.
func (DefaultCompositeDeletePolicy) ApplyToXRD ¶
func (c DefaultCompositeDeletePolicy) ApplyToXRD(xrd *xapiext.CompositeResourceDefinition, version string) error
ApplyToXRD applies the enforced composition ref to the XRD.
type DefaultCompositionRef ¶
type DefaultCompositionRef struct {
Name string `marker:"name"`
}
DefaultCompositionRef is a marker to specify the default composition ref of an XRD.
func (DefaultCompositionRef) ApplyToXRD ¶
func (c DefaultCompositionRef) ApplyToXRD(xrd *xapiext.CompositeResourceDefinition, version string) error
ApplyToXRD applies the default composition ref to the XRD.
type EnforcedCompositionRef ¶
type EnforcedCompositionRef struct {
Name string `marker:"name"`
}
EnforcedCompositionRef is a marker to specify the enforced composition ref of an XRD.
func (EnforcedCompositionRef) ApplyToXRD ¶
func (c EnforcedCompositionRef) ApplyToXRD(xrd *xapiext.CompositeResourceDefinition, version string) error
ApplyToXRD applies the enforced composition ref to the XRD.