urn

package
v0.0.0-...-4ae6852 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalid = errors.New("invalid urn")
)

Functions

This section is empty.

Types

type FunctionRunner

type FunctionRunner struct {
	Kind    FunctionRunnerKind
	Tenancy string
	Name    string
	// contains filtered or unexported fields
}

func NewFunctionRunner

func NewFunctionRunner(kind FunctionRunnerKind, orgSlug, appName string) FunctionRunner

func (FunctionRunner) IsZero

func (u FunctionRunner) IsZero() bool

func (FunctionRunner) MarshalJSON

func (u FunctionRunner) MarshalJSON() ([]byte, error)

func (FunctionRunner) MarshalText

func (u FunctionRunner) MarshalText() (text []byte, err error)

func (*FunctionRunner) Scan

func (u *FunctionRunner) Scan(value interface{}) error

func (FunctionRunner) String

func (u FunctionRunner) String() string

func (*FunctionRunner) UnmarshalJSON

func (u *FunctionRunner) UnmarshalJSON(data []byte) error

func (*FunctionRunner) UnmarshalText

func (u *FunctionRunner) UnmarshalText(text []byte) error

func (FunctionRunner) Value

func (u FunctionRunner) Value() (driver.Value, error)

type FunctionRunnerKind

type FunctionRunnerKind string
const (
	FunctionRunnerKindLocal  FunctionRunnerKind = "local"
	FunctionRunnerKindFlyApp FunctionRunnerKind = "fly"
)

type Resource

type Resource struct {
	Kind         ResourceKind
	Source       string
	SlugifiedURI string
	// contains filtered or unexported fields
}

func NewResource

func NewResource(kind ResourceKind, source, uri string) Resource

func ParseResource

func ParseResource(value string) (Resource, error)

func (Resource) IsZero

func (u Resource) IsZero() bool

func (Resource) MarshalJSON

func (u Resource) MarshalJSON() ([]byte, error)

func (Resource) MarshalText

func (u Resource) MarshalText() (text []byte, err error)

func (*Resource) Scan

func (u *Resource) Scan(value interface{}) error

func (Resource) String

func (u Resource) String() string

func (*Resource) UnmarshalJSON

func (u *Resource) UnmarshalJSON(data []byte) error

func (*Resource) UnmarshalText

func (u *Resource) UnmarshalText(text []byte) error

func (Resource) Value

func (u Resource) Value() (driver.Value, error)

type ResourceKind

type ResourceKind string
const (
	ResourceKindFunction ResourceKind = "function"
)

type Tool

type Tool struct {
	Kind   ToolKind
	Source string
	Name   string
	// contains filtered or unexported fields
}

func NewTool

func NewTool(kind ToolKind, source, name string) Tool

func ParseTool

func ParseTool(value string) (Tool, error)

func (Tool) IsZero

func (u Tool) IsZero() bool

func (Tool) MarshalJSON

func (u Tool) MarshalJSON() ([]byte, error)

func (Tool) MarshalText

func (u Tool) MarshalText() (text []byte, err error)

func (*Tool) Scan

func (u *Tool) Scan(value interface{}) error

func (Tool) String

func (u Tool) String() string

func (*Tool) UnmarshalJSON

func (u *Tool) UnmarshalJSON(data []byte) error

func (*Tool) UnmarshalText

func (u *Tool) UnmarshalText(text []byte) error

func (Tool) Value

func (u Tool) Value() (driver.Value, error)

type ToolKind

type ToolKind string
const (
	ToolKindFunction ToolKind = "function"
	ToolKindHTTP     ToolKind = "http"
	ToolKindPrompt   ToolKind = "prompt"
)

Jump to

Keyboard shortcuts

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