Documentation ¶
Index ¶
- func ParseBinaryInvocationField(ctx context.Context, env *schema.Environment, pl parsing.EarlyPackageLoader, ...) (*schema.Invocation, error)
- func ParseBinaryInvocationForBinaryRef(ctx context.Context, owner schema.PackageName, binRef *schema.PackageRef, ...) (*schema.Invocation, error)
- func ParseImage(ctx context.Context, env *schema.Environment, pl parsing.EarlyPackageLoader, ...) (*schema.PackageRef, error)
- type ParseImageOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseBinaryInvocationField ¶
func ParseBinaryInvocationField(ctx context.Context, env *schema.Environment, pl parsing.EarlyPackageLoader, pkg *pkggraph.Package, binaryName string, cuePath string, v *fncue.CueV) (*schema.Invocation, error)
func ParseBinaryInvocationForBinaryRef ¶
func ParseBinaryInvocationForBinaryRef(ctx context.Context, owner schema.PackageName, binRef *schema.PackageRef, v *fncue.CueV) (*schema.Invocation, error)
func ParseImage ¶
func ParseImage(ctx context.Context, env *schema.Environment, pl parsing.EarlyPackageLoader, pkg *pkggraph.Package, binaryName string, v *fncue.CueV, opts ParseImageOpts) (*schema.PackageRef, error)
Parses "image"/"imageFrom"/<string> fields. If needed, generates a binary with the given name and adds it to the package. Returns nil if neither of the fields is present.
Types ¶
type ParseImageOpts ¶
type ParseImageOpts struct {
Required bool
}
Click to show internal directories.
Click to hide internal directories.