Documentation
¶
Index ¶
- type Config
- type Store
- func (s *Store) Client() *ent.Client
- func (s *Store) Close() error
- func (s *Store) CreateProject(req *oapi.NewProject) (*oapi.Project, error)
- func (s *Store) CreateRequest(user *oapi.User, req *oapi.NewRequest) (*oapi.Request, error)
- func (s *Store) CreateReview(requestID uuid.UUID, user *oapi.User, req *oapi.NewReview) (*oapi.Review, error)
- func (s *Store) CreateService(req *oapi.NewService) (*oapi.Service, error)
- func (s *Store) CreateTrigger(requestID uuid.UUID) (*oapi.Trigger, error)
- func (s *Store) EndSession(uuid uuid.UUID) error
- func (s *Store) GetSession(uuid uuid.UUID) (*oapi.User, error)
- func (s *Store) HandleNewReview(m *ent.ReviewMutation) error
- func (s *Store) HandleUpdatedRequest(m *ent.RequestMutation) error
- func (s *Store) NewSession(user *oapi.User) (uuid.UUID, error)
- func (s *Store) QueryProjects(ps ...predicate.Project) (*oapi.ProjectsResp, error)
- func (s *Store) QueryRequests(ps ...predicate.Request) (*oapi.RequestsResp, error)
- func (s *Store) QueryServices(ps ...predicate.Service) (*oapi.ServicesResp, error)
- func (s *Store) RegisterHooks()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) CreateProject ¶
func (*Store) CreateRequest ¶
func (*Store) CreateReview ¶
func (*Store) CreateService ¶
func (*Store) CreateTrigger ¶ added in v0.0.8
func (*Store) GetSession ¶ added in v0.0.8
func (*Store) HandleNewReview ¶
func (s *Store) HandleNewReview(m *ent.ReviewMutation) error
HandleNewReview is called whenever a new review is added to a request and is responsible for re-evaluating the status of a request
func (*Store) HandleUpdatedRequest ¶ added in v0.0.8
func (s *Store) HandleUpdatedRequest(m *ent.RequestMutation) error
HandleUpdatedRequest is called whenever a request is updated (or mutated, in ent terms) and is responsible for triggering a deployment if the request is approved
func (*Store) NewSession ¶ added in v0.0.8
func (*Store) QueryProjects ¶
func (*Store) QueryRequests ¶
func (*Store) QueryServices ¶
func (*Store) RegisterHooks ¶
func (s *Store) RegisterHooks()
Click to show internal directories.
Click to hide internal directories.