Documentation ¶
Index ¶
- func IsNil(i interface{}) bool
- type ProjectTrigger
- type ProjectTriggerService
- func (s *ProjectTriggerService) Add(projectTrigger *ProjectTrigger) (*ProjectTrigger, error)
- func (s *ProjectTriggerService) GetAll() ([]*ProjectTrigger, error)
- func (s *ProjectTriggerService) GetByID(id string) (*ProjectTrigger, error)
- func (s *ProjectTriggerService) GetByProjectID(id string) ([]*ProjectTrigger, error)
- func (s *ProjectTriggerService) Update(resource ProjectTrigger) (*ProjectTrigger, error)
- type ProjectTriggers
- type ProjectTriggersQuery
- type ScheduledProjectTriggerService
- type ScheduledProjectTriggersQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProjectTrigger ¶
type ProjectTrigger struct { Action actions.ITriggerAction `json:"Action"` Description string `json:"Description,omitempty"` Filter filters.ITriggerFilter `json:"Filter"` IsDisabled bool `json:"IsDisabled,omitempty"` Name string `json:"Name"` ProjectID string `json:"ProjectId,omitempty"` SpaceID string `json:"SpaceId,omitempty"` resources.Resource }
func NewProjectTrigger ¶
func NewProjectTrigger(name string, description string, isDisabled bool, projectID string, action actions.ITriggerAction, filter filters.ITriggerFilter) *ProjectTrigger
func (*ProjectTrigger) UnmarshalJSON ¶
func (projectTrigger *ProjectTrigger) UnmarshalJSON(b []byte) error
UnmarshalJSON sets this trigger to its representation in JSON.
func (*ProjectTrigger) Validate ¶
func (t *ProjectTrigger) Validate() error
Validate checks the state of the deployment target and returns an error if invalid.
type ProjectTriggerService ¶
type ProjectTriggerService struct {
services.CanDeleteService
}
func NewProjectTriggerService ¶
func NewProjectTriggerService(sling *sling.Sling, uriTemplate string) *ProjectTriggerService
func (*ProjectTriggerService) Add ¶
func (s *ProjectTriggerService) Add(projectTrigger *ProjectTrigger) (*ProjectTrigger, error)
Add creates a new project trigger.
func (*ProjectTriggerService) GetAll ¶
func (s *ProjectTriggerService) GetAll() ([]*ProjectTrigger, error)
GetAll returns all project triggers. If none can be found or an error occurs, it returns an empty collection.
func (*ProjectTriggerService) GetByID ¶
func (s *ProjectTriggerService) GetByID(id string) (*ProjectTrigger, error)
GetByID returns the project trigger that matches the input ID. If one cannot be found, it returns nil and an error.
func (*ProjectTriggerService) GetByProjectID ¶
func (s *ProjectTriggerService) GetByProjectID(id string) ([]*ProjectTrigger, error)
func (*ProjectTriggerService) Update ¶
func (s *ProjectTriggerService) Update(resource ProjectTrigger) (*ProjectTrigger, error)
Update modifies a project trigger based on the one provided as input.
type ProjectTriggers ¶
type ProjectTriggers struct { Items []*ProjectTrigger `json:"Items"` resources.PagedResults }
type ProjectTriggersQuery ¶
type ScheduledProjectTriggerService ¶
func NewScheduledProjectTriggerService ¶
func NewScheduledProjectTriggerService(sling *sling.Sling, uriTemplate string) *ScheduledProjectTriggerService
Click to show internal directories.
Click to hide internal directories.