descriptors

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: MIT Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KillMessage

type KillMessage struct {
	Status string `json:"status"`
}

KillMessage is a message noting that either the sidecar or the program should stop a KillMessage indicates the final message on a socket after which the connection can be broken

func NewKillMessage

func NewKillMessage() KillMessage

NewKillMessage creates a new default instance of KillMessage

func (*KillMessage) Deserialize

func (km *KillMessage) Deserialize(data []byte) (err error)

Deserialize tries to decode a json encoded byte array into `km`. Errors on failure

func (*KillMessage) Serialize

func (km *KillMessage) Serialize() (data []byte, err error)

Serialize tries to transform `km` into a json encoded bytearray. Errors on failure

type LocalFileDesc

type LocalFileDesc struct {
	Name      string `json:"name"` // Original name as stored in the idv repository
	LocalPath string `json:"path"` // Local path to file
}

LocalFileDesc is a description of an iterum data file downloaded and stored somewhere on the local volume

func (LocalFileDesc) ToRemotePath

func (lfd LocalFileDesc) ToRemotePath(prefix string) string

ToRemotePath converts a LocalFileDesc into a path on the remote Minio storage where it is located

type LocalFragmentDesc

type LocalFragmentDesc struct {
	Files    []LocalFileDesc `json:"files"`
	Metadata *LocalMetadata  `json:"metadata"` // Additional information on this fragment
}

LocalFragmentDesc is a structure describing an iterum fragment and how it is stored on the program's machine's local volume

func (*LocalFragmentDesc) Deserialize

func (lf *LocalFragmentDesc) Deserialize(data []byte) (err error)

Deserialize tries to decode a json encoded byte array into `f`. Errors on failure

func (*LocalFragmentDesc) Serialize

func (lf *LocalFragmentDesc) Serialize() (data []byte, err error)

Serialize tries to transform `f` into a json encoded bytearray. Errors on failure

type LocalMetadata added in v0.0.4

type LocalMetadata struct {
	OutputChannel *string                `json:"output_channel,omitempty"` // Target output of a transformation step
	Custom        map[string]interface{} `json:"custom,omitempty"`         // Custom metadata added by and for the user for across transformation steps
}

LocalMetadata is a structure used in local fragment descriptions to add additional information Mostly used for Iterum internal functioning such as routing

type RemoteFileDesc

type RemoteFileDesc struct {
	Name       string `json:"name"`   // Original name as stored in the idv repository
	RemotePath string `json:"path"`   // Remote path to file within MinIO
	Bucket     string `json:"bucket"` // Name of the bucket that the file is stored in
}

RemoteFileDesc is a description of a file as found in the Minio storage

func (RemoteFileDesc) ToLocalPath

func (rfd RemoteFileDesc) ToLocalPath(prefix string) string

ToLocalPath converts a RemoteFileDesc into a path on the local disk on where to store it

type RemoteFragmentDesc

type RemoteFragmentDesc struct {
	Files    []RemoteFileDesc `json:"files"`
	Metadata *RemoteMetadata  `json:"metadata"` // Additional information on this fragment
}

RemoteFragmentDesc is a structure describing an iterum fragment and how it is stored on the remote minio storage

func (*RemoteFragmentDesc) Deserialize

func (rf *RemoteFragmentDesc) Deserialize(data []byte) (err error)

Deserialize tries to decode a json encoded byte array into `f`. Errors on failure

func (*RemoteFragmentDesc) Serialize

func (rf *RemoteFragmentDesc) Serialize() (data []byte, err error)

Serialize tries to transform `f` into a json encoded bytearray. Errors on failure

type RemoteMetadata added in v0.0.8

type RemoteMetadata struct {
	TargetQueue *string                `json:"target_queue,omitempty"` // TargetQueue of the message queue
	Custom      map[string]interface{} `json:"custom,omitempty"`       // Custom metadata added by and for the user for across transformation steps
}

RemoteMetadata is a structure used in remote fragment descriptions to add additional information Mostly used for Iterum internal functioning such as routing

Jump to

Keyboard shortcuts

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