webhook

package
v0.0.51 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(accessToken, pipelinesFile string, serviceName *QualifiedServiceName, isCICD bool) (string, error)

Create creates a new webhook on the target Git Repository It returns the ID of created webhook.

func Delete

func Delete(accessToken, pipelinesFile string, serviceName *QualifiedServiceName, isCICD bool) ([]string, error)

Delete deletes webhooks on the target Git Repository that match the listener address It returns the IDs of deleted webhooks.

func List

func List(accessToken, pipelinesFile string, serviceName *QualifiedServiceName, isCICD bool) ([]string, error)

List returns an array of webhook IDs for the target Git repository/listeners

Types

type QualifiedServiceName

type QualifiedServiceName struct {
	EnvironmentName string
	ServiceName     string
}

QualifiedServiceName represents three part name of a service (Environment, Application, and Service)

Jump to

Keyboard shortcuts

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