docker

package
v0.1.0-beta1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	StarCount int64  `json:"star_count"`
	PullCount int64  `json:"pull_count"`
	Hub       string `json:"hub"`
	Owner     string `json:"owner"`
	Name      string `json:"name"`
	Desc      string `json:"desc"`
	Automated bool   `json:"automated"`
	Official  bool   `json:"official"`
}

func (*Repository) ToJson

func (obj *Repository) ToJson() ([]byte, error)

type RepositoryList

type RepositoryList []Repository

func GetRepository

func GetRepository(name string) (*RepositoryList, error)

func (*RepositoryList) ToJson

func (list *RepositoryList) ToJson() ([]byte, error)

type Tag

type Tag struct {
	Name        string    `json:"name"`
	ID          int64     `json:"id"`
	Size        int64     `json:"size"`
	Repo        int64     `json:"repo"`
	Creator     int64     `json:"creator"`
	LastUpdater int64     `json:"last_updated"`
	V2          bool      `json:"v2"`
	ImageID     int64     `json:"image_id"`
	Platforms   []int64   `json:"platforms"`
	LastUpdated time.Time `json:"last_updated"`
}

func (*Tag) ToJson

func (obj *Tag) ToJson() ([]byte, error)

type TagList

type TagList struct {
	Name  string `json:"name"`
	Owner string `json:"owner"`
	Tags  []Tag  `json:"tags"`
}

func ListTag

func ListTag(owner, name string) (*TagList, error)

func (*TagList) ToJson

func (list *TagList) ToJson() ([]byte, error)

Jump to

Keyboard shortcuts

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