model

package
v0.135.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 17 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() 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 optional.Option[DeploymentName]

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 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