markers

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseAsUpjetOption

func ParseAsUpjetOption(opts *UpjetOptions, line string) (bool, error)

ParseAsUpjetOption parses input line as a upjet option, if it is a valid Upjet Option. Returns whether it is parsed or not.

Types

type CrossplaneOptions

type CrossplaneOptions struct {
	config.Reference
}

CrossplaneOptions represents the Crossplane marker options that upjet would need to interact

func (CrossplaneOptions) String

func (o CrossplaneOptions) String() string

type KubebuilderOptions

type KubebuilderOptions struct {
	Required *bool
	Minimum  *int
	Maximum  *int
	Default  *string
}

KubebuilderOptions represents the kubebuilder options that upjet would need to control

func (KubebuilderOptions) String

func (o KubebuilderOptions) String() string

type Options

Options represents marker options that Upjet need to parse or set.

func (Options) String

func (o Options) String() string

String returns a string representation of this Options object.

type ServerSideApplyOptions added in v1.1.0

type ServerSideApplyOptions struct {
	ListType   *config.ListType
	ListMapKey []string
	MapType    *config.MapType
	StructType *config.StructType
}

ServerSideApplyOptions represents the server-side apply merge options that upjet needs to control. https://kubernetes.io/docs/reference/using-api/server-side-apply/#merge-strategy

func (ServerSideApplyOptions) String added in v1.1.0

func (o ServerSideApplyOptions) String() string

type UpjetOptions

type UpjetOptions struct {
	FieldTFTag   *string
	FieldJSONTag *string
}

UpjetOptions represents the whole upjet options that could be controlled with markers.

func (UpjetOptions) String

func (o UpjetOptions) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL