triggers

package
v2.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 10 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNil

func IsNil(i interface{}) bool

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 ProjectTriggersQuery

type ProjectTriggersQuery struct {
	IDs      []string `uri:"ids,omitempty" url:"ids,omitempty"`
	Runbooks []string `uri:"runbooks,omitempty" url:"runbooks,omitempty"`
	Skip     int      `uri:"skip,omitempty" url:"skip,omitempty"`
	Take     int      `uri:"take,omitempty" url:"take,omitempty"`
}

type ScheduledProjectTriggerService

type ScheduledProjectTriggerService struct {
	services.Service
}

func NewScheduledProjectTriggerService

func NewScheduledProjectTriggerService(sling *sling.Sling, uriTemplate string) *ScheduledProjectTriggerService

type ScheduledProjectTriggersQuery

type ScheduledProjectTriggersQuery struct {
	IDs  []string `uri:"ids,omitempty" url:"ids,omitempty"`
	Skip int      `uri:"skip,omitempty" url:"skip,omitempty"`
	Take int      `uri:"take,omitempty" url:"take,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL