manifest

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddFilesStats

type AddFilesStats struct {
	NrFilesUpdated int
	NrFilesRemoved int
	FileStatus     []manifestFile.FileStatusDTO
	FailedFiles    []string
}

AddFilesStats object that is returned to the client.

type DTO

type DTO struct {
	ID        string                 `json:"id"`
	DatasetId string                 `json:"dataset_id"`
	Files     []manifestFile.FileDTO `json:"files"`
	Status    Status                 `json:"status"`
}

type GetResponse

type GetResponse struct {
	Manifests []ManifestDTO `json:"manifests"`
}

type GetStatusEndpointResponse

type GetStatusEndpointResponse struct {
	ManifestId        string   `json:"manifest_id"`
	Status            string   `json:"status"`
	Files             []string `json:"files"`
	ContinuationToken string   `json:"continuation_token"`
	Verified          bool     `json:"verified"`
}

type ManifestDTO

type ManifestDTO struct {
	Id            string `json:"id"`
	DatasetId     int64  `json:"dataset_id"`
	DatasetNodeId string `json:"dataset_node_id"`
	Status        string `json:"status"`
	User          int64  `json:"user"`
	DateCreated   int64  `json:"date_created"`
}

type PostResponse

type PostResponse struct {
	ManifestNodeId string                       `json:"manifest_node_id"'`
	NrFilesUpdated int                          `json:"nr_files_updated"`
	NrFilesRemoved int                          `json:"nr_files_removed"`
	UpdatedFiles   []manifestFile.FileStatusDTO `json:"updated_files"`
	FailedFiles    []string                     `json:"failed_files"`
}

type Status

type Status int64
const (
	Initiated Status = iota
	Uploading
	Completed
	Cancelled
)

func (Status) ManifestStatusMap

func (s Status) ManifestStatusMap(value string) Status

func (Status) String

func (s Status) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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