Documentation
¶
Index ¶
- Variables
- type Direction
- type ListOptions
- type Options
- type RunTriggerService
- type Service
- func (s *Service) CreateRunTrigger(ctx context.Context, workspaceID, triggeringWorkspaceID resource.TfeID) (*Trigger, error)
- func (s *Service) DeleteRunTrigger(ctx context.Context, triggerID resource.TfeID) error
- func (s *Service) GetRunTrigger(ctx context.Context, triggerID resource.TfeID) (*Trigger, error)
- func (s *Service) ListRunTriggers(ctx context.Context, opts ListOptions) ([]*Trigger, error)
- type Trigger
- type Triggerer
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTriggerLoop = errors.New("workspace cannot trigger itself")
Functions ¶
This section is empty.
Types ¶
type ListOptions ¶
type ListOptions struct {
// WorkspaceID is the workspace whose triggers are being listed.
WorkspaceID resource.TfeID `schema:"workspace_id"`
// Filters by direction: "inbound" (triggering workspaces that trigger this
// workspace) or "outbound" (workspaces this workspace triggers).
Direction Direction `schema:"filter[run-trigger][type]"`
}
ListOptions filters run triggers by workspace and direction.
type RunTriggerService ¶
type RunTriggerService = Service
Alias service to permit embedding it with other services in a struct without a name clash.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) CreateRunTrigger ¶
func (*Service) DeleteRunTrigger ¶
func (*Service) GetRunTrigger ¶
func (*Service) ListRunTriggers ¶
Click to show internal directories.
Click to hide internal directories.