Documentation ¶
Overview ¶
Package sdktypes contains all the data types used by the autokitteh SDK.
All the types represent data structures that are defined in the proto package. The underlying data is either a protobuf message or a primitive that can be set as a field in other messages. The main idea is that it should be impossible to have a object that contains a malform/unvalidated values. An object is either valid with valid information, or invalid with a nil message.
There are three main types of underlying data:
- Messages, which are also called "objects" here, which are structs that contain other fields. These are implemented using the `object` struct. Examples: Project, Session, etc.
- Validated strings, which are Names and Symbols, implemented using the `validatedString` struct. Examples: Name and Symbol.
- Enumerations, which are implemented using the `enum` struct. Examples: DeployentState, SessionStateType, etc.
Specific objects are defined like so:
type Project struct { object[pb.Project, projectTraits] } type projectTraits struct {} func (projectTraits) Validate(m *pb.Project) error { // Validates all fields are correct. Each field is permitted to be empty. } func (projectTraits) StrictValidate(m *pb.Project) error { // Validates all mandatory fields are specified. }
IDs and Names are kind of the same thing, but with different types. See examples mentioned above for more information.
Index ¶
- Variables
- func AllEnumNames[T enumTraits]() (values []string)
- func EnumFromProto[W ~struct{ ... }, T enumTraits, E ~int32](e E) (w W, err error)
- func FromProto[W ~struct{ ... }, M comparableMessage, T objectTraits[M]](m M) (w W, err error)
- func IsConcreteValue(x any) bool
- func IsConnectionID(s string) bool
- func IsEnvID(s string) bool
- func IsID(s string) bool
- func IsIDOf[T idTraits](s string) bool
- func IsIntegrationID(s string) bool
- func IsProjectID(s string) bool
- func IsValid[V isValider](v V) bool
- func IsValidSymbol(s string) bool
- func NewSequentialIDGeneratorForTesting(init uint64) func() UUID
- func ParseEnum[W ~struct{ ... }, T enumTraits, E ~int32](raw string) (w W, err error)
- func ParseID[ID id[T], T idTraits](s string) (ID, error)
- func ParseValidatedString[N ~struct{ ... }, T validatedStringTraits](v string) (n N, err error)
- func SetIDGenerator(f func() UUID)
- func Strict[T stricter](t T, err error) (T, error)
- func ToProto[O interface{ ... }, M proto.Message](o O) M
- func ToString(o fmt.Stringer) string
- func UnwrapValue(v Value) (any, error)
- func UnwrapValueInto(dst any, v Value) error
- type BooleanValue
- func (o BooleanValue) Equal(other interface{ ... }) bool
- func (o BooleanValue) Hash() string
- func (o BooleanValue) IsValid() bool
- func (o BooleanValue) MarshalJSON() ([]byte, error)
- func (o BooleanValue) Message() proto.Message
- func (o BooleanValue) Strict() error
- func (o BooleanValue) String() string
- func (o BooleanValue) ToProto() M
- func (o *BooleanValue) UnmarshalJSON(b []byte) (err error)
- func (s BooleanValue) Value() bool
- type BooleanValuePB
- type Build
- func (p Build) CreatedAt() time.Time
- func (o Build) Equal(other interface{ ... }) bool
- func (o Build) Hash() string
- func (p Build) ID() (_ BuildID)
- func (o Build) IsValid() bool
- func (o Build) MarshalJSON() ([]byte, error)
- func (o Build) Message() proto.Message
- func (o Build) Strict() error
- func (o Build) String() string
- func (o Build) ToProto() M
- func (o *Build) UnmarshalJSON(b []byte) (err error)
- func (p Build) WithCreatedAt(t time.Time) Build
- func (p Build) WithNewID() Build
- type BuildArtifact
- func (a BuildArtifact) CompiledData() map[string][]byte
- func (o BuildArtifact) Equal(other interface{ ... }) bool
- func (a BuildArtifact) Exports() []BuildExport
- func (o BuildArtifact) Hash() string
- func (o BuildArtifact) IsValid() bool
- func (o BuildArtifact) MarshalJSON() ([]byte, error)
- func (r BuildArtifact) MergeFrom(other BuildArtifact) BuildArtifact
- func (o BuildArtifact) Message() proto.Message
- func (a BuildArtifact) Requirements() []BuildRequirement
- func (o BuildArtifact) Strict() error
- func (o BuildArtifact) String() string
- func (o BuildArtifact) ToProto() M
- func (o *BuildArtifact) UnmarshalJSON(b []byte) (err error)
- func (r BuildArtifact) WithCompiledData(data map[string][]byte) BuildArtifact
- func (r BuildArtifact) WithExports(exports []BuildExport) BuildArtifact
- func (r BuildArtifact) WithRequirements(reqs []BuildRequirement) BuildArtifact
- type BuildArtifactPB
- type BuildArtifactTraits
- type BuildExport
- func (o BuildExport) Equal(other interface{ ... }) bool
- func (o BuildExport) Hash() string
- func (o BuildExport) IsValid() bool
- func (o BuildExport) MarshalJSON() ([]byte, error)
- func (o BuildExport) Message() proto.Message
- func (o BuildExport) Strict() error
- func (o BuildExport) String() string
- func (o BuildExport) ToProto() M
- func (o *BuildExport) UnmarshalJSON(b []byte) (err error)
- func (r BuildExport) WithLocation(loc CodeLocation) BuildExport
- func (r BuildExport) WithSymbol(sym Symbol) BuildExport
- type BuildExportPB
- type BuildExportTraits
- type BuildID
- type BuildPB
- type BuildRequirement
- func (o BuildRequirement) Equal(other interface{ ... }) bool
- func (o BuildRequirement) Hash() string
- func (o BuildRequirement) IsValid() bool
- func (o BuildRequirement) MarshalJSON() ([]byte, error)
- func (o BuildRequirement) Message() proto.Message
- func (o BuildRequirement) Strict() error
- func (o BuildRequirement) String() string
- func (o BuildRequirement) ToProto() M
- func (r BuildRequirement) URL() *url.URL
- func (o *BuildRequirement) UnmarshalJSON(b []byte) (err error)
- func (r BuildRequirement) WithLocation(loc CodeLocation) BuildRequirement
- func (r BuildRequirement) WithSymbol(sym Symbol) BuildRequirement
- func (r BuildRequirement) WithURL(url *url.URL) BuildRequirement
- type BuildRequirementPB
- type BuildRequirementTraits
- type BuildTraits
- type BytesValue
- func (o BytesValue) Equal(other interface{ ... }) bool
- func (o BytesValue) Hash() string
- func (o BytesValue) IsValid() bool
- func (o BytesValue) MarshalJSON() ([]byte, error)
- func (o BytesValue) Message() proto.Message
- func (o BytesValue) Strict() error
- func (o BytesValue) String() string
- func (o BytesValue) ToProto() M
- func (o *BytesValue) UnmarshalJSON(b []byte) (err error)
- func (s BytesValue) Value() []byte
- type BytesValuePB
- type CallFrame
- func (o CallFrame) Equal(other interface{ ... }) bool
- func (o CallFrame) Hash() string
- func (o CallFrame) IsValid() bool
- func (f CallFrame) Location() CodeLocation
- func (o CallFrame) MarshalJSON() ([]byte, error)
- func (o CallFrame) Message() proto.Message
- func (f CallFrame) Name() string
- func (o CallFrame) Strict() error
- func (o CallFrame) String() string
- func (o CallFrame) ToProto() M
- func (o *CallFrame) UnmarshalJSON(b []byte) (err error)
- type CallFramePB
- type CallFrameTraits
- type CodeLocation
- func (l CodeLocation) CanonicalString() string
- func (l CodeLocation) Col() uint32
- func (o CodeLocation) Equal(other interface{ ... }) bool
- func (o CodeLocation) Hash() string
- func (o CodeLocation) IsValid() bool
- func (o CodeLocation) MarshalJSON() ([]byte, error)
- func (o CodeLocation) Message() proto.Message
- func (l CodeLocation) Name() string
- func (l CodeLocation) Path() string
- func (l CodeLocation) Row() uint32
- func (o CodeLocation) Strict() error
- func (o CodeLocation) String() string
- func (o CodeLocation) ToProto() M
- func (o *CodeLocation) UnmarshalJSON(b []byte) (err error)
- type CodeLocationPB
- type CodeLocationTraits
- type Connection
- func (o Connection) Equal(other interface{ ... }) bool
- func (o Connection) Hash() string
- func (p Connection) ID() ConnectionID
- func (p Connection) IntegrationID() IntegrationID
- func (p Connection) IntegrationToken() string
- func (o Connection) IsValid() bool
- func (o Connection) MarshalJSON() ([]byte, error)
- func (o Connection) Message() proto.Message
- func (p Connection) Name() Symbol
- func (p Connection) ProjectID() ProjectID
- func (o Connection) Strict() error
- func (o Connection) String() string
- func (o Connection) ToProto() M
- func (o *Connection) UnmarshalJSON(b []byte) (err error)
- func (p Connection) WithID(id ConnectionID) Connection
- func (p Connection) WithIntegrationID(id IntegrationID) Connection
- func (p Connection) WithIntegrationToken(tok string) Connection
- func (p Connection) WithName(name Symbol) Connection
- func (p Connection) WithNewID() Connection
- func (p Connection) WithProjectID(id ProjectID) Connection
- type ConnectionID
- type ConnectionPB
- type ConnectionTraits
- type Deployment
- func (p Deployment) BuildID() BuildID
- func (p Deployment) EnvID() EnvID
- func (o Deployment) Equal(other interface{ ... }) bool
- func (o Deployment) Hash() string
- func (p Deployment) ID() DeploymentID
- func (o Deployment) IsValid() bool
- func (o Deployment) MarshalJSON() ([]byte, error)
- func (o Deployment) Message() proto.Message
- func (p Deployment) State() DeploymentState
- func (o Deployment) Strict() error
- func (o Deployment) String() string
- func (o Deployment) ToProto() M
- func (o *Deployment) UnmarshalJSON(b []byte) (err error)
- func (p Deployment) WithNewID() Deployment
- func (p Deployment) WithState(s DeploymentState) Deployment
- func (p Deployment) WithoutTimestamps() Deployment
- type DeploymentID
- type DeploymentPB
- type DeploymentState
- func (e DeploymentState) IsZero() bool
- func (e DeploymentState) MarshalJSON() ([]byte, error)
- func (e DeploymentState) Prefix() string
- func (e DeploymentState) Strict() error
- func (e DeploymentState) String() string
- func (e DeploymentState) ToProto() E
- func (e *DeploymentState) UnmarshalJSON(b []byte) (err error)
- type DeploymentTraits
- type DictItem
- type DictValue
- func (o DictValue) Equal(other interface{ ... }) bool
- func (o DictValue) Hash() string
- func (o DictValue) IsValid() bool
- func (d DictValue) Items() []DictItem
- func (o DictValue) MarshalJSON() ([]byte, error)
- func (o DictValue) Message() proto.Message
- func (o DictValue) Strict() error
- func (o DictValue) String() string
- func (o DictValue) ToProto() M
- func (d DictValue) ToStringValuesMap() (map[string]Value, error)
- func (o *DictValue) UnmarshalJSON(b []byte) (err error)
- type DictValuePB
- type DurationValue
- func (o DurationValue) Equal(other interface{ ... }) bool
- func (o DurationValue) Hash() string
- func (o DurationValue) IsValid() bool
- func (o DurationValue) MarshalJSON() ([]byte, error)
- func (o DurationValue) Message() proto.Message
- func (o DurationValue) Strict() error
- func (o DurationValue) String() string
- func (o DurationValue) ToProto() M
- func (o *DurationValue) UnmarshalJSON(b []byte) (err error)
- func (s DurationValue) Value() time.Duration
- type DurationValuePB
- type Env
- func (o Env) Equal(other interface{ ... }) bool
- func (o Env) Hash() string
- func (p Env) ID() EnvID
- func (o Env) IsValid() bool
- func (o Env) MarshalJSON() ([]byte, error)
- func (o Env) Message() proto.Message
- func (p Env) Name() Symbol
- func (p Env) ProjectID() ProjectID
- func (o Env) Strict() error
- func (o Env) String() string
- func (o Env) ToProto() M
- func (o *Env) UnmarshalJSON(b []byte) (err error)
- func (p Env) WithID(id EnvID) Env
- func (p Env) WithName(name Symbol) Env
- func (p Env) WithNewID() Env
- func (p Env) WithProjectID(id ProjectID) Env
- type EnvID
- type EnvPB
- type EnvTraits
- type EnvVar
- func (p EnvVar) EnvID() EnvID
- func (o EnvVar) Equal(other interface{ ... }) bool
- func (o EnvVar) Hash() string
- func (p EnvVar) IsSecret() bool
- func (o EnvVar) IsValid() bool
- func (o EnvVar) MarshalJSON() ([]byte, error)
- func (o EnvVar) Message() proto.Message
- func (o EnvVar) Strict() error
- func (o EnvVar) String() string
- func (p EnvVar) Symbol() Symbol
- func (o EnvVar) ToProto() M
- func (o *EnvVar) UnmarshalJSON(b []byte) (err error)
- func (p EnvVar) Value() string
- func (p EnvVar) WithEnvID(id EnvID) EnvVar
- type EnvVarPB
- type EnvVarTraits
- type Event
- func (e Event) CreatedAt() time.Time
- func (e Event) Data() map[string]Value
- func (o Event) Equal(other interface{ ... }) bool
- func (o Event) Hash() string
- func (p Event) ID() EventID
- func (e Event) IntegrationID() IntegrationID
- func (e Event) IntegrationToken() string
- func (o Event) IsValid() bool
- func (o Event) MarshalJSON() ([]byte, error)
- func (e Event) Matches(expr string) (bool, error)
- func (e Event) Memo() map[string]string
- func (o Event) Message() proto.Message
- func (e Event) Seq() uint64
- func (o Event) Strict() error
- func (o Event) String() string
- func (o Event) ToProto() M
- func (e Event) ToValues() map[string]Value
- func (e Event) Type() string
- func (o *Event) UnmarshalJSON(b []byte) (err error)
- func (e Event) WithCreatedAt(t time.Time) Event
- func (e Event) WithMemo(memo map[string]string) Event
- func (e Event) WithNewID() Event
- type EventID
- type EventPB
- type EventRecord
- func (o EventRecord) Equal(other interface{ ... }) bool
- func (p EventRecord) EventID() (_ EventID)
- func (o EventRecord) Hash() string
- func (o EventRecord) IsValid() bool
- func (o EventRecord) MarshalJSON() ([]byte, error)
- func (o EventRecord) Message() proto.Message
- func (p EventRecord) Seq() uint32
- func (p EventRecord) State() EventState
- func (o EventRecord) Strict() error
- func (o EventRecord) String() string
- func (o EventRecord) ToProto() M
- func (o *EventRecord) UnmarshalJSON(b []byte) (err error)
- func (p EventRecord) WithCreatedAt(createdAt time.Time) EventRecord
- func (p EventRecord) WithSeq(seq uint32) EventRecord
- type EventRecordPB
- type EventRecordTraits
- type EventState
- type EventTraits
- type ExecutorID
- func (i ExecutorID) Hash() string
- func (e ExecutorID) IsIntegrationID() bool
- func (e ExecutorID) IsRunID() bool
- func (i ExecutorID) IsValid() bool
- func (i ExecutorID) Kind() string
- func (i ExecutorID) MarshalJSON() ([]byte, error)
- func (i ExecutorID) Strict() error
- func (i ExecutorID) String() string
- func (e ExecutorID) ToIntegrationID() IntegrationID
- func (e ExecutorID) ToRunID() RunID
- func (i *ExecutorID) UnmarshalJSON(data []byte) (err error)
- func (i ExecutorID) Value() string
- type FloatValue
- func (o FloatValue) Equal(other interface{ ... }) bool
- func (o FloatValue) Hash() string
- func (o FloatValue) IsValid() bool
- func (o FloatValue) MarshalJSON() ([]byte, error)
- func (o FloatValue) Message() proto.Message
- func (o FloatValue) Strict() error
- func (o FloatValue) String() string
- func (o FloatValue) ToProto() M
- func (o *FloatValue) UnmarshalJSON(b []byte) (err error)
- func (s FloatValue) Value() float64
- type FloatValuePB
- type FunctionFlag
- type FunctionValue
- func (f FunctionValue) ArgNames() []string
- func (f FunctionValue) ConstValue() (Value, error)
- func (f FunctionValue) Data() []byte
- func (o FunctionValue) Equal(other interface{ ... }) bool
- func (f FunctionValue) ExecutorID() ExecutorID
- func (f FunctionValue) HasFlag(flag FunctionFlag) bool
- func (o FunctionValue) Hash() string
- func (o FunctionValue) IsValid() bool
- func (o FunctionValue) MarshalJSON() ([]byte, error)
- func (o FunctionValue) Message() proto.Message
- func (f FunctionValue) Name() Symbol
- func (o FunctionValue) Strict() error
- func (o FunctionValue) String() string
- func (o FunctionValue) ToProto() M
- func (f FunctionValue) UniqueID() string
- func (o *FunctionValue) UnmarshalJSON(b []byte) (err error)
- type FunctionValuePB
- type ID
- type IntegerValue
- func (o IntegerValue) Equal(other interface{ ... }) bool
- func (o IntegerValue) Hash() string
- func (o IntegerValue) IsValid() bool
- func (o IntegerValue) MarshalJSON() ([]byte, error)
- func (o IntegerValue) Message() proto.Message
- func (o IntegerValue) Strict() error
- func (o IntegerValue) String() string
- func (o IntegerValue) ToProto() M
- func (o *IntegerValue) UnmarshalJSON(b []byte) (err error)
- func (s IntegerValue) Value() int64
- type IntegerValuePB
- type Integration
- func (p Integration) ConnectionURL() *url.URL
- func (p Integration) Description() string
- func (p Integration) DisplayName() string
- func (o Integration) Equal(other interface{ ... }) bool
- func (o Integration) Hash() string
- func (p Integration) ID() IntegrationID
- func (o Integration) IsValid() bool
- func (p Integration) LogoURL() *url.URL
- func (o Integration) MarshalJSON() ([]byte, error)
- func (o Integration) Message() proto.Message
- func (o Integration) Strict() error
- func (o Integration) String() string
- func (o Integration) ToProto() M
- func (p Integration) UniqueName() Symbol
- func (o *Integration) UnmarshalJSON(b []byte) (err error)
- func (p Integration) UpdateModule(m Module) Integration
- func (p Integration) UserLinks() map[string]string
- func (p Integration) WithDescription(s string) Integration
- func (p Integration) WithModule(m Module) Integration
- func (p Integration) WithUserLinks(links map[string]string) Integration
- type IntegrationID
- type IntegrationPB
- type IntegrationTraits
- type ListValue
- func (o ListValue) Equal(other interface{ ... }) bool
- func (o ListValue) Hash() string
- func (o ListValue) IsValid() bool
- func (o ListValue) MarshalJSON() ([]byte, error)
- func (o ListValue) Message() proto.Message
- func (o ListValue) Strict() error
- func (o ListValue) String() string
- func (o ListValue) ToProto() M
- func (o *ListValue) UnmarshalJSON(b []byte) (err error)
- func (l ListValue) Values() []Value
- type ListValuePB
- type Module
- func (o Module) Equal(other interface{ ... }) bool
- func (o Module) Hash() string
- func (o Module) IsValid() bool
- func (o Module) MarshalJSON() ([]byte, error)
- func (o Module) Message() proto.Message
- func (o Module) Strict() error
- func (o Module) String() string
- func (o Module) ToProto() M
- func (o *Module) UnmarshalJSON(b []byte) (err error)
- type ModuleFunction
- func (o ModuleFunction) Equal(other interface{ ... }) bool
- func (o ModuleFunction) Hash() string
- func (o ModuleFunction) IsValid() bool
- func (o ModuleFunction) MarshalJSON() ([]byte, error)
- func (o ModuleFunction) Message() proto.Message
- func (o ModuleFunction) Strict() error
- func (o ModuleFunction) String() string
- func (o ModuleFunction) ToProto() M
- func (o *ModuleFunction) UnmarshalJSON(b []byte) (err error)
- type ModuleFunctionField
- func (o ModuleFunctionField) Equal(other interface{ ... }) bool
- func (o ModuleFunctionField) Hash() string
- func (o ModuleFunctionField) IsValid() bool
- func (o ModuleFunctionField) MarshalJSON() ([]byte, error)
- func (o ModuleFunctionField) Message() proto.Message
- func (o ModuleFunctionField) Strict() error
- func (o ModuleFunctionField) String() string
- func (o ModuleFunctionField) ToProto() M
- func (o *ModuleFunctionField) UnmarshalJSON(b []byte) (err error)
- type ModuleFunctionFieldPB
- type ModuleFunctionFieldTraits
- type ModuleFunctionPB
- type ModuleFunctionTraits
- type ModulePB
- type ModuleTraits
- type ModuleValue
- func (o ModuleValue) Equal(other interface{ ... }) bool
- func (o ModuleValue) Hash() string
- func (o ModuleValue) IsValid() bool
- func (o ModuleValue) MarshalJSON() ([]byte, error)
- func (s ModuleValue) Members() map[string]Value
- func (o ModuleValue) Message() proto.Message
- func (s ModuleValue) Name() Symbol
- func (o ModuleValue) Strict() error
- func (o ModuleValue) String() string
- func (o ModuleValue) ToProto() M
- func (o *ModuleValue) UnmarshalJSON(b []byte) (err error)
- type ModuleValuePB
- type ModuleVariable
- func (o ModuleVariable) Equal(other interface{ ... }) bool
- func (o ModuleVariable) Hash() string
- func (o ModuleVariable) IsValid() bool
- func (o ModuleVariable) MarshalJSON() ([]byte, error)
- func (o ModuleVariable) Message() proto.Message
- func (o ModuleVariable) Strict() error
- func (o ModuleVariable) String() string
- func (o ModuleVariable) ToProto() M
- func (o *ModuleVariable) UnmarshalJSON(b []byte) (err error)
- type ModuleVariablePB
- type ModuleVariableTraits
- type NothingValue
- func (o NothingValue) Equal(other interface{ ... }) bool
- func (o NothingValue) Hash() string
- func (o NothingValue) IsValid() bool
- func (o NothingValue) MarshalJSON() ([]byte, error)
- func (o NothingValue) Message() proto.Message
- func (o NothingValue) Strict() error
- func (o NothingValue) String() string
- func (o NothingValue) ToProto() M
- func (o *NothingValue) UnmarshalJSON(b []byte) (err error)
- type NothingValuePB
- type Object
- type ProgramError
- func FromError(err error) (ProgramError, bool)
- func NewProgramError(v Value, callstack []CallFrame, extra map[string]string) ProgramError
- func ProgramErrorFromProto(m *ProgramErrorPB) (ProgramError, error)
- func StrictProgramErrorFromProto(m *ProgramErrorPB) (ProgramError, error)
- func WrapError(err error) ProgramError
- func (e ProgramError) CallStack() []CallFrame
- func (o ProgramError) Equal(other interface{ ... }) bool
- func (e ProgramError) ErrorString() string
- func (e ProgramError) Extra() map[string]string
- func (o ProgramError) Hash() string
- func (o ProgramError) IsValid() bool
- func (o ProgramError) MarshalJSON() ([]byte, error)
- func (o ProgramError) Message() proto.Message
- func (o ProgramError) Strict() error
- func (o ProgramError) String() string
- func (p ProgramError) ToError() (err error)
- func (o ProgramError) ToProto() M
- func (o *ProgramError) UnmarshalJSON(b []byte) (err error)
- func (e ProgramError) Value() Value
- type ProgramErrorPB
- type ProgramErrorTraits
- type Project
- func (o Project) Equal(other interface{ ... }) bool
- func (o Project) Hash() string
- func (p Project) ID() ProjectID
- func (o Project) IsValid() bool
- func (o Project) MarshalJSON() ([]byte, error)
- func (o Project) Message() proto.Message
- func (p Project) Name() Symbol
- func (o Project) Strict() error
- func (o Project) String() string
- func (o Project) ToProto() M
- func (o *Project) UnmarshalJSON(b []byte) (err error)
- func (p Project) WithID(id ProjectID) Project
- func (p Project) WithName(name Symbol) Project
- func (p Project) WithNewID() Project
- type ProjectID
- type ProjectPB
- type ProjectTraits
- type RunID
- type Runtime
- func (o Runtime) Equal(other interface{ ... }) bool
- func (r Runtime) FileExtensions() []string
- func (o Runtime) Hash() string
- func (o Runtime) IsValid() bool
- func (o Runtime) MarshalJSON() ([]byte, error)
- func (o Runtime) Message() proto.Message
- func (r Runtime) Name() Symbol
- func (o Runtime) Strict() error
- func (o Runtime) String() string
- func (o Runtime) ToProto() M
- func (o *Runtime) UnmarshalJSON(b []byte) (err error)
- type RuntimePB
- type RuntimeTraits
- type Session
- func (p Session) BuildID() BuildID
- func (p Session) DeploymentID() DeploymentID
- func (p Session) EntryPoint() CodeLocation
- func (p Session) EnvID() EnvID
- func (o Session) Equal(other interface{ ... }) bool
- func (p Session) EventID() EventID
- func (o Session) Hash() string
- func (p Session) ID() SessionID
- func (p Session) Inputs() map[string]Value
- func (o Session) IsValid() bool
- func (o Session) MarshalJSON() ([]byte, error)
- func (p Session) Memo() map[string]string
- func (o Session) Message() proto.Message
- func (p Session) State() SessionStateType
- func (o Session) Strict() error
- func (o Session) String() string
- func (o Session) ToProto() M
- func (o *Session) UnmarshalJSON(b []byte) (err error)
- func (s Session) WithBuildID(id BuildID) Session
- func (s Session) WithDeploymentID(id DeploymentID) Session
- func (s Session) WithEndpoint(ep CodeLocation) Session
- func (s Session) WithEnvID(id EnvID) Session
- func (s Session) WithEventID(id EventID) Session
- func (p Session) WithInputs(inputs map[string]Value) Session
- func (p Session) WithNewID() Session
- func (s Session) WithParentSessionID(id SessionID) Session
- type SessionCall
- func (o SessionCall) Equal(other interface{ ... }) bool
- func (o SessionCall) Hash() string
- func (o SessionCall) IsValid() bool
- func (o SessionCall) MarshalJSON() ([]byte, error)
- func (o SessionCall) Message() proto.Message
- func (o SessionCall) Strict() error
- func (o SessionCall) String() string
- func (o SessionCall) ToProto() M
- func (o *SessionCall) UnmarshalJSON(b []byte) (err error)
- type SessionCallAttempt
- func (o SessionCallAttempt) Equal(other interface{ ... }) bool
- func (o SessionCallAttempt) Hash() string
- func (o SessionCallAttempt) IsValid() bool
- func (o SessionCallAttempt) MarshalJSON() ([]byte, error)
- func (o SessionCallAttempt) Message() proto.Message
- func (o SessionCallAttempt) Strict() error
- func (o SessionCallAttempt) String() string
- func (o SessionCallAttempt) ToProto() M
- func (o *SessionCallAttempt) UnmarshalJSON(b []byte) (err error)
- type SessionCallAttemptComplete
- func NewSessionCallAttemptComplete(last bool, interval time.Duration, result SessionCallAttemptResult) SessionCallAttemptComplete
- func NewSessionLogCallAttemptComplete(complete SessionCallAttemptComplete) SessionCallAttemptComplete
- func SessionCallAttemptCompleteFromProto(m *SessionCallAttemptCompletePB) (SessionCallAttemptComplete, error)
- func StrictSessionCallAttemptCompleteFromProto(m *SessionCallAttemptCompletePB) (SessionCallAttemptComplete, error)
- func (o SessionCallAttemptComplete) Equal(other interface{ ... }) bool
- func (o SessionCallAttemptComplete) Hash() string
- func (o SessionCallAttemptComplete) IsValid() bool
- func (o SessionCallAttemptComplete) MarshalJSON() ([]byte, error)
- func (o SessionCallAttemptComplete) Message() proto.Message
- func (p SessionCallAttemptComplete) Result() SessionCallAttemptResult
- func (o SessionCallAttemptComplete) Strict() error
- func (o SessionCallAttemptComplete) String() string
- func (o SessionCallAttemptComplete) ToProto() M
- func (o *SessionCallAttemptComplete) UnmarshalJSON(b []byte) (err error)
- type SessionCallAttemptCompletePB
- type SessionCallAttemptCompleteTraits
- type SessionCallAttemptPB
- type SessionCallAttemptResult
- func (o SessionCallAttemptResult) Equal(other interface{ ... }) bool
- func (r SessionCallAttemptResult) GetError() error
- func (r SessionCallAttemptResult) GetValue() Value
- func (o SessionCallAttemptResult) Hash() string
- func (o SessionCallAttemptResult) IsValid() bool
- func (o SessionCallAttemptResult) MarshalJSON() ([]byte, error)
- func (o SessionCallAttemptResult) Message() proto.Message
- func (o SessionCallAttemptResult) Strict() error
- func (o SessionCallAttemptResult) String() string
- func (r SessionCallAttemptResult) ToPair() (Value, error)
- func (o SessionCallAttemptResult) ToProto() M
- func (r SessionCallAttemptResult) ToValueTuple() Value
- func (o *SessionCallAttemptResult) UnmarshalJSON(b []byte) (err error)
- type SessionCallAttemptResultPB
- type SessionCallAttemptResultTraits
- type SessionCallAttemptStart
- func (o SessionCallAttemptStart) Equal(other interface{ ... }) bool
- func (o SessionCallAttemptStart) Hash() string
- func (o SessionCallAttemptStart) IsValid() bool
- func (o SessionCallAttemptStart) MarshalJSON() ([]byte, error)
- func (o SessionCallAttemptStart) Message() proto.Message
- func (o SessionCallAttemptStart) Strict() error
- func (o SessionCallAttemptStart) String() string
- func (o SessionCallAttemptStart) ToProto() M
- func (o *SessionCallAttemptStart) UnmarshalJSON(b []byte) (err error)
- type SessionCallAttemptStartPB
- type SessionCallAttemptStartTraits
- type SessionCallAttemptTraits
- type SessionCallPB
- type SessionCallSpec
- func (p SessionCallSpec) Data() (Value, []Value, map[string]Value)
- func (o SessionCallSpec) Equal(other interface{ ... }) bool
- func (o SessionCallSpec) Hash() string
- func (o SessionCallSpec) IsValid() bool
- func (o SessionCallSpec) MarshalJSON() ([]byte, error)
- func (o SessionCallSpec) Message() proto.Message
- func (p SessionCallSpec) Seq() uint32
- func (o SessionCallSpec) Strict() error
- func (o SessionCallSpec) String() string
- func (o SessionCallSpec) ToProto() M
- func (o *SessionCallSpec) UnmarshalJSON(b []byte) (err error)
- type SessionCallSpecPB
- type SessionCallSpecTraits
- type SessionCallTraits
- type SessionID
- type SessionLog
- func (o SessionLog) Equal(other interface{ ... }) bool
- func (o SessionLog) Hash() string
- func (o SessionLog) IsValid() bool
- func (o SessionLog) MarshalJSON() ([]byte, error)
- func (o SessionLog) Message() proto.Message
- func (l SessionLog) Records() []SessionLogRecord
- func (o SessionLog) Strict() error
- func (o SessionLog) String() string
- func (o SessionLog) ToProto() M
- func (o *SessionLog) UnmarshalJSON(b []byte) (err error)
- type SessionLogPB
- type SessionLogRecord
- func NewCallAttemptCompleteSessionLogRecord(s SessionCallAttemptComplete) SessionLogRecord
- func NewCallAttemptStartSessionLogRecord(s SessionCallAttemptStart) SessionLogRecord
- func NewCallSpecSessionLogRecord(s SessionCallSpec) SessionLogRecord
- func NewPrintSessionLogRecord(text string) SessionLogRecord
- func NewStateSessionLogRecord(state SessionState) SessionLogRecord
- func NewStopRequestSessionLogRecord(reason string) SessionLogRecord
- func SessionLogRecordFromProto(m *SessionLogRecordPB) (SessionLogRecord, error)
- func StrictSessionLogRecordFromProto(m *SessionLogRecordPB) (SessionLogRecord, error)
- func (o SessionLogRecord) Equal(other interface{ ... }) bool
- func (s SessionLogRecord) GetPrint() (string, bool)
- func (s SessionLogRecord) GetStopRequest() (string, bool)
- func (o SessionLogRecord) Hash() string
- func (o SessionLogRecord) IsValid() bool
- func (o SessionLogRecord) MarshalJSON() ([]byte, error)
- func (o SessionLogRecord) Message() proto.Message
- func (o SessionLogRecord) Strict() error
- func (o SessionLogRecord) String() string
- func (r SessionLogRecord) Timestamp() time.Time
- func (o SessionLogRecord) ToProto() M
- func (o *SessionLogRecord) UnmarshalJSON(b []byte) (err error)
- func (r SessionLogRecord) WithoutTimestamp() SessionLogRecord
- type SessionLogRecordPB
- type SessionLogRecordTraits
- type SessionLogTraits
- type SessionPB
- type SessionState
- func NewSessionState(t time.Time, concrete concreteSessionState) SessionState
- func NewSessionStateCompleted(prints []string, exports map[string]Value, ret Value) SessionState
- func NewSessionStateCreated() SessionState
- func NewSessionStateError(err error, prints []string) SessionState
- func NewSessionStateRunning(rid RunID, callValue Value) SessionState
- func NewSessionStateStopped(reason string) SessionState
- func SessionStateFromProto(m *SessionStatePB) (SessionState, error)
- func StrictSessionStateFromProto(m *SessionStatePB) (SessionState, error)
- func (p SessionState) Concrete() concreteSessionState
- func (o SessionState) Equal(other interface{ ... }) bool
- func (s SessionState) GetCompleted() SessionStateCompleted
- func (s SessionState) GetCreated() SessionStateCreated
- func (s SessionState) GetError() SessionStateError
- func (s SessionState) GetRunning() SessionStateRunning
- func (s SessionState) GetStopped() SessionStateStopped
- func (o SessionState) Hash() string
- func (o SessionState) IsValid() bool
- func (o SessionState) MarshalJSON() ([]byte, error)
- func (o SessionState) Message() proto.Message
- func (o SessionState) Strict() error
- func (o SessionState) String() string
- func (o SessionState) ToProto() M
- func (p SessionState) Type() SessionStateType
- func (o *SessionState) UnmarshalJSON(b []byte) (err error)
- type SessionStateCompleted
- func (o SessionStateCompleted) Equal(other interface{ ... }) bool
- func (o SessionStateCompleted) Hash() string
- func (o SessionStateCompleted) IsValid() bool
- func (o SessionStateCompleted) MarshalJSON() ([]byte, error)
- func (o SessionStateCompleted) Message() proto.Message
- func (o SessionStateCompleted) Strict() error
- func (o SessionStateCompleted) String() string
- func (o SessionStateCompleted) ToProto() M
- func (o *SessionStateCompleted) UnmarshalJSON(b []byte) (err error)
- type SessionStateCompletedPB
- type SessionStateCompletedTraits
- type SessionStateCreated
- func (o SessionStateCreated) Equal(other interface{ ... }) bool
- func (o SessionStateCreated) Hash() string
- func (o SessionStateCreated) IsValid() bool
- func (o SessionStateCreated) MarshalJSON() ([]byte, error)
- func (o SessionStateCreated) Message() proto.Message
- func (o SessionStateCreated) Strict() error
- func (o SessionStateCreated) String() string
- func (o SessionStateCreated) ToProto() M
- func (o *SessionStateCreated) UnmarshalJSON(b []byte) (err error)
- type SessionStateCreatedPB
- type SessionStateCreatedTraits
- type SessionStateError
- func (o SessionStateError) Equal(other interface{ ... }) bool
- func (o SessionStateError) Hash() string
- func (o SessionStateError) IsValid() bool
- func (o SessionStateError) MarshalJSON() ([]byte, error)
- func (o SessionStateError) Message() proto.Message
- func (o SessionStateError) Strict() error
- func (o SessionStateError) String() string
- func (o SessionStateError) ToProto() M
- func (o *SessionStateError) UnmarshalJSON(b []byte) (err error)
- type SessionStateErrorPB
- type SessionStateErrorTraits
- type SessionStatePB
- type SessionStateRunning
- func (s SessionStateRunning) Call() Value
- func (o SessionStateRunning) Equal(other interface{ ... }) bool
- func (o SessionStateRunning) Hash() string
- func (o SessionStateRunning) IsValid() bool
- func (o SessionStateRunning) MarshalJSON() ([]byte, error)
- func (o SessionStateRunning) Message() proto.Message
- func (o SessionStateRunning) Strict() error
- func (o SessionStateRunning) String() string
- func (o SessionStateRunning) ToProto() M
- func (o *SessionStateRunning) UnmarshalJSON(b []byte) (err error)
- type SessionStateRunningPB
- type SessionStateRunningTraits
- type SessionStateStopped
- func (o SessionStateStopped) Equal(other interface{ ... }) bool
- func (o SessionStateStopped) Hash() string
- func (o SessionStateStopped) IsValid() bool
- func (o SessionStateStopped) MarshalJSON() ([]byte, error)
- func (o SessionStateStopped) Message() proto.Message
- func (o SessionStateStopped) Strict() error
- func (o SessionStateStopped) String() string
- func (o SessionStateStopped) ToProto() M
- func (o *SessionStateStopped) UnmarshalJSON(b []byte) (err error)
- type SessionStateStoppedPB
- type SessionStateStoppedTraits
- type SessionStateTraits
- type SessionStateType
- func (e SessionStateType) IsFinal() bool
- func (e SessionStateType) IsZero() bool
- func (e SessionStateType) MarshalJSON() ([]byte, error)
- func (e SessionStateType) Prefix() string
- func (e SessionStateType) Strict() error
- func (e SessionStateType) String() string
- func (e SessionStateType) ToProto() E
- func (e *SessionStateType) UnmarshalJSON(b []byte) (err error)
- type SessionTraits
- type SetValue
- func (o SetValue) Equal(other interface{ ... }) bool
- func (o SetValue) Hash() string
- func (o SetValue) IsValid() bool
- func (o SetValue) MarshalJSON() ([]byte, error)
- func (o SetValue) Message() proto.Message
- func (o SetValue) Strict() error
- func (o SetValue) String() string
- func (o SetValue) ToProto() M
- func (o *SetValue) UnmarshalJSON(b []byte) (err error)
- func (l SetValue) Values() []Value
- type SetValuePB
- type StringValue
- func (o StringValue) Equal(other interface{ ... }) bool
- func (o StringValue) Hash() string
- func (o StringValue) IsValid() bool
- func (o StringValue) MarshalJSON() ([]byte, error)
- func (o StringValue) Message() proto.Message
- func (o StringValue) Strict() error
- func (o StringValue) String() string
- func (o StringValue) ToProto() M
- func (o *StringValue) UnmarshalJSON(b []byte) (err error)
- func (s StringValue) Value() string
- type StringValuePB
- type StructValue
- func (s StructValue) Ctor() Value
- func (o StructValue) Equal(other interface{ ... }) bool
- func (s StructValue) Fields() map[string]Value
- func (o StructValue) Hash() string
- func (o StructValue) IsValid() bool
- func (o StructValue) MarshalJSON() ([]byte, error)
- func (o StructValue) Message() proto.Message
- func (o StructValue) Strict() error
- func (o StructValue) String() string
- func (o StructValue) ToProto() M
- func (o *StructValue) UnmarshalJSON(b []byte) (err error)
- type StructValuePB
- type Symbol
- type SymbolValue
- func (o SymbolValue) Equal(other interface{ ... }) bool
- func (o SymbolValue) Hash() string
- func (o SymbolValue) IsValid() bool
- func (o SymbolValue) MarshalJSON() ([]byte, error)
- func (o SymbolValue) Message() proto.Message
- func (o SymbolValue) Strict() error
- func (o SymbolValue) String() string
- func (s SymbolValue) Symbol() Symbol
- func (o SymbolValue) ToProto() M
- func (o *SymbolValue) UnmarshalJSON(b []byte) (err error)
- type SymbolValuePB
- type TimeValue
- func (o TimeValue) Equal(other interface{ ... }) bool
- func (o TimeValue) Hash() string
- func (o TimeValue) IsValid() bool
- func (o TimeValue) MarshalJSON() ([]byte, error)
- func (o TimeValue) Message() proto.Message
- func (o TimeValue) Strict() error
- func (o TimeValue) String() string
- func (o TimeValue) ToProto() M
- func (o *TimeValue) UnmarshalJSON(b []byte) (err error)
- func (s TimeValue) Value() time.Time
- type TimeValuePB
- type Trigger
- func (p Trigger) CodeLocation() CodeLocation
- func (p Trigger) ConnectionID() ConnectionID
- func (p Trigger) Data() map[string]Value
- func (p Trigger) EnvID() EnvID
- func (o Trigger) Equal(other interface{ ... }) bool
- func (p Trigger) EventType() string
- func (p Trigger) Filter() string
- func (o Trigger) Hash() string
- func (p Trigger) ID() TriggerID
- func (o Trigger) IsValid() bool
- func (o Trigger) MarshalJSON() ([]byte, error)
- func (o Trigger) Message() proto.Message
- func (p Trigger) Name() string
- func (o Trigger) Strict() error
- func (o Trigger) String() string
- func (o Trigger) ToProto() M
- func (p Trigger) ToValues() map[string]Value
- func (o *Trigger) UnmarshalJSON(b []byte) (err error)
- func (p Trigger) WithConnectionID(id ConnectionID) Trigger
- func (p Trigger) WithEnvID(id EnvID) Trigger
- func (p Trigger) WithFilter(f string) Trigger
- func (p Trigger) WithID(id TriggerID) Trigger
- func (p Trigger) WithName(s string) Trigger
- func (p Trigger) WithNewID() Trigger
- type TriggerID
- type TriggerPB
- type TriggerTraits
- type UUID
- type Value
- func NewBooleanValue(v bool) Value
- func NewBytesValue(v []byte) Value
- func NewConstFunctionError(name string, in error) (Value, error)
- func NewConstFunctionValue(name string, data Value) (Value, error)
- func NewDictValue(items []DictItem) (Value, error)
- func NewDictValueFromStringMap(m map[string]Value) Value
- func NewDurationValue(v time.Duration) Value
- func NewFloatValue(v float64) Value
- func NewFunctionValue(xid ExecutorID, name string, data []byte, flags []FunctionFlag, ...) (Value, error)
- func NewIntegerValue(v int64) Value
- func NewListValue(vs []Value) (Value, error)
- func NewModuleValue(name Symbol, fields map[string]Value) (Value, error)
- func NewSetValue(vs []Value) (Value, error)
- func NewStringValue(s string) Value
- func NewStructValue(ctor Value, fields map[string]Value) (Value, error)
- func NewSymbolValue(s Symbol) Value
- func NewTimeValue(v time.Time) Value
- func NewValue(cv concreteValue) Value
- func StrictValueFromProto(m *ValuePB) (Value, error)
- func ValueFromProto(m *ValuePB) (Value, error)
- func WrapValue(v any) (Value, error)
- func (v Value) Concrete() concreteValue
- func (o Value) Equal(other interface{ ... }) bool
- func (v Value) GetBoolean() BooleanValue
- func (v Value) GetBytes() BytesValue
- func (v Value) GetDict() DictValue
- func (v Value) GetDuration() DurationValue
- func (v Value) GetFloat() FloatValue
- func (v Value) GetFunction() FunctionValue
- func (v Value) GetInteger() IntegerValue
- func (v Value) GetList() ListValue
- func (v Value) GetModule() ModuleValue
- func (v Value) GetNothing() NothingValue
- func (v Value) GetSet() SetValue
- func (v Value) GetString() StringValue
- func (v Value) GetStruct() StructValue
- func (v Value) GetSymbol() SymbolValue
- func (v Value) GetTime() TimeValue
- func (o Value) Hash() string
- func (v Value) IsBoolean() bool
- func (v Value) IsBytes() bool
- func (v Value) IsDict() bool
- func (v Value) IsDuration() bool
- func (v Value) IsFloat() bool
- func (v Value) IsFunction() bool
- func (v Value) IsInteger() bool
- func (v Value) IsList() bool
- func (v Value) IsModule() bool
- func (v Value) IsNothing() bool
- func (v Value) IsSet() bool
- func (v Value) IsString() bool
- func (v Value) IsStruct() bool
- func (v Value) IsSymbol() bool
- func (v Value) IsTime() bool
- func (o Value) IsValid() bool
- func (o Value) MarshalJSON() ([]byte, error)
- func (o Value) Message() proto.Message
- func (o Value) Strict() error
- func (o Value) String() string
- func (v Value) ToDuration() (time.Duration, error)
- func (o Value) ToProto() M
- func (v Value) ToString() (string, error)
- func (v Value) ToStringValuesMap() (map[string]Value, error)
- func (v Value) ToTime() (time.Time, error)
- func (o *Value) UnmarshalJSON(b []byte) (err error)
- func (v Value) Unwrap() (any, error)
- func (v Value) UnwrapInto(dst any) error
- type ValuePB
- type ValueTraits
- type ValueWrapper
Constants ¶
This section is empty.
Variables ¶
var ( PossibleDeploymentStatesNames = AllEnumNames[deploymentStateTraits]() DeploymentStateUnspecified = deploymentStateFromProto(deploymentsv1.DeploymentState_DEPLOYMENT_STATE_UNSPECIFIED) DeploymentStateActive = deploymentStateFromProto(deploymentsv1.DeploymentState_DEPLOYMENT_STATE_ACTIVE) DeploymentStateDraining = deploymentStateFromProto(deploymentsv1.DeploymentState_DEPLOYMENT_STATE_DRAINING) DeploymentStateInactive = deploymentStateFromProto(deploymentsv1.DeploymentState_DEPLOYMENT_STATE_INACTIVE) DeploymentStateTesting = deploymentStateFromProto(deploymentsv1.DeploymentState_DEPLOYMENT_STATE_TESTING) )
var ( PossibleEventStatesNames = AllEnumNames[eventStateTraits]() EventStateUnspecified = eventStateFromProto(eventsv1.EventState_EVENT_STATE_UNSPECIFIED) EventStateSaved = eventStateFromProto(eventsv1.EventState_EVENT_STATE_SAVED) EventStateProcessing = eventStateFromProto(eventsv1.EventState_EVENT_STATE_PROCESSING) EventStateCompleted = eventStateFromProto(eventsv1.EventState_EVENT_STATE_COMPLETED) EventStateFailed = eventStateFromProto(eventsv1.EventState_EVENT_STATE_FAILED) )
var ( PossibleSessionStateTypesNames = AllEnumNames[sessionStateTypeTraits]() SessionStateTypeUnspecified = sessionStateTypeFromProto(sessionsv1.SessionStateType_SESSION_STATE_TYPE_UNSPECIFIED) SessionStateTypeCreated = sessionStateTypeFromProto(sessionsv1.SessionStateType_SESSION_STATE_TYPE_CREATED) SessionStateTypeRunning = sessionStateTypeFromProto(sessionsv1.SessionStateType_SESSION_STATE_TYPE_RUNNING) SessionStateTypeError = sessionStateTypeFromProto(sessionsv1.SessionStateType_SESSION_STATE_TYPE_ERROR) SessionStateTypeCompleted = sessionStateTypeFromProto(sessionsv1.SessionStateType_SESSION_STATE_TYPE_COMPLETED) SessionStateTypeStopped = sessionStateTypeFromProto(sessionsv1.SessionStateType_SESSION_STATE_TYPE_STOPPED) )
var Nothing = forceFromProto[Value](&ValuePB{Nothing: &NothingValuePB{}})
Functions ¶
func AllEnumNames ¶ added in v0.3.0
func AllEnumNames[T enumTraits]() (values []string)
func EnumFromProto ¶ added in v0.3.0
func FromProto ¶ added in v0.3.0
func FromProto[W ~struct{ object[M, T] }, M comparableMessage, T objectTraits[M]](m M) (w W, err error)
func IsConcreteValue ¶ added in v0.3.0
func IsConnectionID ¶ added in v0.3.0
func IsIntegrationID ¶ added in v0.3.0
func IsProjectID ¶ added in v0.3.0
func IsValidSymbol ¶ added in v0.3.0
func NewSequentialIDGeneratorForTesting ¶
To be used for testing only, when we expect a certain ID. First ID generated will be init+1.
func ParseValidatedString ¶ added in v0.3.0
func SetIDGenerator ¶
func SetIDGenerator(f func() UUID)
func UnwrapValue ¶ added in v0.3.0
func UnwrapValueInto ¶ added in v0.3.2
Types ¶
type BooleanValue ¶
type BooleanValue struct {
// contains filtered or unexported fields
}
func (BooleanValue) Equal ¶ added in v0.3.0
func (o BooleanValue) Equal(other interface{ ToProto() M }) bool
func (BooleanValue) MarshalJSON ¶ added in v0.3.0
func (*BooleanValue) UnmarshalJSON ¶ added in v0.3.0
func (BooleanValue) Value ¶ added in v0.3.0
func (s BooleanValue) Value() bool
type BooleanValuePB ¶ added in v0.3.0
type Build ¶
type Build struct {
// contains filtered or unexported fields
}
var InvalidBuild Build
func BuildFromProto ¶
func StrictBuildFromProto ¶
func (Build) MarshalJSON ¶ added in v0.3.0
func (*Build) UnmarshalJSON ¶ added in v0.3.0
type BuildArtifact ¶
type BuildArtifact struct {
// contains filtered or unexported fields
}
var InvalidBuildArtifact BuildArtifact
func BuildArtifactFromProto ¶
func BuildArtifactFromProto(m *BuildArtifactPB) (BuildArtifact, error)
func (BuildArtifact) CompiledData ¶ added in v0.3.0
func (a BuildArtifact) CompiledData() map[string][]byte
func (BuildArtifact) Equal ¶ added in v0.3.0
func (o BuildArtifact) Equal(other interface{ ToProto() M }) bool
func (BuildArtifact) Exports ¶ added in v0.3.0
func (a BuildArtifact) Exports() []BuildExport
func (BuildArtifact) MarshalJSON ¶ added in v0.3.0
func (BuildArtifact) MergeFrom ¶ added in v0.3.0
func (r BuildArtifact) MergeFrom(other BuildArtifact) BuildArtifact
func (BuildArtifact) Requirements ¶ added in v0.3.0
func (a BuildArtifact) Requirements() []BuildRequirement
func (*BuildArtifact) UnmarshalJSON ¶ added in v0.3.0
func (BuildArtifact) WithCompiledData ¶ added in v0.3.0
func (r BuildArtifact) WithCompiledData(data map[string][]byte) BuildArtifact
func (BuildArtifact) WithExports ¶ added in v0.3.0
func (r BuildArtifact) WithExports(exports []BuildExport) BuildArtifact
func (BuildArtifact) WithRequirements ¶ added in v0.3.0
func (r BuildArtifact) WithRequirements(reqs []BuildRequirement) BuildArtifact
type BuildArtifactPB ¶
type BuildArtifactPB = runtimesv1.Artifact
type BuildArtifactTraits ¶ added in v0.3.0
type BuildArtifactTraits struct{}
func (BuildArtifactTraits) StrictValidate ¶ added in v0.3.0
func (BuildArtifactTraits) StrictValidate(m *BuildArtifactPB) error
func (BuildArtifactTraits) Validate ¶ added in v0.3.0
func (BuildArtifactTraits) Validate(m *BuildArtifactPB) error
type BuildExport ¶ added in v0.3.0
type BuildExport struct {
// contains filtered or unexported fields
}
var InvalidBuildExport BuildExport
func BuildExportFromProto ¶ added in v0.3.0
func BuildExportFromProto(m *BuildExportPB) (BuildExport, error)
func NewBuildExport ¶ added in v0.3.0
func NewBuildExport() BuildExport
func (BuildExport) Equal ¶ added in v0.3.0
func (o BuildExport) Equal(other interface{ ToProto() M }) bool
func (BuildExport) MarshalJSON ¶ added in v0.3.0
func (*BuildExport) UnmarshalJSON ¶ added in v0.3.0
func (BuildExport) WithLocation ¶ added in v0.3.0
func (r BuildExport) WithLocation(loc CodeLocation) BuildExport
func (BuildExport) WithSymbol ¶ added in v0.3.0
func (r BuildExport) WithSymbol(sym Symbol) BuildExport
type BuildExportPB ¶ added in v0.3.0
type BuildExportPB = runtimesv1.Export
type BuildExportTraits ¶ added in v0.3.0
type BuildExportTraits struct{}
func (BuildExportTraits) StrictValidate ¶ added in v0.3.0
func (BuildExportTraits) StrictValidate(m *BuildExportPB) error
func (BuildExportTraits) Validate ¶ added in v0.3.0
func (BuildExportTraits) Validate(m *BuildExportPB) error
type BuildID ¶
type BuildID = id[buildIDTraits]
var InvalidBuildID BuildID
func NewBuildID ¶
func NewBuildID() BuildID
func ParseBuildID ¶
func StrictParseBuildID ¶
type BuildRequirement ¶ added in v0.3.0
type BuildRequirement struct {
// contains filtered or unexported fields
}
var InvalidBuildRequirement BuildRequirement
func BuildRequirementFromProto ¶ added in v0.3.0
func BuildRequirementFromProto(m *BuildRequirementPB) (BuildRequirement, error)
func NewBuildRequirement ¶ added in v0.3.0
func NewBuildRequirement() BuildRequirement
func (BuildRequirement) Equal ¶ added in v0.3.0
func (o BuildRequirement) Equal(other interface{ ToProto() M }) bool
func (BuildRequirement) MarshalJSON ¶ added in v0.3.0
func (BuildRequirement) URL ¶ added in v0.3.0
func (r BuildRequirement) URL() *url.URL
func (*BuildRequirement) UnmarshalJSON ¶ added in v0.3.0
func (BuildRequirement) WithLocation ¶ added in v0.3.0
func (r BuildRequirement) WithLocation(loc CodeLocation) BuildRequirement
func (BuildRequirement) WithSymbol ¶ added in v0.3.0
func (r BuildRequirement) WithSymbol(sym Symbol) BuildRequirement
func (BuildRequirement) WithURL ¶ added in v0.3.0
func (r BuildRequirement) WithURL(url *url.URL) BuildRequirement
type BuildRequirementPB ¶ added in v0.3.0
type BuildRequirementPB = runtimesv1.Requirement
type BuildRequirementTraits ¶ added in v0.3.0
type BuildRequirementTraits struct{}
func (BuildRequirementTraits) StrictValidate ¶ added in v0.3.0
func (BuildRequirementTraits) StrictValidate(m *BuildRequirementPB) error
func (BuildRequirementTraits) Validate ¶ added in v0.3.0
func (BuildRequirementTraits) Validate(m *BuildRequirementPB) error
type BuildTraits ¶ added in v0.3.0
type BuildTraits struct{}
func (BuildTraits) StrictValidate ¶ added in v0.3.0
func (BuildTraits) StrictValidate(m *BuildPB) error
func (BuildTraits) Validate ¶ added in v0.3.0
func (BuildTraits) Validate(m *BuildPB) error
type BytesValue ¶
type BytesValue struct {
// contains filtered or unexported fields
}
func (BytesValue) Equal ¶ added in v0.3.0
func (o BytesValue) Equal(other interface{ ToProto() M }) bool
func (BytesValue) MarshalJSON ¶ added in v0.3.0
func (*BytesValue) UnmarshalJSON ¶ added in v0.3.0
func (BytesValue) Value ¶ added in v0.3.0
func (s BytesValue) Value() []byte
type BytesValuePB ¶ added in v0.3.0
type CallFrame ¶
type CallFrame struct {
// contains filtered or unexported fields
}
func CallFrameFromProto ¶
func CallFrameFromProto(m *CallFramePB) (CallFrame, error)
func (CallFrame) Equal ¶ added in v0.3.0
func (o CallFrame) Equal(other interface{ ToProto() M }) bool
func (CallFrame) Location ¶ added in v0.3.0
func (f CallFrame) Location() CodeLocation
func (CallFrame) MarshalJSON ¶ added in v0.3.0
func (*CallFrame) UnmarshalJSON ¶ added in v0.3.0
type CallFramePB ¶
type CallFrameTraits ¶ added in v0.3.0
type CallFrameTraits struct{}
func (CallFrameTraits) StrictValidate ¶ added in v0.3.0
func (CallFrameTraits) StrictValidate(m *CallFramePB) error
func (CallFrameTraits) Validate ¶ added in v0.3.0
func (CallFrameTraits) Validate(m *CallFramePB) error
type CodeLocation ¶
type CodeLocation struct {
// contains filtered or unexported fields
}
func CodeLocationFromProto ¶
func CodeLocationFromProto(m *CodeLocationPB) (CodeLocation, error)
func ParseCodeLocation ¶
func ParseCodeLocation(s string) (CodeLocation, error)
func StrictParseCodeLocation ¶
func StrictParseCodeLocation(s string) (CodeLocation, error)
func (CodeLocation) CanonicalString ¶ added in v0.3.0
func (l CodeLocation) CanonicalString() string
func (CodeLocation) Col ¶ added in v0.3.0
func (l CodeLocation) Col() uint32
func (CodeLocation) Equal ¶ added in v0.3.0
func (o CodeLocation) Equal(other interface{ ToProto() M }) bool
func (CodeLocation) MarshalJSON ¶ added in v0.3.0
func (CodeLocation) Name ¶ added in v0.3.0
func (l CodeLocation) Name() string
func (CodeLocation) Path ¶ added in v0.3.0
func (l CodeLocation) Path() string
func (CodeLocation) Row ¶ added in v0.3.0
func (l CodeLocation) Row() uint32
func (*CodeLocation) UnmarshalJSON ¶ added in v0.3.0
type CodeLocationPB ¶
type CodeLocationPB = programv1.CodeLocation
type CodeLocationTraits ¶ added in v0.3.0
type CodeLocationTraits struct{}
func (CodeLocationTraits) StrictValidate ¶ added in v0.3.0
func (t CodeLocationTraits) StrictValidate(m *CodeLocationPB) error
func (CodeLocationTraits) Validate ¶ added in v0.3.0
func (CodeLocationTraits) Validate(m *CodeLocationPB) error
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
var InvalidConnection Connection
func ConnectionFromProto ¶
func ConnectionFromProto(m *ConnectionPB) (Connection, error)
func NewConnection ¶ added in v0.3.0
func NewConnection(id ConnectionID, name Symbol) Connection
func StrictConnectionFromProto ¶
func StrictConnectionFromProto(m *ConnectionPB) (Connection, error)
func (Connection) Equal ¶ added in v0.3.0
func (o Connection) Equal(other interface{ ToProto() M }) bool
func (Connection) ID ¶ added in v0.3.0
func (p Connection) ID() ConnectionID
func (Connection) IntegrationID ¶ added in v0.3.0
func (p Connection) IntegrationID() IntegrationID
func (Connection) IntegrationToken ¶ added in v0.3.0
func (p Connection) IntegrationToken() string
func (Connection) MarshalJSON ¶ added in v0.3.0
func (Connection) Name ¶ added in v0.3.0
func (p Connection) Name() Symbol
func (Connection) ProjectID ¶ added in v0.3.0
func (p Connection) ProjectID() ProjectID
func (*Connection) UnmarshalJSON ¶ added in v0.3.0
func (Connection) WithID ¶ added in v0.3.0
func (p Connection) WithID(id ConnectionID) Connection
func (Connection) WithIntegrationID ¶ added in v0.3.0
func (p Connection) WithIntegrationID(id IntegrationID) Connection
func (Connection) WithIntegrationToken ¶ added in v0.3.0
func (p Connection) WithIntegrationToken(tok string) Connection
func (Connection) WithName ¶ added in v0.3.0
func (p Connection) WithName(name Symbol) Connection
func (Connection) WithNewID ¶ added in v0.3.0
func (p Connection) WithNewID() Connection
func (Connection) WithProjectID ¶ added in v0.3.0
func (p Connection) WithProjectID(id ProjectID) Connection
type ConnectionID ¶
type ConnectionID = id[connectionIDTraits]
var InvalidConnectionID ConnectionID
func NewConnectionID ¶
func NewConnectionID() ConnectionID
func ParseConnectionID ¶
func ParseConnectionID(s string) (ConnectionID, error)
func StrictParseConnectionID ¶
func StrictParseConnectionID(s string) (ConnectionID, error)
type ConnectionPB ¶
type ConnectionPB = connectionv1.Connection
type ConnectionTraits ¶ added in v0.3.0
type ConnectionTraits struct{}
func (ConnectionTraits) StrictValidate ¶ added in v0.3.0
func (ConnectionTraits) StrictValidate(m *ConnectionPB) error
func (ConnectionTraits) Validate ¶ added in v0.3.0
func (ConnectionTraits) Validate(m *ConnectionPB) error
type Deployment ¶
type Deployment struct {
// contains filtered or unexported fields
}
var InvalidDeployment Deployment
func DeploymentFromProto ¶
func DeploymentFromProto(m *DeploymentPB) (Deployment, error)
func StrictDeploymentFromProto ¶
func StrictDeploymentFromProto(m *DeploymentPB) (Deployment, error)
func (Deployment) BuildID ¶ added in v0.3.0
func (p Deployment) BuildID() BuildID
func (Deployment) EnvID ¶ added in v0.3.0
func (p Deployment) EnvID() EnvID
func (Deployment) Equal ¶ added in v0.3.0
func (o Deployment) Equal(other interface{ ToProto() M }) bool
func (Deployment) ID ¶ added in v0.3.0
func (p Deployment) ID() DeploymentID
func (Deployment) MarshalJSON ¶ added in v0.3.0
func (Deployment) State ¶ added in v0.3.0
func (p Deployment) State() DeploymentState
func (*Deployment) UnmarshalJSON ¶ added in v0.3.0
func (Deployment) WithNewID ¶ added in v0.3.0
func (p Deployment) WithNewID() Deployment
func (Deployment) WithState ¶ added in v0.3.0
func (p Deployment) WithState(s DeploymentState) Deployment
func (Deployment) WithoutTimestamps ¶ added in v0.3.0
func (p Deployment) WithoutTimestamps() Deployment
type DeploymentID ¶
type DeploymentID = id[deploymentIDTraits]
var InvalidDeploymentID DeploymentID
func NewDeploymentID ¶
func NewDeploymentID() DeploymentID
func ParseDeploymentID ¶
func ParseDeploymentID(s string) (DeploymentID, error)
type DeploymentPB ¶
type DeploymentPB = deploymentv1.Deployment
type DeploymentState ¶
type DeploymentState struct {
// contains filtered or unexported fields
}
func DeploymentStateFromProto ¶
func DeploymentStateFromProto(e deploymentsv1.DeploymentState) (DeploymentState, error)
func ParseDeploymentState ¶
func ParseDeploymentState(raw string) (DeploymentState, error)
func (DeploymentState) MarshalJSON ¶ added in v0.3.0
func (*DeploymentState) UnmarshalJSON ¶ added in v0.3.0
type DeploymentTraits ¶ added in v0.3.0
type DeploymentTraits struct{}
func (DeploymentTraits) StrictValidate ¶ added in v0.3.0
func (DeploymentTraits) StrictValidate(m *DeploymentPB) error
func (DeploymentTraits) Validate ¶ added in v0.3.0
func (DeploymentTraits) Validate(m *DeploymentPB) error
type DictValue ¶
type DictValue struct {
// contains filtered or unexported fields
}
func (DictValue) Equal ¶ added in v0.3.0
func (o DictValue) Equal(other interface{ ToProto() M }) bool
func (DictValue) MarshalJSON ¶ added in v0.3.0
func (DictValue) ToStringValuesMap ¶ added in v0.3.0
func (*DictValue) UnmarshalJSON ¶ added in v0.3.0
type DictValuePB ¶ added in v0.3.0
type DurationValue ¶
type DurationValue struct {
// contains filtered or unexported fields
}
func (DurationValue) Equal ¶ added in v0.3.0
func (o DurationValue) Equal(other interface{ ToProto() M }) bool
func (DurationValue) MarshalJSON ¶ added in v0.3.0
func (*DurationValue) UnmarshalJSON ¶ added in v0.3.0
func (DurationValue) Value ¶ added in v0.3.0
func (s DurationValue) Value() time.Duration
type DurationValuePB ¶ added in v0.3.0
type Env ¶
type Env struct {
// contains filtered or unexported fields
}
var InvalidEnv Env
func EnvFromProto ¶
func StrictEnvFromProto ¶
func (Env) MarshalJSON ¶ added in v0.3.0
func (*Env) UnmarshalJSON ¶ added in v0.3.0
func (Env) WithProjectID ¶ added in v0.3.0
type EnvID ¶
type EnvID = id[envIDTraits]
var InvalidEnvID EnvID
func ParseEnvID ¶
func StrictParseEnvID ¶
type EnvTraits ¶ added in v0.3.0
type EnvTraits struct{}
func (EnvTraits) StrictValidate ¶ added in v0.3.0
type EnvVar ¶
type EnvVar struct {
// contains filtered or unexported fields
}
func EnvVarFromProto ¶
func StrictEnvVarFromProto ¶
func (EnvVar) MarshalJSON ¶ added in v0.3.0
func (*EnvVar) UnmarshalJSON ¶ added in v0.3.0
type EnvVarTraits ¶ added in v0.3.0
type EnvVarTraits struct{}
func (EnvVarTraits) StrictValidate ¶ added in v0.3.0
func (EnvVarTraits) StrictValidate(m *EnvVarPB) error
func (EnvVarTraits) Validate ¶ added in v0.3.0
func (EnvVarTraits) Validate(m *EnvVarPB) error
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
var InvalidEvent Event
func EventFromProto ¶
func StrictEventFromProto ¶
func (Event) IntegrationID ¶ added in v0.3.0
func (e Event) IntegrationID() IntegrationID
func (Event) IntegrationToken ¶ added in v0.3.0
func (Event) MarshalJSON ¶ added in v0.3.0
func (*Event) UnmarshalJSON ¶ added in v0.3.0
type EventID ¶
type EventID = id[eventIDTraits]
var InvalidEventID EventID
func NewEventID ¶
func NewEventID() EventID
func ParseEventID ¶
type EventRecord ¶
type EventRecord struct {
// contains filtered or unexported fields
}
func EventRecordFromProto ¶
func EventRecordFromProto(m *EventRecordPB) (EventRecord, error)
func NewEventRecord ¶ added in v0.3.0
func NewEventRecord(eventID EventID, state EventState) EventRecord
func StrictEventRecordFromProto ¶
func StrictEventRecordFromProto(m *EventRecordPB) (EventRecord, error)
func (EventRecord) Equal ¶ added in v0.3.0
func (o EventRecord) Equal(other interface{ ToProto() M }) bool
func (EventRecord) EventID ¶ added in v0.3.0
func (p EventRecord) EventID() (_ EventID)
func (EventRecord) MarshalJSON ¶ added in v0.3.0
func (EventRecord) Seq ¶ added in v0.3.0
func (p EventRecord) Seq() uint32
func (EventRecord) State ¶ added in v0.3.0
func (p EventRecord) State() EventState
func (*EventRecord) UnmarshalJSON ¶ added in v0.3.0
func (EventRecord) WithCreatedAt ¶ added in v0.3.0
func (p EventRecord) WithCreatedAt(createdAt time.Time) EventRecord
func (EventRecord) WithSeq ¶ added in v0.3.0
func (p EventRecord) WithSeq(seq uint32) EventRecord
type EventRecordPB ¶
type EventRecordPB = eventv1.EventRecord
type EventRecordTraits ¶ added in v0.3.0
type EventRecordTraits struct{}
func (EventRecordTraits) StrictValidate ¶ added in v0.3.0
func (t EventRecordTraits) StrictValidate(m *EventRecordPB) error
func (EventRecordTraits) Validate ¶ added in v0.3.0
func (EventRecordTraits) Validate(m *EventRecordPB) error
type EventState ¶
type EventState struct {
// contains filtered or unexported fields
}
func EventStateFromProto ¶ added in v0.3.0
func EventStateFromProto(e eventsv1.EventState) (EventState, error)
func ParseEventState ¶ added in v0.3.0
func ParseEventState(raw string) (EventState, error)
func (EventState) MarshalJSON ¶ added in v0.3.0
func (*EventState) UnmarshalJSON ¶ added in v0.3.0
type EventTraits ¶ added in v0.3.0
type EventTraits struct{}
func (EventTraits) StrictValidate ¶ added in v0.3.0
func (EventTraits) StrictValidate(m *EventPB) error
func (EventTraits) Validate ¶ added in v0.3.0
func (EventTraits) Validate(m *EventPB) error
type ExecutorID ¶
type ExecutorID struct {
// contains filtered or unexported fields
}
var InvalidExecutorID ExecutorID
func NewExecutorID ¶
func NewExecutorID[T concreteExecutorID](in T) ExecutorID
func ParseExecutorID ¶
func ParseExecutorID(s string) (ExecutorID, error)
func (ExecutorID) IsIntegrationID ¶ added in v0.3.0
func (e ExecutorID) IsIntegrationID() bool
func (ExecutorID) IsRunID ¶ added in v0.3.0
func (e ExecutorID) IsRunID() bool
func (ExecutorID) MarshalJSON ¶ added in v0.3.0
func (ExecutorID) ToIntegrationID ¶ added in v0.3.0
func (e ExecutorID) ToIntegrationID() IntegrationID
func (ExecutorID) ToRunID ¶ added in v0.3.0
func (e ExecutorID) ToRunID() RunID
func (*ExecutorID) UnmarshalJSON ¶ added in v0.3.0
type FloatValue ¶
type FloatValue struct {
// contains filtered or unexported fields
}
func (FloatValue) Equal ¶ added in v0.3.0
func (o FloatValue) Equal(other interface{ ToProto() M }) bool
func (FloatValue) MarshalJSON ¶ added in v0.3.0
func (*FloatValue) UnmarshalJSON ¶ added in v0.3.0
func (FloatValue) Value ¶ added in v0.3.0
func (s FloatValue) Value() float64
type FloatValuePB ¶ added in v0.3.0
type FunctionFlag ¶
type FunctionFlag string
const ( PrivilidgedFunctionFlag FunctionFlag = "privilidged" // pass workflow context. PureFunctionFlag FunctionFlag = "pure" // do not run in an activity. DisablePollingFunctionFlag FunctionFlag = "no-poll" // do not poll. ConstFunctionFlag FunctionFlag = "const" // result is serialized in data. )
func (FunctionFlag) String ¶
func (ff FunctionFlag) String() string
type FunctionValue ¶
type FunctionValue struct {
// contains filtered or unexported fields
}
func (FunctionValue) ArgNames ¶ added in v0.3.0
func (f FunctionValue) ArgNames() []string
func (FunctionValue) ConstValue ¶ added in v0.4.0
func (f FunctionValue) ConstValue() (Value, error)
func (FunctionValue) Data ¶ added in v0.3.0
func (f FunctionValue) Data() []byte
func (FunctionValue) Equal ¶ added in v0.3.0
func (o FunctionValue) Equal(other interface{ ToProto() M }) bool
func (FunctionValue) ExecutorID ¶ added in v0.3.0
func (f FunctionValue) ExecutorID() ExecutorID
func (FunctionValue) HasFlag ¶ added in v0.3.0
func (f FunctionValue) HasFlag(flag FunctionFlag) bool
func (FunctionValue) MarshalJSON ¶ added in v0.3.0
func (FunctionValue) Name ¶ added in v0.3.0
func (f FunctionValue) Name() Symbol
func (FunctionValue) UniqueID ¶ added in v0.3.0
func (f FunctionValue) UniqueID() string
func (*FunctionValue) UnmarshalJSON ¶ added in v0.3.0
type FunctionValuePB ¶ added in v0.3.0
type IntegerValue ¶
type IntegerValue struct {
// contains filtered or unexported fields
}
func (IntegerValue) Equal ¶ added in v0.3.0
func (o IntegerValue) Equal(other interface{ ToProto() M }) bool
func (IntegerValue) MarshalJSON ¶ added in v0.3.0
func (*IntegerValue) UnmarshalJSON ¶ added in v0.3.0
func (IntegerValue) Value ¶ added in v0.3.0
func (s IntegerValue) Value() int64
type IntegerValuePB ¶ added in v0.3.0
type Integration ¶
type Integration struct {
// contains filtered or unexported fields
}
var InvalidIntegration Integration
func IntegrationFromProto ¶
func IntegrationFromProto(m *IntegrationPB) (Integration, error)
func StrictIntegrationFromProto ¶
func StrictIntegrationFromProto(m *IntegrationPB) (Integration, error)
func (Integration) ConnectionURL ¶ added in v0.3.0
func (p Integration) ConnectionURL() *url.URL
func (Integration) Description ¶ added in v0.3.0
func (p Integration) Description() string
func (Integration) DisplayName ¶ added in v0.3.0
func (p Integration) DisplayName() string
func (Integration) Equal ¶ added in v0.3.0
func (o Integration) Equal(other interface{ ToProto() M }) bool
func (Integration) ID ¶ added in v0.3.0
func (p Integration) ID() IntegrationID
func (Integration) LogoURL ¶ added in v0.3.0
func (p Integration) LogoURL() *url.URL
func (Integration) MarshalJSON ¶ added in v0.3.0
func (Integration) UniqueName ¶ added in v0.3.0
func (p Integration) UniqueName() Symbol
func (*Integration) UnmarshalJSON ¶ added in v0.3.0
func (Integration) UpdateModule ¶ added in v0.3.0
func (p Integration) UpdateModule(m Module) Integration
func (Integration) UserLinks ¶ added in v0.3.0
func (p Integration) UserLinks() map[string]string
func (Integration) WithDescription ¶ added in v0.3.0
func (p Integration) WithDescription(s string) Integration
func (Integration) WithModule ¶ added in v0.3.0
func (p Integration) WithModule(m Module) Integration
func (Integration) WithUserLinks ¶ added in v0.3.0
func (p Integration) WithUserLinks(links map[string]string) Integration
type IntegrationID ¶
type IntegrationID = id[integrationIDTraits]
var InvalidIntegrationID IntegrationID
func IntegrationIDFromName ¶
func IntegrationIDFromName(name string) IntegrationID
func NewIntegrationID ¶
func NewIntegrationID() IntegrationID
func ParseIntegrationID ¶
func ParseIntegrationID(s string) (IntegrationID, error)
func StrictParseIntegrationID ¶
func StrictParseIntegrationID(s string) (IntegrationID, error)
type IntegrationPB ¶
type IntegrationPB = integrationv1.Integration
type IntegrationTraits ¶ added in v0.3.0
type IntegrationTraits struct{}
func (IntegrationTraits) StrictValidate ¶ added in v0.3.0
func (IntegrationTraits) StrictValidate(m *IntegrationPB) error
func (IntegrationTraits) Validate ¶ added in v0.3.0
func (IntegrationTraits) Validate(m *IntegrationPB) error
type ListValue ¶
type ListValue struct {
// contains filtered or unexported fields
}
func (ListValue) Equal ¶ added in v0.3.0
func (o ListValue) Equal(other interface{ ToProto() M }) bool
func (ListValue) MarshalJSON ¶ added in v0.3.0
func (*ListValue) UnmarshalJSON ¶ added in v0.3.0
type ListValuePB ¶ added in v0.3.0
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
var InvalidModule Module
func ModuleFromProto ¶
func NewModule ¶
func NewModule(fs map[string]ModuleFunction, vs map[string]ModuleVariable) (Module, error)
func StrictModuleFromProto ¶
func (Module) MarshalJSON ¶ added in v0.3.0
func (*Module) UnmarshalJSON ¶ added in v0.3.0
type ModuleFunction ¶
type ModuleFunction struct {
// contains filtered or unexported fields
}
var InvalidModuleFunction ModuleFunction
func ModuleFunctionFromProto ¶
func ModuleFunctionFromProto(m *ModuleFunctionPB) (ModuleFunction, error)
func StrictModuleFunctionFromProto ¶
func StrictModuleFunctionFromProto(m *ModuleFunctionPB) (ModuleFunction, error)
func (ModuleFunction) Equal ¶ added in v0.3.0
func (o ModuleFunction) Equal(other interface{ ToProto() M }) bool
func (ModuleFunction) MarshalJSON ¶ added in v0.3.0
func (*ModuleFunction) UnmarshalJSON ¶ added in v0.3.0
type ModuleFunctionField ¶ added in v0.3.0
type ModuleFunctionField struct {
// contains filtered or unexported fields
}
func ModuleFunctionFieldFromProto ¶ added in v0.3.0
func ModuleFunctionFieldFromProto(m *ModuleFunctionFieldPB) (ModuleFunctionField, error)
func StrictModuleFunctionFieldFromProto ¶ added in v0.3.0
func StrictModuleFunctionFieldFromProto(m *ModuleFunctionFieldPB) (ModuleFunctionField, error)
func (ModuleFunctionField) Equal ¶ added in v0.3.0
func (o ModuleFunctionField) Equal(other interface{ ToProto() M }) bool
func (ModuleFunctionField) MarshalJSON ¶ added in v0.3.0
func (*ModuleFunctionField) UnmarshalJSON ¶ added in v0.3.0
type ModuleFunctionFieldPB ¶
type ModuleFunctionFieldPB = modulev1.FunctionField
type ModuleFunctionFieldTraits ¶ added in v0.3.0
type ModuleFunctionFieldTraits struct{}
func (ModuleFunctionFieldTraits) StrictValidate ¶ added in v0.3.0
func (ModuleFunctionFieldTraits) StrictValidate(m *ModuleFunctionFieldPB) error
func (ModuleFunctionFieldTraits) Validate ¶ added in v0.3.0
func (ModuleFunctionFieldTraits) Validate(m *ModuleFunctionFieldPB) error
type ModuleFunctionPB ¶
type ModuleFunctionTraits ¶ added in v0.3.0
type ModuleFunctionTraits struct{}
func (ModuleFunctionTraits) StrictValidate ¶ added in v0.3.0
func (ModuleFunctionTraits) StrictValidate(m *ModuleFunctionPB) error
func (ModuleFunctionTraits) Validate ¶ added in v0.3.0
func (ModuleFunctionTraits) Validate(m *ModuleFunctionPB) error
type ModuleTraits ¶ added in v0.3.0
type ModuleTraits struct{}
func (ModuleTraits) StrictValidate ¶ added in v0.3.0
func (ModuleTraits) StrictValidate(m *ModulePB) error
func (ModuleTraits) Validate ¶ added in v0.3.0
func (ModuleTraits) Validate(m *ModulePB) error
type ModuleValue ¶
type ModuleValue struct {
// contains filtered or unexported fields
}
func (ModuleValue) Equal ¶ added in v0.3.0
func (o ModuleValue) Equal(other interface{ ToProto() M }) bool
func (ModuleValue) MarshalJSON ¶ added in v0.3.0
func (ModuleValue) Members ¶ added in v0.3.0
func (s ModuleValue) Members() map[string]Value
func (ModuleValue) Name ¶ added in v0.3.0
func (s ModuleValue) Name() Symbol
func (*ModuleValue) UnmarshalJSON ¶ added in v0.3.0
type ModuleValuePB ¶ added in v0.3.0
type ModuleVariable ¶
type ModuleVariable struct {
// contains filtered or unexported fields
}
func ModuleVariableFromProto ¶
func ModuleVariableFromProto(m *ModuleVariablePB) (ModuleVariable, error)
func StrictModuleVariableFromProto ¶
func StrictModuleVariableFromProto(m *ModuleVariablePB) (ModuleVariable, error)
func (ModuleVariable) Equal ¶ added in v0.3.0
func (o ModuleVariable) Equal(other interface{ ToProto() M }) bool
func (ModuleVariable) MarshalJSON ¶ added in v0.3.0
func (*ModuleVariable) UnmarshalJSON ¶ added in v0.3.0
type ModuleVariablePB ¶
type ModuleVariableTraits ¶ added in v0.3.0
type ModuleVariableTraits struct{}
func (ModuleVariableTraits) StrictValidate ¶ added in v0.3.0
func (ModuleVariableTraits) StrictValidate(m *ModuleVariablePB) error
func (ModuleVariableTraits) Validate ¶ added in v0.3.0
func (ModuleVariableTraits) Validate(m *ModuleVariablePB) error
type NothingValue ¶
type NothingValue struct {
// contains filtered or unexported fields
}
func (NothingValue) Equal ¶ added in v0.3.0
func (o NothingValue) Equal(other interface{ ToProto() M }) bool
func (NothingValue) MarshalJSON ¶ added in v0.3.0
func (*NothingValue) UnmarshalJSON ¶ added in v0.3.0
type NothingValuePB ¶ added in v0.3.0
type ProgramError ¶
type ProgramError struct {
// contains filtered or unexported fields
}
var InvalidProgramError ProgramError
func FromError ¶ added in v0.3.0
func FromError(err error) (ProgramError, bool)
func NewProgramError ¶
func NewProgramError(v Value, callstack []CallFrame, extra map[string]string) ProgramError
func ProgramErrorFromProto ¶
func ProgramErrorFromProto(m *ProgramErrorPB) (ProgramError, error)
func StrictProgramErrorFromProto ¶
func StrictProgramErrorFromProto(m *ProgramErrorPB) (ProgramError, error)
func WrapError ¶ added in v0.3.0
func WrapError(err error) ProgramError
func (ProgramError) CallStack ¶ added in v0.3.0
func (e ProgramError) CallStack() []CallFrame
func (ProgramError) Equal ¶ added in v0.3.0
func (o ProgramError) Equal(other interface{ ToProto() M }) bool
func (ProgramError) ErrorString ¶ added in v0.3.0
func (e ProgramError) ErrorString() string
func (ProgramError) Extra ¶ added in v0.3.0
func (e ProgramError) Extra() map[string]string
func (ProgramError) MarshalJSON ¶ added in v0.3.0
func (ProgramError) ToError ¶ added in v0.3.0
func (p ProgramError) ToError() (err error)
func (*ProgramError) UnmarshalJSON ¶ added in v0.3.0
func (ProgramError) Value ¶ added in v0.3.0
func (e ProgramError) Value() Value
type ProgramErrorPB ¶
type ProgramErrorTraits ¶ added in v0.3.0
type ProgramErrorTraits struct{}
func (ProgramErrorTraits) StrictValidate ¶ added in v0.3.0
func (ProgramErrorTraits) StrictValidate(m *ProgramErrorPB) error
func (ProgramErrorTraits) Validate ¶ added in v0.3.0
func (ProgramErrorTraits) Validate(m *ProgramErrorPB) error
type Project ¶
type Project struct {
// contains filtered or unexported fields
}
var InvalidProject Project
func NewProject ¶ added in v0.3.0
func NewProject() Project
func ProjectFromProto ¶
func StrictProjectFromProto ¶
func (Project) MarshalJSON ¶ added in v0.3.0
func (*Project) UnmarshalJSON ¶ added in v0.3.0
type ProjectID ¶
type ProjectID = id[projectIDTraits]
var InvalidProjectID ProjectID
func NewProjectID ¶
func NewProjectID() ProjectID
func ParseProjectID ¶
func StrictParseProjectID ¶
type ProjectTraits ¶ added in v0.3.0
type ProjectTraits struct{}
func (ProjectTraits) StrictValidate ¶ added in v0.3.0
func (ProjectTraits) StrictValidate(m *ProjectPB) error
func (ProjectTraits) Validate ¶ added in v0.3.0
func (ProjectTraits) Validate(m *ProjectPB) error
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func RuntimeFromProto ¶
func StrictRuntimeFromProto ¶
func (Runtime) FileExtensions ¶ added in v0.3.0
func (Runtime) MarshalJSON ¶ added in v0.3.0
func (*Runtime) UnmarshalJSON ¶ added in v0.3.0
type RuntimeTraits ¶ added in v0.3.0
type RuntimeTraits struct{}
func (RuntimeTraits) StrictValidate ¶ added in v0.3.0
func (RuntimeTraits) StrictValidate(m *RuntimePB) error
func (RuntimeTraits) Validate ¶ added in v0.3.0
func (RuntimeTraits) Validate(m *RuntimePB) error
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
var InvalidSession Session
func NewSession ¶
func SessionFromProto ¶
func StrictSessionFromProto ¶
func (Session) DeploymentID ¶ added in v0.3.0
func (p Session) DeploymentID() DeploymentID
func (Session) EntryPoint ¶ added in v0.3.0
func (p Session) EntryPoint() CodeLocation
func (Session) MarshalJSON ¶ added in v0.3.0
func (Session) State ¶ added in v0.3.0
func (p Session) State() SessionStateType
func (*Session) UnmarshalJSON ¶ added in v0.3.0
func (Session) WithBuildID ¶ added in v0.4.0
func (Session) WithDeploymentID ¶ added in v0.4.0
func (s Session) WithDeploymentID(id DeploymentID) Session
func (Session) WithEndpoint ¶ added in v0.4.0
func (s Session) WithEndpoint(ep CodeLocation) Session
func (Session) WithEventID ¶ added in v0.4.0
func (Session) WithInputs ¶ added in v0.3.0
func (Session) WithParentSessionID ¶ added in v0.4.0
type SessionCall ¶
type SessionCall struct {
// contains filtered or unexported fields
}
var InvalidSessionCall SessionCall
func SessionCallFromProto ¶
func SessionCallFromProto(m *SessionCallPB) (SessionCall, error)
func StrictSessionCallFromProto ¶
func StrictSessionCallFromProto(m *SessionCallPB) (SessionCall, error)
func (SessionCall) Equal ¶ added in v0.3.0
func (o SessionCall) Equal(other interface{ ToProto() M }) bool
func (SessionCall) MarshalJSON ¶ added in v0.3.0
func (*SessionCall) UnmarshalJSON ¶ added in v0.3.0
type SessionCallAttempt ¶ added in v0.3.0
type SessionCallAttempt struct {
// contains filtered or unexported fields
}
var InvalidSessionCallAttempt SessionCallAttempt
func SessionCallAttemptFromProto ¶ added in v0.3.0
func SessionCallAttemptFromProto(m *SessionCallAttemptPB) (SessionCallAttempt, error)
func StrictSessionCallAttemptFromProto ¶ added in v0.3.0
func StrictSessionCallAttemptFromProto(m *SessionCallAttemptPB) (SessionCallAttempt, error)
func (SessionCallAttempt) Equal ¶ added in v0.3.0
func (o SessionCallAttempt) Equal(other interface{ ToProto() M }) bool
func (SessionCallAttempt) MarshalJSON ¶ added in v0.3.0
func (*SessionCallAttempt) UnmarshalJSON ¶ added in v0.3.0
type SessionCallAttemptComplete ¶
type SessionCallAttemptComplete struct {
// contains filtered or unexported fields
}
var InvalidSessionCallAttemptComplete SessionCallAttemptComplete
func NewSessionCallAttemptComplete ¶
func NewSessionCallAttemptComplete(last bool, interval time.Duration, result SessionCallAttemptResult) SessionCallAttemptComplete
func NewSessionLogCallAttemptComplete ¶
func NewSessionLogCallAttemptComplete(complete SessionCallAttemptComplete) SessionCallAttemptComplete
func SessionCallAttemptCompleteFromProto ¶
func SessionCallAttemptCompleteFromProto(m *SessionCallAttemptCompletePB) (SessionCallAttemptComplete, error)
func StrictSessionCallAttemptCompleteFromProto ¶
func StrictSessionCallAttemptCompleteFromProto(m *SessionCallAttemptCompletePB) (SessionCallAttemptComplete, error)
func (SessionCallAttemptComplete) Equal ¶ added in v0.3.0
func (o SessionCallAttemptComplete) Equal(other interface{ ToProto() M }) bool
func (SessionCallAttemptComplete) Hash ¶ added in v0.3.0
func (o SessionCallAttemptComplete) Hash() string
func (SessionCallAttemptComplete) IsValid ¶ added in v0.3.0
func (o SessionCallAttemptComplete) IsValid() bool
func (SessionCallAttemptComplete) MarshalJSON ¶ added in v0.3.0
func (SessionCallAttemptComplete) Result ¶ added in v0.3.0
func (p SessionCallAttemptComplete) Result() SessionCallAttemptResult
func (SessionCallAttemptComplete) Strict ¶ added in v0.3.0
func (o SessionCallAttemptComplete) Strict() error
func (SessionCallAttemptComplete) String ¶ added in v0.3.0
func (o SessionCallAttemptComplete) String() string
func (SessionCallAttemptComplete) ToProto ¶ added in v0.3.0
func (o SessionCallAttemptComplete) ToProto() M
func (*SessionCallAttemptComplete) UnmarshalJSON ¶ added in v0.3.0
type SessionCallAttemptCompletePB ¶
type SessionCallAttemptCompletePB = sessionv1.Call_Attempt_Complete
type SessionCallAttemptCompleteTraits ¶ added in v0.3.0
type SessionCallAttemptCompleteTraits struct{}
func (SessionCallAttemptCompleteTraits) StrictValidate ¶ added in v0.3.0
func (SessionCallAttemptCompleteTraits) StrictValidate(m *SessionCallAttemptCompletePB) error
func (SessionCallAttemptCompleteTraits) Validate ¶ added in v0.3.0
func (SessionCallAttemptCompleteTraits) Validate(m *SessionCallAttemptCompletePB) error
type SessionCallAttemptPB ¶ added in v0.3.0
type SessionCallAttemptPB = sessionv1.Call_Attempt
type SessionCallAttemptResult ¶
type SessionCallAttemptResult struct {
// contains filtered or unexported fields
}
var InvalidSessionCallAttemptResult SessionCallAttemptResult
func NewSessionCallAttemptResult ¶
func NewSessionCallAttemptResult(v Value, err error) SessionCallAttemptResult
func SessionCallAttemptResultFromProto ¶
func SessionCallAttemptResultFromProto(m *SessionCallAttemptResultPB) (SessionCallAttemptResult, error)
func StrictSessionCallAttemptResultFromProto ¶
func StrictSessionCallAttemptResultFromProto(m *SessionCallAttemptResultPB) (SessionCallAttemptResult, error)
func (SessionCallAttemptResult) Equal ¶ added in v0.3.0
func (o SessionCallAttemptResult) Equal(other interface{ ToProto() M }) bool
func (SessionCallAttemptResult) GetError ¶ added in v0.3.0
func (r SessionCallAttemptResult) GetError() error
func (SessionCallAttemptResult) GetValue ¶ added in v0.3.0
func (r SessionCallAttemptResult) GetValue() Value
func (SessionCallAttemptResult) Hash ¶ added in v0.3.0
func (o SessionCallAttemptResult) Hash() string
func (SessionCallAttemptResult) IsValid ¶ added in v0.3.0
func (o SessionCallAttemptResult) IsValid() bool
func (SessionCallAttemptResult) MarshalJSON ¶ added in v0.3.0
func (SessionCallAttemptResult) Strict ¶ added in v0.3.0
func (o SessionCallAttemptResult) Strict() error
func (SessionCallAttemptResult) String ¶ added in v0.3.0
func (o SessionCallAttemptResult) String() string
func (SessionCallAttemptResult) ToPair ¶ added in v0.3.0
func (r SessionCallAttemptResult) ToPair() (Value, error)
func (SessionCallAttemptResult) ToProto ¶ added in v0.3.0
func (o SessionCallAttemptResult) ToProto() M
func (SessionCallAttemptResult) ToValueTuple ¶ added in v0.3.2
func (r SessionCallAttemptResult) ToValueTuple() Value
func (*SessionCallAttemptResult) UnmarshalJSON ¶ added in v0.3.0
type SessionCallAttemptResultPB ¶
type SessionCallAttemptResultPB = sessionv1.Call_Attempt_Result
type SessionCallAttemptResultTraits ¶ added in v0.3.0
type SessionCallAttemptResultTraits struct{}
func (SessionCallAttemptResultTraits) StrictValidate ¶ added in v0.3.0
func (SessionCallAttemptResultTraits) StrictValidate(m *SessionCallAttemptResultPB) error
func (SessionCallAttemptResultTraits) Validate ¶ added in v0.3.0
func (SessionCallAttemptResultTraits) Validate(m *SessionCallAttemptResultPB) error
type SessionCallAttemptStart ¶
type SessionCallAttemptStart struct {
// contains filtered or unexported fields
}
var InvalidSessionCallAttemptStart SessionCallAttemptStart
func SessionCallAttemptStartFromProto ¶
func SessionCallAttemptStartFromProto(m *SessionCallAttemptStartPB) (SessionCallAttemptStart, error)
func StrictSessionCallAttemptStartFromProto ¶
func StrictSessionCallAttemptStartFromProto(m *SessionCallAttemptStartPB) (SessionCallAttemptStart, error)
func (SessionCallAttemptStart) Equal ¶ added in v0.3.0
func (o SessionCallAttemptStart) Equal(other interface{ ToProto() M }) bool
func (SessionCallAttemptStart) Hash ¶ added in v0.3.0
func (o SessionCallAttemptStart) Hash() string
func (SessionCallAttemptStart) IsValid ¶ added in v0.3.0
func (o SessionCallAttemptStart) IsValid() bool
func (SessionCallAttemptStart) MarshalJSON ¶ added in v0.3.0
func (SessionCallAttemptStart) Strict ¶ added in v0.3.0
func (o SessionCallAttemptStart) Strict() error
func (SessionCallAttemptStart) String ¶ added in v0.3.0
func (o SessionCallAttemptStart) String() string
func (SessionCallAttemptStart) ToProto ¶ added in v0.3.0
func (o SessionCallAttemptStart) ToProto() M
func (*SessionCallAttemptStart) UnmarshalJSON ¶ added in v0.3.0
type SessionCallAttemptStartPB ¶
type SessionCallAttemptStartPB = sessionv1.Call_Attempt_Start
type SessionCallAttemptStartTraits ¶ added in v0.3.0
type SessionCallAttemptStartTraits struct{}
func (SessionCallAttemptStartTraits) StrictValidate ¶ added in v0.3.0
func (SessionCallAttemptStartTraits) StrictValidate(m *SessionCallAttemptStartPB) error
func (SessionCallAttemptStartTraits) Validate ¶ added in v0.3.0
func (SessionCallAttemptStartTraits) Validate(m *SessionCallAttemptStartPB) error
type SessionCallAttemptTraits ¶ added in v0.3.0
type SessionCallAttemptTraits struct{}
func (SessionCallAttemptTraits) StrictValidate ¶ added in v0.3.0
func (SessionCallAttemptTraits) StrictValidate(m *SessionCallAttemptPB) error
func (SessionCallAttemptTraits) Validate ¶ added in v0.3.0
func (SessionCallAttemptTraits) Validate(m *SessionCallAttemptPB) error
type SessionCallPB ¶
type SessionCallSpec ¶
type SessionCallSpec struct {
// contains filtered or unexported fields
}
var InvalidSessionCallSpec SessionCallSpec
func NewSessionCallSpec ¶
func SessionCallSpecFromProto ¶
func SessionCallSpecFromProto(m *SessionCallSpecPB) (SessionCallSpec, error)
func StrictSessionCallSpecFromProto ¶
func StrictSessionCallSpecFromProto(m *SessionCallSpecPB) (SessionCallSpec, error)
func (SessionCallSpec) Data ¶ added in v0.3.0
func (p SessionCallSpec) Data() (Value, []Value, map[string]Value)
func (SessionCallSpec) Equal ¶ added in v0.3.0
func (o SessionCallSpec) Equal(other interface{ ToProto() M }) bool
func (SessionCallSpec) MarshalJSON ¶ added in v0.3.0
func (SessionCallSpec) Seq ¶ added in v0.3.0
func (p SessionCallSpec) Seq() uint32
func (*SessionCallSpec) UnmarshalJSON ¶ added in v0.3.0
type SessionCallSpecPB ¶
type SessionCallSpecTraits ¶ added in v0.3.0
type SessionCallSpecTraits struct{}
func (SessionCallSpecTraits) StrictValidate ¶ added in v0.3.0
func (SessionCallSpecTraits) StrictValidate(m *SessionCallSpecPB) error
func (SessionCallSpecTraits) Validate ¶ added in v0.3.0
func (SessionCallSpecTraits) Validate(m *SessionCallSpecPB) error
type SessionCallTraits ¶ added in v0.3.0
type SessionCallTraits struct{}
func (SessionCallTraits) StrictValidate ¶ added in v0.3.0
func (SessionCallTraits) StrictValidate(m *SessionCallPB) error
func (SessionCallTraits) Validate ¶ added in v0.3.0
func (SessionCallTraits) Validate(m *SessionCallPB) error
type SessionID ¶
type SessionID = id[sessionIDTraits]
var InvalidSessionID SessionID
func NewSessionID ¶
func NewSessionID() SessionID
func ParseSessionID ¶
func StrictParseSessionID ¶
type SessionLog ¶
type SessionLog struct {
// contains filtered or unexported fields
}
var InvalidSessionLog SessionLog
func NewSessionLog ¶
func NewSessionLog(rs []SessionLogRecord) SessionLog
func SessionLogFromProto ¶
func SessionLogFromProto(m *SessionLogPB) (SessionLog, error)
func StrictSessionLogFromProto ¶
func StrictSessionLogFromProto(m *SessionLogPB) (SessionLog, error)
func (SessionLog) Equal ¶ added in v0.3.0
func (o SessionLog) Equal(other interface{ ToProto() M }) bool
func (SessionLog) MarshalJSON ¶ added in v0.3.0
func (SessionLog) Records ¶ added in v0.4.0
func (l SessionLog) Records() []SessionLogRecord
func (*SessionLog) UnmarshalJSON ¶ added in v0.3.0
type SessionLogPB ¶
type SessionLogPB = sessionv1.SessionLog
type SessionLogRecord ¶
type SessionLogRecord struct {
// contains filtered or unexported fields
}
var InvalidSessionLogRecord SessionLogRecord
func NewCallAttemptCompleteSessionLogRecord ¶
func NewCallAttemptCompleteSessionLogRecord(s SessionCallAttemptComplete) SessionLogRecord
func NewCallAttemptStartSessionLogRecord ¶
func NewCallAttemptStartSessionLogRecord(s SessionCallAttemptStart) SessionLogRecord
func NewCallSpecSessionLogRecord ¶
func NewCallSpecSessionLogRecord(s SessionCallSpec) SessionLogRecord
func NewPrintSessionLogRecord ¶
func NewPrintSessionLogRecord(text string) SessionLogRecord
func NewStateSessionLogRecord ¶
func NewStateSessionLogRecord(state SessionState) SessionLogRecord
func NewStopRequestSessionLogRecord ¶ added in v0.4.0
func NewStopRequestSessionLogRecord(reason string) SessionLogRecord
func SessionLogRecordFromProto ¶
func SessionLogRecordFromProto(m *SessionLogRecordPB) (SessionLogRecord, error)
func StrictSessionLogRecordFromProto ¶
func StrictSessionLogRecordFromProto(m *SessionLogRecordPB) (SessionLogRecord, error)
func (SessionLogRecord) Equal ¶ added in v0.3.0
func (o SessionLogRecord) Equal(other interface{ ToProto() M }) bool
func (SessionLogRecord) GetPrint ¶ added in v0.4.0
func (s SessionLogRecord) GetPrint() (string, bool)
func (SessionLogRecord) GetStopRequest ¶ added in v0.4.0
func (s SessionLogRecord) GetStopRequest() (string, bool)
func (SessionLogRecord) MarshalJSON ¶ added in v0.3.0
func (SessionLogRecord) Timestamp ¶ added in v0.4.0
func (r SessionLogRecord) Timestamp() time.Time
func (*SessionLogRecord) UnmarshalJSON ¶ added in v0.3.0
func (SessionLogRecord) WithoutTimestamp ¶ added in v0.4.0
func (r SessionLogRecord) WithoutTimestamp() SessionLogRecord
type SessionLogRecordPB ¶
type SessionLogRecordPB = sessionv1.SessionLogRecord
type SessionLogRecordTraits ¶ added in v0.3.0
type SessionLogRecordTraits struct{}
func (SessionLogRecordTraits) StrictValidate ¶ added in v0.3.0
func (SessionLogRecordTraits) StrictValidate(m *SessionLogRecordPB) error
func (SessionLogRecordTraits) Validate ¶ added in v0.3.0
func (SessionLogRecordTraits) Validate(m *SessionLogRecordPB) error
type SessionLogTraits ¶ added in v0.3.0
type SessionLogTraits struct{}
func (SessionLogTraits) StrictValidate ¶ added in v0.3.0
func (SessionLogTraits) StrictValidate(m *SessionLogPB) error
func (SessionLogTraits) Validate ¶ added in v0.3.0
func (SessionLogTraits) Validate(m *SessionLogPB) error
type SessionState ¶
type SessionState struct {
// contains filtered or unexported fields
}
func NewSessionState ¶ added in v0.3.0
func NewSessionState(t time.Time, concrete concreteSessionState) SessionState
func NewSessionStateCompleted ¶ added in v0.3.0
func NewSessionStateCompleted(prints []string, exports map[string]Value, ret Value) SessionState
func NewSessionStateCreated ¶ added in v0.3.0
func NewSessionStateCreated() SessionState
func NewSessionStateError ¶ added in v0.3.0
func NewSessionStateError(err error, prints []string) SessionState
func NewSessionStateRunning ¶ added in v0.3.0
func NewSessionStateRunning(rid RunID, callValue Value) SessionState
func NewSessionStateStopped ¶ added in v0.4.0
func NewSessionStateStopped(reason string) SessionState
func SessionStateFromProto ¶
func SessionStateFromProto(m *SessionStatePB) (SessionState, error)
func StrictSessionStateFromProto ¶
func StrictSessionStateFromProto(m *SessionStatePB) (SessionState, error)
func (SessionState) Concrete ¶ added in v0.3.0
func (p SessionState) Concrete() concreteSessionState
func (SessionState) Equal ¶ added in v0.3.0
func (o SessionState) Equal(other interface{ ToProto() M }) bool
func (SessionState) GetCompleted ¶ added in v0.3.0
func (s SessionState) GetCompleted() SessionStateCompleted
func (SessionState) GetCreated ¶ added in v0.3.0
func (s SessionState) GetCreated() SessionStateCreated
func (SessionState) GetError ¶ added in v0.3.0
func (s SessionState) GetError() SessionStateError
func (SessionState) GetRunning ¶ added in v0.3.0
func (s SessionState) GetRunning() SessionStateRunning
func (SessionState) GetStopped ¶ added in v0.4.0
func (s SessionState) GetStopped() SessionStateStopped
func (SessionState) MarshalJSON ¶ added in v0.3.0
func (SessionState) Type ¶ added in v0.3.0
func (p SessionState) Type() SessionStateType
func (*SessionState) UnmarshalJSON ¶ added in v0.3.0
type SessionStateCompleted ¶ added in v0.3.0
type SessionStateCompleted struct {
// contains filtered or unexported fields
}
var InvalidSessionStateCompleted SessionStateCompleted
func SessionStateCompletedFromProto ¶ added in v0.3.0
func SessionStateCompletedFromProto(m *SessionStateCompletedPB) (SessionStateCompleted, error)
func StrictSessionStateCompletedFromProto ¶ added in v0.3.0
func StrictSessionStateCompletedFromProto(m *SessionStateCompletedPB) (SessionStateCompleted, error)
func (SessionStateCompleted) Equal ¶ added in v0.3.0
func (o SessionStateCompleted) Equal(other interface{ ToProto() M }) bool
func (SessionStateCompleted) IsValid ¶ added in v0.3.0
func (o SessionStateCompleted) IsValid() bool
func (SessionStateCompleted) MarshalJSON ¶ added in v0.3.0
func (SessionStateCompleted) String ¶ added in v0.3.0
func (o SessionStateCompleted) String() string
func (*SessionStateCompleted) UnmarshalJSON ¶ added in v0.3.0
type SessionStateCompletedPB ¶ added in v0.3.0
type SessionStateCompletedPB = sessionv1.SessionState_Completed
type SessionStateCompletedTraits ¶ added in v0.3.0
type SessionStateCompletedTraits struct{}
func (SessionStateCompletedTraits) StrictValidate ¶ added in v0.3.0
func (SessionStateCompletedTraits) StrictValidate(m *SessionStateCompletedPB) error
func (SessionStateCompletedTraits) Validate ¶ added in v0.3.0
func (SessionStateCompletedTraits) Validate(m *SessionStateCompletedPB) error
type SessionStateCreated ¶ added in v0.3.0
type SessionStateCreated struct {
// contains filtered or unexported fields
}
var InvalidSessionStateCreated SessionStateCreated
func SessionStateCreatedFromProto ¶ added in v0.3.0
func SessionStateCreatedFromProto(m *SessionStateCreatedPB) (SessionStateCreated, error)
func StrictSessionStateCreatedFromProto ¶ added in v0.3.0
func StrictSessionStateCreatedFromProto(m *SessionStateCreatedPB) (SessionStateCreated, error)
func (SessionStateCreated) Equal ¶ added in v0.3.0
func (o SessionStateCreated) Equal(other interface{ ToProto() M }) bool
func (SessionStateCreated) MarshalJSON ¶ added in v0.3.0
func (*SessionStateCreated) UnmarshalJSON ¶ added in v0.3.0
type SessionStateCreatedPB ¶ added in v0.3.0
type SessionStateCreatedPB = sessionv1.SessionState_Created
type SessionStateCreatedTraits ¶ added in v0.3.0
type SessionStateCreatedTraits struct{}
func (SessionStateCreatedTraits) StrictValidate ¶ added in v0.3.0
func (SessionStateCreatedTraits) StrictValidate(m *SessionStateCreatedPB) error
func (SessionStateCreatedTraits) Validate ¶ added in v0.3.0
func (SessionStateCreatedTraits) Validate(m *SessionStateCreatedPB) error
type SessionStateError ¶ added in v0.3.0
type SessionStateError struct {
// contains filtered or unexported fields
}
var InvalidSessionStateError SessionStateError
func SessionStateErrorFromProto ¶ added in v0.3.0
func SessionStateErrorFromProto(m *SessionStateErrorPB) (SessionStateError, error)
func StrictSessionStateErrorFromProto ¶ added in v0.3.0
func StrictSessionStateErrorFromProto(m *SessionStateErrorPB) (SessionStateError, error)
func (SessionStateError) Equal ¶ added in v0.3.0
func (o SessionStateError) Equal(other interface{ ToProto() M }) bool
func (SessionStateError) MarshalJSON ¶ added in v0.3.0
func (*SessionStateError) UnmarshalJSON ¶ added in v0.3.0
type SessionStateErrorPB ¶ added in v0.3.0
type SessionStateErrorPB = sessionv1.SessionState_Error
type SessionStateErrorTraits ¶ added in v0.3.0
type SessionStateErrorTraits struct{}
func (SessionStateErrorTraits) StrictValidate ¶ added in v0.3.0
func (SessionStateErrorTraits) StrictValidate(m *SessionStateErrorPB) error
func (SessionStateErrorTraits) Validate ¶ added in v0.3.0
func (SessionStateErrorTraits) Validate(m *SessionStateErrorPB) error
type SessionStatePB ¶
type SessionStatePB = sessionv1.SessionState
type SessionStateRunning ¶ added in v0.3.0
type SessionStateRunning struct {
// contains filtered or unexported fields
}
var InvalidSessionStateRunning SessionStateRunning
func SessionStateRunningFromProto ¶ added in v0.3.0
func SessionStateRunningFromProto(m *SessionStateRunningPB) (SessionStateRunning, error)
func StrictSessionStateRunningFromProto ¶ added in v0.3.0
func StrictSessionStateRunningFromProto(m *SessionStateRunningPB) (SessionStateRunning, error)
func (SessionStateRunning) Call ¶ added in v0.3.2
func (s SessionStateRunning) Call() Value
func (SessionStateRunning) Equal ¶ added in v0.3.0
func (o SessionStateRunning) Equal(other interface{ ToProto() M }) bool
func (SessionStateRunning) MarshalJSON ¶ added in v0.3.0
func (*SessionStateRunning) UnmarshalJSON ¶ added in v0.3.0
type SessionStateRunningPB ¶ added in v0.3.0
type SessionStateRunningPB = sessionv1.SessionState_Running
type SessionStateRunningTraits ¶ added in v0.3.0
type SessionStateRunningTraits struct{}
func (SessionStateRunningTraits) StrictValidate ¶ added in v0.3.0
func (SessionStateRunningTraits) StrictValidate(m *SessionStateRunningPB) error
func (SessionStateRunningTraits) Validate ¶ added in v0.3.0
func (SessionStateRunningTraits) Validate(m *SessionStateRunningPB) error
type SessionStateStopped ¶ added in v0.4.0
type SessionStateStopped struct {
// contains filtered or unexported fields
}
var InvalidSessionStateStopped SessionStateStopped
func SessionStateStoppedFromProto ¶ added in v0.4.0
func SessionStateStoppedFromProto(m *SessionStateStoppedPB) (SessionStateStopped, error)
func StrictSessionStateStoppedFromProto ¶ added in v0.4.0
func StrictSessionStateStoppedFromProto(m *SessionStateStoppedPB) (SessionStateStopped, error)
func (SessionStateStopped) Equal ¶ added in v0.4.0
func (o SessionStateStopped) Equal(other interface{ ToProto() M }) bool
func (SessionStateStopped) MarshalJSON ¶ added in v0.4.0
func (*SessionStateStopped) UnmarshalJSON ¶ added in v0.4.0
type SessionStateStoppedPB ¶ added in v0.4.0
type SessionStateStoppedPB = sessionv1.SessionState_Stopped
type SessionStateStoppedTraits ¶ added in v0.4.0
type SessionStateStoppedTraits struct{}
func (SessionStateStoppedTraits) StrictValidate ¶ added in v0.4.0
func (SessionStateStoppedTraits) StrictValidate(m *SessionStateStoppedPB) error
func (SessionStateStoppedTraits) Validate ¶ added in v0.4.0
func (SessionStateStoppedTraits) Validate(m *SessionStateStoppedPB) error
type SessionStateTraits ¶ added in v0.3.0
type SessionStateTraits struct{}
func (SessionStateTraits) StrictValidate ¶ added in v0.3.0
func (SessionStateTraits) StrictValidate(m *SessionStatePB) error
func (SessionStateTraits) Validate ¶ added in v0.3.0
func (SessionStateTraits) Validate(m *SessionStatePB) error
type SessionStateType ¶
type SessionStateType struct {
// contains filtered or unexported fields
}
func ParseSessionStateType ¶
func ParseSessionStateType(raw string) (SessionStateType, error)
func SessionStateTypeFromProto ¶
func SessionStateTypeFromProto(e sessionsv1.SessionStateType) (SessionStateType, error)
func (SessionStateType) IsFinal ¶ added in v0.4.0
func (e SessionStateType) IsFinal() bool
func (SessionStateType) MarshalJSON ¶ added in v0.3.0
func (*SessionStateType) UnmarshalJSON ¶ added in v0.3.0
type SessionTraits ¶ added in v0.3.0
type SessionTraits struct{}
func (SessionTraits) StrictValidate ¶ added in v0.3.0
func (SessionTraits) StrictValidate(m *SessionPB) error
func (SessionTraits) Validate ¶ added in v0.3.0
func (SessionTraits) Validate(m *SessionPB) error
type SetValue ¶
type SetValue struct {
// contains filtered or unexported fields
}
func (SetValue) Equal ¶ added in v0.3.0
func (o SetValue) Equal(other interface{ ToProto() M }) bool
func (SetValue) MarshalJSON ¶ added in v0.3.0
func (*SetValue) UnmarshalJSON ¶ added in v0.3.0
type SetValuePB ¶ added in v0.3.0
type StringValue ¶
type StringValue struct {
// contains filtered or unexported fields
}
func (StringValue) Equal ¶ added in v0.3.0
func (o StringValue) Equal(other interface{ ToProto() M }) bool
func (StringValue) MarshalJSON ¶ added in v0.3.0
func (*StringValue) UnmarshalJSON ¶ added in v0.3.0
func (StringValue) Value ¶ added in v0.3.0
func (s StringValue) Value() string
type StringValuePB ¶ added in v0.3.0
type StructValue ¶
type StructValue struct {
// contains filtered or unexported fields
}
func (StructValue) Ctor ¶ added in v0.3.0
func (s StructValue) Ctor() Value
func (StructValue) Equal ¶ added in v0.3.0
func (o StructValue) Equal(other interface{ ToProto() M }) bool
func (StructValue) Fields ¶ added in v0.3.0
func (s StructValue) Fields() map[string]Value
func (StructValue) MarshalJSON ¶ added in v0.3.0
func (*StructValue) UnmarshalJSON ¶ added in v0.3.0
type StructValuePB ¶ added in v0.3.0
type Symbol ¶
type Symbol struct {
// contains filtered or unexported fields
}
func NewRandomSymbol ¶ added in v0.3.0
func NewRandomSymbol() Symbol
func ParseSymbol ¶
func StrictParseSymbol ¶
func (Symbol) MarshalJSON ¶ added in v0.3.0
func (*Symbol) UnmarshalJSON ¶ added in v0.3.0
type SymbolValue ¶
type SymbolValue struct {
// contains filtered or unexported fields
}
func (SymbolValue) Equal ¶ added in v0.3.0
func (o SymbolValue) Equal(other interface{ ToProto() M }) bool
func (SymbolValue) MarshalJSON ¶ added in v0.3.0
func (SymbolValue) Symbol ¶ added in v0.3.0
func (s SymbolValue) Symbol() Symbol
func (*SymbolValue) UnmarshalJSON ¶ added in v0.3.0
type SymbolValuePB ¶ added in v0.3.0
type TimeValue ¶
type TimeValue struct {
// contains filtered or unexported fields
}
func (TimeValue) Equal ¶ added in v0.3.0
func (o TimeValue) Equal(other interface{ ToProto() M }) bool
func (TimeValue) MarshalJSON ¶ added in v0.3.0
func (*TimeValue) UnmarshalJSON ¶ added in v0.3.0
type TimeValuePB ¶ added in v0.3.0
type Trigger ¶ added in v0.2.0
type Trigger struct {
// contains filtered or unexported fields
}
var InvalidTrigger Trigger
func StrictTriggerFromProto ¶ added in v0.2.0
func TriggerFromProto ¶ added in v0.2.0
func (Trigger) CodeLocation ¶ added in v0.3.0
func (p Trigger) CodeLocation() CodeLocation
func (Trigger) ConnectionID ¶ added in v0.3.0
func (p Trigger) ConnectionID() ConnectionID
func (Trigger) MarshalJSON ¶ added in v0.3.0
func (*Trigger) UnmarshalJSON ¶ added in v0.3.0
func (Trigger) WithConnectionID ¶ added in v0.3.0
func (p Trigger) WithConnectionID(id ConnectionID) Trigger
func (Trigger) WithFilter ¶ added in v0.4.0
type TriggerID ¶ added in v0.2.0
type TriggerID = id[triggerIDTraits]
var InvalidTriggerID TriggerID
func NewTriggerID ¶ added in v0.2.0
func NewTriggerID() TriggerID
func ParseTriggerID ¶ added in v0.2.0
func StrictParseTriggerID ¶ added in v0.2.0
type TriggerTraits ¶ added in v0.3.0
type TriggerTraits struct{}
func (TriggerTraits) StrictValidate ¶ added in v0.3.0
func (TriggerTraits) StrictValidate(m *TriggerPB) error
func (TriggerTraits) Validate ¶ added in v0.3.0
func (TriggerTraits) Validate(m *TriggerPB) error
type Value ¶
type Value struct {
// contains filtered or unexported fields
}
var InvalidValue Value
func NewBooleanValue ¶
func NewBytesValue ¶
func NewConstFunctionError ¶ added in v0.4.0
func NewConstFunctionValue ¶ added in v0.4.0
func NewDictValue ¶
func NewDurationValue ¶
func NewFloatValue ¶
func NewFunctionValue ¶
func NewFunctionValue(xid ExecutorID, name string, data []byte, flags []FunctionFlag, desc ModuleFunction) (Value, error)
func NewIntegerValue ¶
func NewListValue ¶
func NewSetValue ¶
func NewStringValue ¶
func NewSymbolValue ¶
func NewTimeValue ¶
func StrictValueFromProto ¶
func ValueFromProto ¶
func (Value) GetBoolean ¶ added in v0.3.0
func (v Value) GetBoolean() BooleanValue
func (Value) GetBytes ¶ added in v0.3.0
func (v Value) GetBytes() BytesValue
func (Value) GetDuration ¶ added in v0.3.0
func (v Value) GetDuration() DurationValue
func (Value) GetFloat ¶ added in v0.3.0
func (v Value) GetFloat() FloatValue
func (Value) GetFunction ¶ added in v0.3.0
func (v Value) GetFunction() FunctionValue
func (Value) GetInteger ¶ added in v0.3.0
func (v Value) GetInteger() IntegerValue
func (Value) GetModule ¶ added in v0.3.0
func (v Value) GetModule() ModuleValue
func (Value) GetNothing ¶ added in v0.3.0
func (v Value) GetNothing() NothingValue
func (Value) GetString ¶ added in v0.3.0
func (v Value) GetString() StringValue
func (Value) GetStruct ¶ added in v0.3.0
func (v Value) GetStruct() StructValue
func (Value) GetSymbol ¶ added in v0.3.0
func (v Value) GetSymbol() SymbolValue
func (Value) IsDuration ¶ added in v0.3.0
func (Value) IsFunction ¶ added in v0.3.0
func (Value) MarshalJSON ¶ added in v0.3.0
func (Value) ToStringValuesMap ¶ added in v0.3.0
func (*Value) UnmarshalJSON ¶ added in v0.3.0
func (Value) UnwrapInto ¶ added in v0.3.2
type ValueTraits ¶ added in v0.3.0
type ValueTraits struct{}
func (ValueTraits) StrictValidate ¶ added in v0.3.0
func (ValueTraits) StrictValidate(m *ValuePB) error
func (ValueTraits) Validate ¶ added in v0.3.0
func (ValueTraits) Validate(m *ValuePB) error
type ValueWrapper ¶ added in v0.3.0
type ValueWrapper struct { // Wrap structs as maps. WrapStructAsMap bool // Unwrap: Treat all dict keys as strings (JSON does not deal well with map[any]any). // TODO: maybe allow ints, floats, any hashable as well somehow. SafeForJSON bool // Wrap: Used for functions that are wrapped using this wrapper. ExecutorID ExecutorID FromStructFieldNameCaser func(string) string ToStructFieldNameCaser func(string) string // Unwrap: if a struct, marshal it to JSON directly, do not convert to map. UnwrapStructsAsJSON bool // Error out when trying to unwrap into a struct and the struct has fields that do not exist in the value. UnwrapErrorOnNonexistentStructFields bool // Unwrap: transform duration into microseconds, do not convert to string. RawDuration bool // Unwrap: Tranform value before unwrapping. If returns InvalidValue, ignore value. Preunwrap func(Value) (Value, error) // Unwrap: if not handled, use this unwrapper. UnwrapUnknown func(Value) (any, error) }
CAVEATS: - All integers are treated as int64. - All floats are treated as float64. - json.Number is converted to either int64 or float64, depends on its value. If neither matches, as a string. - json.RawMessage is un/marshalled directly into/from Value. - functions that are wrapped by a specific wrapper can be unwrapped only with that specific wrapper instance.
var DefaultValueWrapper ValueWrapper
func (ValueWrapper) Unwrap ¶ added in v0.3.0
func (w ValueWrapper) Unwrap(v Value) (any, error)
Unwraps a value, converting it to a native go type.
func (ValueWrapper) UnwrapInto ¶ added in v0.3.0
func (w ValueWrapper) UnwrapInto(dst any, v Value) error
Source Files ¶
- build.go
- build_artifact.go
- build_export.go
- build_id.go
- build_requirement.go
- callframe.go
- code_location.go
- common.go
- connection.go
- connection_id.go
- deployment.go
- deployment_id.go
- deployment_state.go
- doc.go
- enum.go
- env.go
- env_id.go
- env_var.go
- event.go
- event_id.go
- event_record.go
- event_state.go
- executor_id.go
- id.go
- idgen.go
- integration.go
- integration_id.go
- module.go
- module_function.go
- module_function_field.go
- module_var.go
- object.go
- program_error.go
- project.go
- project_id.go
- run_id.go
- runtime.go
- session.go
- session_call.go
- session_call_attempt.go
- session_call_attempt_complete.go
- session_call_attempt_result.go
- session_call_attempt_start.go
- session_call_spec.go
- session_id.go
- session_log.go
- session_log_record.go
- session_state.go
- session_state_completed.go
- session_state_created.go
- session_state_error.go
- session_state_running.go
- session_state_stopped.go
- session_state_type.go
- str.go
- symbol.go
- trigger.go
- trigger_id.go
- validations.go
- value.go
- value_collections.go
- value_concrete.go
- value_function.go
- value_lang.go
- value_scalar.go
- value_unwrap.go
- value_wrap.go
- value_wrapper.go