Documentation ¶
Index ¶
- func BookmarksUpdated(u *User) error
- func CheckWorkflows(r *Release) error
- func CollectStats(save bool, stats *Statistics) error
- func CreateDeploy(r *Release) error
- func CurrentProject(r *rest.Request, project *Project) error
- func CurrentUser(r *rest.Request, user *User) error
- func DockerBuildRebuild(r *Release) error
- func DockerBuildStatus(br *plugins.DockerBuild) error
- func DockerDeployStatus(e *plugins.DockerDeploy) error
- func ExtensionCreated(lb *LoadBalancer) error
- func ExtensionDeleted(lb *LoadBalancer) error
- func ExtensionUpdated(lb *LoadBalancer) error
- func FeatureCreated(f *Feature, e agent.Event) error
- func FeatureUpdated(r *Release) error
- func GetCurrentRelease(projectId bson.ObjectId, release *Release) error
- func GitSyncProjects(ids []bson.ObjectId) error
- func LoadBalancerStatus(lb *plugins.LoadBalancer) error
- func NewRelease(f Feature, u User, release *Release) error
- func ProjectCreated(p *Project) error
- func ReleaseCreated(r *Release) error
- func ReleasePromoted(r *Release) error
- func ReleaseUpdated(r *Release) error
- func ServiceCreated(s *Service) error
- func ServiceDeleted(s *Service) error
- func ServiceUpdated(s *Service) error
- func StringToLoadBalancerType(s string) plugins.Type
- func StringToState(s string) plugins.State
- func UpdateInProgessReleases(f *Feature) error
- type Auth
- type Bookmark
- type Bookmarks
- type Build
- type Codeflow
- func (x *Codeflow) AvailableCodeflowHandlers() []CodeflowHandler
- func (x *Codeflow) Description() string
- func (x *Codeflow) Listen()
- func (x *Codeflow) Process(e agent.Event) error
- func (x *Codeflow) SampleConfig() string
- func (x *Codeflow) Start(events chan agent.Event) error
- func (x *Codeflow) Stop()
- func (x *Codeflow) Subscribe() []string
- type CodeflowHandler
- type ExternalFlowStatus
- type Feature
- type Flow
- type Listener
- type ListenerPair
- type LoadBalancer
- type MockEvents
- type Okta
- type PageResults
- type Project
- type ProjectChange
- type ProjectSettings
- type Projects
- type Release
- type Secret
- type Service
- type ServiceSpec
- type Statistics
- type Stats
- type User
- type Users
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BookmarksUpdated ¶
func CheckWorkflows ¶
func CollectStats ¶
func CollectStats(save bool, stats *Statistics) error
func CreateDeploy ¶
func CurrentProject ¶
CurrentProject finds project by slug
func CurrentUser ¶
CurrentUser returns current user identifed by JWT token
func DockerBuildRebuild ¶
func DockerBuildStatus ¶
func DockerBuildStatus(br *plugins.DockerBuild) error
func DockerDeployStatus ¶
func DockerDeployStatus(e *plugins.DockerDeploy) error
func ExtensionCreated ¶
func ExtensionCreated(lb *LoadBalancer) error
func ExtensionDeleted ¶
func ExtensionDeleted(lb *LoadBalancer) error
func ExtensionUpdated ¶
func ExtensionUpdated(lb *LoadBalancer) error
func FeatureUpdated ¶
func GitSyncProjects ¶
func LoadBalancerStatus ¶
func LoadBalancerStatus(lb *plugins.LoadBalancer) error
func ProjectCreated ¶
func ReleaseCreated ¶
func ReleasePromoted ¶
func ReleaseUpdated ¶
func ServiceCreated ¶
func ServiceDeleted ¶
func ServiceUpdated ¶
func StringToState ¶
func UpdateInProgessReleases ¶
Types ¶
type Auth ¶
type Auth struct { Path string JWTMiddleware *jwt_m.JWTMiddleware }
type Bookmark ¶
type Build ¶
type Build struct { bongo.DocumentBase `bson:",inline"` FeatureHash string `bson:"featureHash" json:"featureHash"` Type string `bson:"type" json:"type"` State plugins.State `bson:"state" json:"state"` Image string `bson:"image" json:"image"` BuildLog string `bson:"buildLog" json:"buildLog"` BuildError string `bson:"buildError" json:"buildError"` }
type Codeflow ¶
type Codeflow struct { ServiceAddress string `mapstructure:"service_address"` Events chan agent.Event Projects *Projects Auth *Auth Users *Users Bookmarks *Bookmarks Stats *Stats MockEvents *MockEvents }
func NewCodeflow ¶
func NewCodeflow() *Codeflow
func (*Codeflow) AvailableCodeflowHandlers ¶
func (x *Codeflow) AvailableCodeflowHandlers() []CodeflowHandler
Looks for fields which implement CodeflowHandler interface
func (*Codeflow) Description ¶
func (*Codeflow) SampleConfig ¶
type ExternalFlowStatus ¶
type ExternalFlowStatus struct { bongo.DocumentBase `bson:",inline"` ProjectId bson.ObjectId `bson:"projectId" json:"projectId"` Hash string `bson:"hash" json:"hash"` Context string `bson:"context" json:"context"` Message string `bson:"message" json:"message"` State plugins.State `bson:"state" json:"state"` OriginalState string `bson:"originalState" json:"originalState"` }
type Feature ¶
type Feature struct { bongo.DocumentBase `bson:",inline"` ProjectId bson.ObjectId `bson:"projectId" json:"projectId"` Message string `bson:"message" json:"message"` User string `bson:"user" json:"user"` Hash string `bson:"hash" json:"hash"` ParentHash string `bson:"parentHash" json:"parentHash"` Ref string `bson:"ref" json:"ref"` ExternalLink string `bson:"externalLink" json:"externalLink"` Created time.Time `bson:"created" json:"created"` }
type ListenerPair ¶
type LoadBalancer ¶
type LoadBalancer struct { bongo.DocumentBase `bson:",inline"` Name string `bson:"name" json:"name"` ProjectId bson.ObjectId `bson:"projectId" json:"projectId"` ServiceId bson.ObjectId `bson:"serviceId" json:"serviceId"` Extension string `bson:"extension" json:"extension"` DNSName string `bson:"dnsName" json:"dnsName"` Type string `bson:"type" json:"type"` ListenerPairs []ListenerPair `bson:"listenerPairs" json:"listenerPairs"` State plugins.State `bson:"state" json:"state"` StateMessage string `bson:"stateMessage" json:"stateMessage"` }
type MockEvents ¶
type MockEvents struct {
Path string
}
type Okta ¶
type Okta struct {
JWTMiddleware *jwt_m.JWTMiddleware
}
type PageResults ¶
type PageResults struct { Records interface{} `json:"records"` Pagination bongo.PaginationInfo `json:"pagination"` }
type Project ¶
type Project struct { bongo.DocumentBase `bson:",inline"` Name string `bson:"name" json:"name"` Slug string `bson:"slug" json:"slug"` Repository string `bson:"repository" json:"repository"` Secret string `bson:"secret" json:"secret"` Pinged bool `bson:"pinged" json:"pinged"` GitUrl string `bson:"gitUrl" json:"gitUrl" validate:"required"` GitProtocol string `bson:"gitProtocol" json:"gitProtocol" validate:"required"` RsaPrivateKey string `bson:"rsaPrivateKey" json:"-"` RsaPublicKey string `bson:"rsaPublicKey" json:"rsaPublicKey"` Bokmarked bool `bson:"-" json:"bookmarked"` ContinuousIntegration bool `bson:"continuousIntegration" json:"continuousIntegration"` ContinuousDelivery bool `bson:"continuousDelivery" json:"continuousDelivery"` Workflows []string `bson:"workflows" json:"workflows"` LogsUrl string `bson:"-" json:"logsUrl"` NotifyChannels string `bson:"notifyChannels" json:"notifyChannels"` }
func (*Project) BeforeSave ¶
func (p *Project) BeforeSave(collection *bongo.Collection) error
type ProjectChange ¶
type ProjectSettings ¶
type ProjectSettings struct { ProjectId bson.ObjectId `json:"projectId"` GitUrl string `json:"gitUrl"` GitProtocol string `json:"gitProtocol"` Secrets []Secret `json:"secrets"` DeletedSecrets []Secret `json:"deletedSecrets"` NotifyChannels string `json:"notifyChannels"` ContinuousIntegration bool `json:"continuousIntegration"` ContinuousDelivery bool `json:"continuousDelivery"` }
type Release ¶
type Release struct { bongo.DocumentBase `bson:",inline"` ProjectId bson.ObjectId `bson:"projectId" json:"projectId"` HeadFeatureId bson.ObjectId `bson:"headFeatureId" json:"-"` HeadFeature Feature `bson:"-" json:"headFeature"` TailFeatureId bson.ObjectId `bson:"tailFeatureId" json:"-"` TailFeature Feature `bson:"-" json:"tailFeature"` UserId bson.ObjectId `bson:"userId" json:"-"` User User `bson:"-" json:"user"` State plugins.State `bson:"state" json:"state"` StateMessage string `bson:"stateMessage" json:"stateMessage"` Secrets []Secret `bson:"secrets" json:"-"` Services []Service `bson:"services" json:"-"` Workflow []Flow `bson:"-" json:"workflow"` }
type Service ¶
type Service struct { bongo.DocumentBase `bson:",inline"` ProjectId bson.ObjectId `bson:"projectId" json:"projectId"` SpecId bson.ObjectId `bson:"specId" json:"specId"` State plugins.State `bson:"state" json:"state"` StateMessage string `bson:"stateMessage" json:"stateMessage"` Name string `bson:"name" json:"name"` Count int `bson:"count" json:"count"` Command string `bson:"command" json:"command"` Listeners []Listener `bson:"listeners" json:"listeners"` }
func (*Service) BeforeSave ¶
func (s *Service) BeforeSave(collection *bongo.Collection) error
type ServiceSpec ¶
type ServiceSpec struct { bongo.DocumentBase `bson:",inline"` Name string `bson:"name" json:"name"` CpuRequest string `bson:"cpuRequest" json:"cpuRequest"` CpuLimit string `bson:"cpuLimit" json:"cpuLimit"` MemoryRequest string `bson:"memoryRequest" json:"memoryRequest"` MemoryLimit string `bson:"memoryLimit" json:"memoryLimit"` TerminationGracePeriodSeconds int64 `bson:"terminationGracePeriodSeconds" json:"terminationGracePeriodSeconds"` Default bool `bson:"default" json:"default"` }
type Statistics ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.