Documentation ¶
Index ¶
- type LogExample
- type ManyFoundError
- type MongoConnector
- func (c *MongoConnector) AddCryptoKey(key *bazooka.CryptoKey) error
- func (c *MongoConnector) AddJob(job *lib.Job) error
- func (c *MongoConnector) AddJobSCMMetadata(id string, metadata *lib.SCMMetadata) error
- func (c *MongoConnector) AddLog(log *lib.LogEntry) error
- func (c *MongoConnector) AddProject(project *lib.Project) error
- func (c *MongoConnector) AddUser(user *lib.User) error
- func (c *MongoConnector) AddVariant(variant *lib.Variant) error
- func (c *MongoConnector) Close()
- func (c *MongoConnector) ComparePassword(email string, password string) bool
- func (c *MongoConnector) FinishJob(id string, status lib.JobStatus, completed time.Time) error
- func (c *MongoConnector) FinishVariant(id string, status lib.JobStatus, completed time.Time, artifacts []string) error
- func (c *MongoConnector) GetAllJobs() ([]*lib.Job, error)
- func (c *MongoConnector) GetCryptoKeys(projectID string) ([]*bazooka.CryptoKey, error)
- func (c *MongoConnector) GetImage(name string) (*lib.Image, error)
- func (c *MongoConnector) GetImages() ([]*lib.Image, error)
- func (c *MongoConnector) GetJobByID(id string) (*lib.Job, error)
- func (c *MongoConnector) GetJobs(projectID string) ([]*lib.Job, error)
- func (c *MongoConnector) GetLog(like *LogExample) ([]lib.LogEntry, error)
- func (c *MongoConnector) GetProjectById(id string) (*lib.Project, error)
- func (c *MongoConnector) GetProjectCryptoKey(projectID string) (*bazooka.CryptoKey, error)
- func (c *MongoConnector) GetProjectKey(projectID string) (*lib.SSHKey, error)
- func (c *MongoConnector) GetProjects() ([]*lib.Project, error)
- func (c *MongoConnector) GetProjectsWithStatus() ([]*lib.ProjectWithStatus, error)
- func (c *MongoConnector) GetUserByEmail(email string) (*lib.User, error)
- func (c *MongoConnector) GetUsers() ([]*lib.User, error)
- func (c *MongoConnector) GetVariantByID(id string) (*lib.Variant, error)
- func (c *MongoConnector) GetVariants(jobID string) ([]*lib.Variant, error)
- func (c *MongoConnector) HasCryptoKey(projectID string) (bool, error)
- func (c *MongoConnector) HasImage(name string) (bool, error)
- func (c *MongoConnector) HasProject(name string) (bool, error)
- func (c *MongoConnector) HasUser(email string) (bool, error)
- func (c *MongoConnector) SetImage(name, image string) error
- func (c *MongoConnector) SetJobOrchestrationId(id string, orchestrationId string) error
- func (c *MongoConnector) SetProjectConfig(id string, config map[string]string) error
- func (c *MongoConnector) SetProjectConfigKey(id, key, value string) error
- func (c *MongoConnector) SetProjectKey(projectID string, key *lib.SSHKey) error
- func (c *MongoConnector) UnsetProjectConfigKey(id, key string) error
- func (c *MongoConnector) UpdateCryptoKey(id string, key *bazooka.CryptoKey) error
- type NotFoundError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogExample ¶
type ManyFoundError ¶
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) AddJobSCMMetadata ¶
func (c *MongoConnector) AddJobSCMMetadata(id string, metadata *lib.SCMMetadata) error
func (*MongoConnector) AddProject ¶
func (c *MongoConnector) AddProject(project *lib.Project) 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) FinishVariant ¶
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) 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) 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) HasProject ¶
func (c *MongoConnector) HasProject(name 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 ¶
func (*NotFoundError) Error ¶
func (n *NotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.