model

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 IngressRequestKey

type IngressRequestKey = keyType[ingressRequestKey]

func NewIngressRequestKey

func NewIngressRequestKey() IngressRequestKey

func ParseIngressRequestKey

func ParseIngressRequestKey(key string) (IngressRequestKey, error)

type Labels

type Labels map[string]any

func (Labels) String

func (l Labels) String() string

type MaybeDeploymentName

type MaybeDeploymentName types.Option[DeploymentName]

type NullIngressRequestKey

type NullIngressRequestKey = types.Option[IngressRequestKey]

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