triggers

package
v2.17.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 10 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,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