index

package
v0.0.0-...-526a197 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexService

type IndexService struct {
	// contains filtered or unexported fields
}

func New

func New(configuration *configuration.Configuration) (*IndexService, error)

func (*IndexService) Close

func (self *IndexService) Close() error

func (*IndexService) GetPage

func (self *IndexService) GetPage(args QueryArgs) ([]Repository, error)

func (*IndexService) SetTagStatus

func (self *IndexService) SetTagStatus(repo, tag, status, description, target_url string) error

func (*IndexService) Sink

func (self *IndexService) Sink() notifications.Sink

func (*IndexService) Write

func (self *IndexService) Write(events ...notifications.Event) error

type QueryArgs

type QueryArgs struct {
	Keyword string
	Skip    int
	Limit   int
}

type Repository

type Repository struct {
	Repository string `json:"repository"`
	Tags       []Tag  `json:"tags"`
}

type Tag

type Tag struct {
	Repository  string    `json:"repository"`
	Tag         string    `json:"tag"`
	Digest      string    `json:"digest"`
	Url         string    `json:"url"`
	Status      string    `json:"status"`
	Description string    `json:"description"`
	TargetURL   string    `json:"target_url"`
	UpdatedAt   time.Time `json:"updated_at"`
}

Jump to

Keyboard shortcuts

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