model

package
v0.74.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseRequestName added in v0.12.0

func ParseRequestName(name string) (Origin, RequestName, error)

Types

type Artefact

type Artefact struct {
	Path       string
	Executable bool
	Digest     sha256.SHA256
	// ~Zero-cost on-demand reader.
	Content io.ReadCloser
}

type ControllerKey

type ControllerKey = keyType[controllerKey]

func NewControllerKey

func NewControllerKey() ControllerKey

func ParseControllerKey

func ParseControllerKey(key string) (ControllerKey, error)

type Deployment

type Deployment struct {
	Module    string
	Language  string
	Name      DeploymentName
	Schema    *schema.Module
	Artefacts []*Artefact
}

func (*Deployment) Close

func (d *Deployment) Close() error

Close is a convenience function to close all artefacts.

type DeploymentName

type DeploymentName string

func NewDeploymentName

func NewDeploymentName(module string) DeploymentName

func ParseDeploymentName

func ParseDeploymentName(name string) (DeploymentName, error)

func (*DeploymentName) MarshalText

func (d *DeploymentName) MarshalText() ([]byte, error)

func (*DeploymentName) Scan

func (d *DeploymentName) Scan(value any) error

func (*DeploymentName) String

func (d *DeploymentName) String() string

func (*DeploymentName) UnmarshalText

func (d *DeploymentName) UnmarshalText(bytes []byte) error

func (*DeploymentName) Value

func (d *DeploymentName) Value() (driver.Value, error)

type Labels

type Labels map[string]any

func (Labels) String

func (l Labels) String() string

type MaybeDeploymentName

type MaybeDeploymentName types.Option[DeploymentName]

type MaybeRequestName added in v0.12.0

type MaybeRequestName types.Option[RequestName]

type Origin added in v0.12.0

type Origin string
const (
	OriginIngress Origin = "ingress"
	OriginCron    Origin = "cron"
	OriginPubsub  Origin = "pubsub"
)

func ParseOrigin added in v0.12.0

func ParseOrigin(origin string) (Origin, error)

type RequestName added in v0.12.0

type RequestName string

A RequestName represents an inbound request into the cluster.

func NewRequestName added in v0.12.0

func NewRequestName(origin Origin, key string) RequestName

func (*RequestName) MarshalText added in v0.12.0

func (d *RequestName) MarshalText() ([]byte, error)

func (*RequestName) Scan added in v0.12.0

func (d *RequestName) Scan(value any) error

func (*RequestName) String added in v0.12.0

func (d *RequestName) String() string

func (*RequestName) UnmarshalText added in v0.12.0

func (d *RequestName) UnmarshalText(bytes []byte) error

func (*RequestName) Value added in v0.12.0

func (d *RequestName) Value() (driver.Value, error)

type RunnerKey

type RunnerKey = keyType[runnerKey]

func NewRunnerKey

func NewRunnerKey() RunnerKey

func ParseRunnerKey

func ParseRunnerKey(key string) (RunnerKey, error)

Jump to

Keyboard shortcuts

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