models

package
v3.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2019 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 Image

type Image struct {
	ID         int       `jsonapi:"primary,images"`
	BackedUpAt time.Time `jsonapi:"attr,backed_up_at,iso8601"`
	Ready      bool      `jsonapi:"attr,ready"`
	Anon       string
	CreatedAt  time.Time `jsonapi:"attr,created_at,iso8601"`
	UpdatedAt  time.Time `jsonapi:"attr,updated_at,iso8601"`
}

func NewImage

func NewImage(backedUpAt time.Time, anon string) Image

type Instance

type Instance struct {
	ID        int `jsonapi:"primary,instances"`
	ImageID   int `jsonapi:"attr,image_id"`
	UserEmail string
	CreatedAt time.Time `jsonapi:"attr,created_at,iso8601"`
	UpdatedAt time.Time `jsonapi:"attr,updated_at,iso8601"`
	Port      int       `jsonapi:"attr,port"`
}

func NewInstance

func NewInstance(imageID int, email string) Instance

Jump to

Keyboard shortcuts

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