mongo

package
v0.0.0-...-616e5a8 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2016 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogExample

type LogExample struct {
	ProjectID string
	JobID     string
	VariantID string
	Images    []string
	After     time.Time
}

type ManyFoundError

type ManyFoundError struct {
	Collection string
	Field      string
	Value      string
	Count      int
}

func (*ManyFoundError) Error

func (m *ManyFoundError) Error() string

type MongoConnector

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

func NewConnector

func NewConnector(url string) *MongoConnector

func (*MongoConnector) AddCryptoKey

func (c *MongoConnector) AddCryptoKey(key *bazooka.CryptoKey) error

func (*MongoConnector) AddJob

func (c *MongoConnector) AddJob(job *lib.Job) error

func (*MongoConnector) AddJobSCMMetadata

func (c *MongoConnector) AddJobSCMMetadata(id string, metadata *lib.SCMMetadata) error

func (*MongoConnector) AddLog

func (c *MongoConnector) AddLog(log *lib.LogEntry) error

func (*MongoConnector) AddProject

func (c *MongoConnector) AddProject(project *lib.Project) error

func (*MongoConnector) AddUser

func (c *MongoConnector) AddUser(user *lib.User) error

func (*MongoConnector) AddVariant

func (c *MongoConnector) AddVariant(variant *lib.Variant) error

func (*MongoConnector) Close

func (c *MongoConnector) Close()

func (*MongoConnector) ComparePassword

func (c *MongoConnector) ComparePassword(email string, password string) bool

func (*MongoConnector) FinishJob

func (c *MongoConnector) FinishJob(id string, status lib.JobStatus, completed time.Time) error

func (*MongoConnector) FinishVariant

func (c *MongoConnector) FinishVariant(id string, status lib.JobStatus, completed time.Time, artifacts []string) error

func (*MongoConnector) GetAllJobs

func (c *MongoConnector) GetAllJobs() ([]*lib.Job, error)

func (*MongoConnector) GetCryptoKeys

func (c *MongoConnector) GetCryptoKeys(projectID string) ([]*bazooka.CryptoKey, error)

func (*MongoConnector) GetImage

func (c *MongoConnector) GetImage(name string) (*lib.Image, error)

func (*MongoConnector) GetImages

func (c *MongoConnector) GetImages() ([]*lib.Image, error)

func (*MongoConnector) GetJobByID

func (c *MongoConnector) GetJobByID(id string) (*lib.Job, error)

func (*MongoConnector) GetJobs

func (c *MongoConnector) GetJobs(projectID string) ([]*lib.Job, error)

func (*MongoConnector) GetLog

func (c *MongoConnector) GetLog(like *LogExample) ([]lib.LogEntry, error)

func (*MongoConnector) GetProjectById

func (c *MongoConnector) GetProjectById(id string) (*lib.Project, error)

func (*MongoConnector) GetProjectCryptoKey

func (c *MongoConnector) GetProjectCryptoKey(projectID string) (*bazooka.CryptoKey, error)

func (*MongoConnector) GetProjectKey

func (c *MongoConnector) GetProjectKey(projectID string) (*lib.SSHKey, error)

func (*MongoConnector) GetProjects

func (c *MongoConnector) GetProjects() ([]*lib.Project, error)

func (*MongoConnector) GetProjectsWithStatus

func (c *MongoConnector) GetProjectsWithStatus() ([]*lib.ProjectWithStatus, error)

func (*MongoConnector) GetUserByEmail

func (c *MongoConnector) GetUserByEmail(email string) (*lib.User, error)

func (*MongoConnector) GetUsers

func (c *MongoConnector) GetUsers() ([]*lib.User, error)

func (*MongoConnector) GetVariantByID

func (c *MongoConnector) GetVariantByID(id string) (*lib.Variant, error)

func (*MongoConnector) GetVariants

func (c *MongoConnector) GetVariants(jobID string) ([]*lib.Variant, error)

func (*MongoConnector) HasCryptoKey

func (c *MongoConnector) HasCryptoKey(projectID string) (bool, error)

func (*MongoConnector) HasImage

func (c *MongoConnector) HasImage(name string) (bool, error)

func (*MongoConnector) HasProject

func (c *MongoConnector) HasProject(name string) (bool, error)

func (*MongoConnector) HasUser

func (c *MongoConnector) HasUser(email string) (bool, error)

func (*MongoConnector) SetImage

func (c *MongoConnector) SetImage(name, image string) error

func (*MongoConnector) SetJobOrchestrationId

func (c *MongoConnector) SetJobOrchestrationId(id string, orchestrationId string) error

func (*MongoConnector) SetProjectConfig

func (c *MongoConnector) SetProjectConfig(id string, config map[string]string) error

func (*MongoConnector) SetProjectConfigKey

func (c *MongoConnector) SetProjectConfigKey(id, key, value string) error

func (*MongoConnector) SetProjectKey

func (c *MongoConnector) SetProjectKey(projectID string, key *lib.SSHKey) error

func (*MongoConnector) UnsetProjectConfigKey

func (c *MongoConnector) UnsetProjectConfigKey(id, key string) error

func (*MongoConnector) UpdateCryptoKey

func (c *MongoConnector) UpdateCryptoKey(id string, key *bazooka.CryptoKey) error

type NotFoundError

type NotFoundError struct {
	Collection string
	Field      string
	Value      string
}

func (*NotFoundError) Error

func (n *NotFoundError) Error() string

Jump to

Keyboard shortcuts

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