data

package
v1.4.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: MIT Imports: 4 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssignedTo

type AssignedTo struct {
	plans.Mountpoint
	Run runs.Summary `json:"run"`
}

assigment representation, looking from data

func (AssignedTo) Equal

func (a AssignedTo) Equal(o AssignedTo) bool

type Detail

type Detail struct {
	// KnitId is the id of the Data.
	KnitId string `json:"knitId"`

	// Tags are the tags of the Data.
	Tags []tags.Tag `json:"tags"`

	// Upstream is the upsteram Run and its mountpoint outputs this Data.
	Upstream AssignedTo `json:"upstream"`

	// Downstreams are the downstream Runs and their mountpoint inputs this Data.
	Downstreams []AssignedTo `json:"downstreams"`

	// Nomination is the nominated Plan and its mountpoint can inputs this Data.
	Nomination []NominatedBy `json:"nomination"`
}

Detail is the format for response body from WebAPIs below:

- GET /api/data/[?...] (as list)

- POST /api/data/

- PUT /api/data/{knitId}

Other Data related WebAPI respones do not use this for response.

- GET /api/data/{knitId} : as binary stream (Content-Type: application/octet-stream)

func (Detail) Equal

func (d Detail) Equal(o Detail) bool

type NominatedBy

type NominatedBy struct {
	plans.Mountpoint
	Plan plans.Summary `json:"plan"`
}

nomination representation, looking from data

func (NominatedBy) Equal

func (n NominatedBy) Equal(o NominatedBy) bool

type Summary

type Summary struct {
	KnitId string     `json:"knitid"`
	Tags   []tags.Tag `json:"tags"`
}

func (*Summary) Equal

func (s *Summary) Equal(o *Summary) bool

Jump to

Keyboard shortcuts

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