models

package
v2.203.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	Name    string
	Version string
	Source  Source

	// Packages that this job depends on; however,
	// currently it will contain packages from all jobs
	Packages []Package
}

func (Job) BundleName

func (s Job) BundleName() string

func (Job) BundleVersion

func (s Job) BundleVersion() string

func (Job) CreateDirectories

func (s Job) CreateDirectories(jobDirectoryCreator JobDirectoryCreator, jobDirProvider JobDirectoryProvider) error

type JobDirectoryCreator

type JobDirectoryCreator interface {
	MkdirAll(path string, perm os.FileMode) error
	Chown(path, username string) error
	Chmod(path string, perm os.FileMode) error
	FileExists(path string) bool
}

type JobDirectoryProvider

type JobDirectoryProvider interface {
	JobLogDir(jobName string) string
	JobRunDir(jobName string) string
	JobDir(jobName string) string
}

type LocalPackage

type LocalPackage struct {
	Name    string
	Version string
}

func (LocalPackage) BundleName

func (s LocalPackage) BundleName() string

func (LocalPackage) BundleVersion

func (s LocalPackage) BundleVersion() string

type Package

type Package struct {
	Name    string
	Version string
	Source  Source
}

func (Package) BundleName

func (s Package) BundleName() string

func (Package) BundleVersion

func (s Package) BundleVersion() string

type Source

type Source struct {
	Sha1          crypto.Digest
	BlobstoreID   string
	PathInArchive string
}

Jump to

Keyboard shortcuts

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