model

package
v0.158.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseRequestName

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(hostname string, port string) ControllerKey

func NewLocalControllerKey added in v0.148.0

func NewLocalControllerKey(suffix int) ControllerKey

func ParseControllerKey

func ParseControllerKey(key string) (ControllerKey, error)

type Deployment

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

func (*Deployment) Close

func (d *Deployment) Close() error

Close is a convenience function to close all artefacts.

type DeploymentKey added in v0.151.0

type DeploymentKey struct {
	// contains filtered or unexported fields
}

func NewDeploymentKey added in v0.151.0

func NewDeploymentKey(module string) DeploymentKey

func ParseDeploymentKey added in v0.151.0

func ParseDeploymentKey(input string) (DeploymentKey, error)

func (*DeploymentKey) MarshalText added in v0.151.0

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

func (*DeploymentKey) Scan added in v0.151.0

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

func (DeploymentKey) String added in v0.151.0

func (d DeploymentKey) String() string

func (*DeploymentKey) UnmarshalText added in v0.151.0

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

func (DeploymentKey) Value added in v0.151.0

func (d DeploymentKey) Value() (driver.Value, error)

type Labels

type Labels map[string]any

func (Labels) String

func (l Labels) String() string

type MaybeRequestName

type MaybeRequestName optional.Option[RequestName]

type Origin

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

func ParseOrigin

func ParseOrigin(origin string) (Origin, error)

type RequestName

type RequestName string

A RequestName represents an inbound request into the cluster.

func NewRequestName

func NewRequestName(origin Origin, key string) RequestName

func (*RequestName) MarshalText

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

func (*RequestName) Scan

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

func (*RequestName) String

func (d *RequestName) String() string

func (*RequestName) UnmarshalText

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

func (*RequestName) Value

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

type RunnerKey

type RunnerKey = keyType[runnerKey]

func NewLocalRunnerKey added in v0.148.0

func NewLocalRunnerKey(suffix int) RunnerKey

func NewRunnerKey

func NewRunnerKey(hostname string, port string) 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