database

package
v0.0.0-...-910df6c Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blob

type Blob struct {
	Digest string
	Pushed time.Time
	Pulled time.Time
}

Blob representation in the database.

type Database

type Database interface {
	GetConnection() *sqlx.DB
	CreateSchemaIfNecessary()
	IsBlob(digest string) bool
	PushBlob(blob *Blob)
	PullBlob(blob *Blob)
	DeleteBlob(digest string)
	IsManifest(digest string) bool
	PushManifest(manifest *Manifest)
	PullManifest(manifest *Manifest)
	DeleteManifest(digest string)
	PushTag(tag *Tag)
	PullTag(tag *Tag)
}

Database operations.

type Manifest

type Manifest struct {
	Digest string
	Pushed time.Time
	Pulled time.Time
	Blobs  []Blob
}

Manifest representation in the database.

A manifest is linked to one or more blobs.

type Tag

type Tag struct {
	Name       string
	Registry   string
	Repository string
	Tag        string
	Manifest   Manifest
	Pushed     time.Time
	Pulled     time.Time
}

Tag representation in the database.

A tag is linked to one manifest.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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