metadata

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const JobNameKeySuffix = "-metadata"

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	HandleSubmission() http.HandlerFunc
	HandleBulkDisplay() http.HandlerFunc
}

func NewHandler

func NewHandler(store Store) Handler

type Metadata

type Metadata struct {
	Name             string   `json:"name"`
	Description      string   `json:"description"`
	ImageName        string   `json:"image_name"`
	EnvVars          env.Vars `json:"env_vars"`
	AuthorizedGroups []string `json:"authorized_groups"`
	Author           string   `json:"author"`
	Contributors     string   `json:"contributors"`
	Organization     string   `json:"organization"`
}

type MockStore

type MockStore struct {
	mock.Mock
}

func (*MockStore) CreateOrUpdateJobMetadata

func (m *MockStore) CreateOrUpdateJobMetadata(metadata Metadata) error

func (*MockStore) GetAllJobsMetadata

func (m *MockStore) GetAllJobsMetadata() ([]Metadata, error)

func (*MockStore) GetJobMetadata

func (m *MockStore) GetJobMetadata(jobName string) (*Metadata, error)

type Store

type Store interface {
	CreateOrUpdateJobMetadata(metadata Metadata) error
	GetAllJobsMetadata() ([]Metadata, error)
	GetJobMetadata(jobName string) (*Metadata, error)
}

func NewStore

func NewStore(redisClient redis.Client) Store

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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