Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Runtime *Descriptor `json:"runtime" yaml:"runtime"` Modules []*Descriptor `json:"modules" yaml:"modules"` Args []string `json:"args" yaml:"args"` Env []string `json:"env,omitempty" yaml:"env,omitempty"` }
func (*Config) ContentType ¶
func (*Config) MarshalResource ¶
func (*Config) UnmarshalResource ¶
type Descriptor ¶
type Descriptor struct { MediaType MediaType `json:"mediaType" yaml:"mediaType"` Digest Hash `json:"digest" yaml:"digest"` Size int64 `json:"size" yaml:"size"` URLs []string `json:"urls,omitempty" yaml:"urls,omitempty"` Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"` }
func (*Descriptor) ContentType ¶
func (d *Descriptor) ContentType() MediaType
func (*Descriptor) MarshalResource ¶
func (d *Descriptor) MarshalResource() ([]byte, error)
func (*Descriptor) UnmarshalResource ¶
func (d *Descriptor) UnmarshalResource(b []byte) error
type Hash ¶
type Hash struct {
Algorithm, Digest string
}
func (Hash) MarshalText ¶
func (*Hash) UnmarshalText ¶
type LogSegment ¶
type Manifest ¶
type Manifest struct { ProcessID UUID `json:"id,omitempty" yaml:"id,omitempty"` StartTime time.Time `json:"startTime" yaml:"startTime"` Process *Descriptor `json:"process" yaml:"process"` Segments []LogSegment `json:"segments,omitempty" yaml:"segments,omitempty"` }
func (*Manifest) ContentType ¶
func (*Manifest) MarshalResource ¶
func (*Manifest) UnmarshalResource ¶
type MediaType ¶
type MediaType string
const ( TypeDescriptor MediaType = "application/vnd.oci.descriptor.v1+json" TypeTimecraftRuntime MediaType = "application/vnd.timecraft.runtime.v1+json" TypeTimecraftConfig MediaType = "application/vnd.timecraft.config.v1+json" TypeTimecraftProcess MediaType = "application/vnd.timecraft.process.v1+json" TypeTimecraftProfile MediaType = "application/vnd.timecraft.profile.v1+pprof" TypeTimecraftManifest MediaType = "application/vnd.timecraft.manifest.v1+json" TypeTimecraftModule MediaType = "application/vnd.timecraft.module.v1+wasm" )
type Module ¶
type Module struct {
Code []byte
}
func (*Module) ContentType ¶
func (*Module) MarshalResource ¶
func (*Module) UnmarshalResource ¶
type Process ¶
type Process struct { ID UUID `json:"id" yaml:"id"` StartTime time.Time `json:"startTime" yaml:"startTime"` Config *Descriptor `json:"config" yaml:"config"` }
func (*Process) ContentType ¶
func (*Process) MarshalResource ¶
func (*Process) UnmarshalResource ¶
type ResourceMarshaler ¶
type ResourceUnmarshaler ¶
type Runtime ¶
type Runtime struct { Runtime string `json:"runtime" yaml:"runtime"` Version string `json:"version" yaml:"version"` }
func (*Runtime) ContentType ¶
func (*Runtime) MarshalResource ¶
func (*Runtime) UnmarshalResource ¶
Directories ¶
Path | Synopsis |
---|---|
Package logsegment contains the definition of the flatbuffers file format for log segments.
|
Package logsegment contains the definition of the flatbuffers file format for log segments. |
Package types contains definitions for types shared across multiple file formats.
|
Package types contains definitions for types shared across multiple file formats. |
Click to show internal directories.
Click to hide internal directories.