Documentation
¶
Index ¶
- Constants
- 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 TFEAPI
- type TFERunTrigger
- type Trigger
- type Triggerer
Constants ¶
View Source
const IncludeSourceable tfeapi.IncludeName = "sourceable"
Variables ¶
This section is empty.
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 ¶
type TFEAPI ¶
type TFEAPI struct {
*tfeapi.Responder
Client tfeClient
Authorizer *authz.Authorizer
}
func NewTFEAPI ¶
func NewTFEAPI( client tfeClient, authorizer *authz.Authorizer, responder *tfeapi.Responder, ) *TFEAPI
func (*TFEAPI) AddHandlers ¶
type TFERunTrigger ¶
type TFERunTrigger struct {
ID resource.TfeID `jsonapi:"primary,run-triggers"`
CreatedAt time.Time `jsonapi:"attribute" json:"created-at"`
Workspace *workspace.TFEWorkspace `jsonapi:"relationship" json:"workspace"`
Sourceable *workspace.TFEWorkspace `jsonapi:"relationship" json:"sourceable"`
}
TFERunTrigger represents a run trigger in the TFE API.
Click to show internal directories.
Click to hide internal directories.