triggers

package
v2.57.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

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"`
	Name        string                 `json:"Name"`
	ProjectID   string                 `json:"ProjectId"`
	SpaceID     string                 `json:"SpaceId"`

	resources.Resource
}

func NewProjectTrigger

func NewProjectTrigger(name string, description string, isDisabled bool, project *projects.Project, 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) Delete added in v2.22.0

func (s *ProjectTriggerService) Delete(projectTrigger *ProjectTrigger) error

Delete will delete a 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(projectTrigger *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