collie

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallGithubWebHook

func CallGithubWebHook(forwardedProto, forwardedHost string, payload []byte, messageType string, log *zap.SugaredLogger) error

func CallGitlabWebHook

func CallGitlabWebHook(forwardedProto, forwardedHost string, payload []byte, eventType string, log *zap.SugaredLogger) error

Types

type CiPipelineResource added in v1.2.0

type CiPipelineResource struct {
	Version  string           `json:"version"`
	Kind     string           `json:"kind"`
	Metadata PipelineMetadata `json:"metadata"`
}

type Client added in v1.2.0

type Client struct {
	*httpclient.Client
	// contains filtered or unexported fields
}

func New added in v1.2.0

func New(host string) *Client

func (*Client) DeleteCIPipelines added in v1.2.0

func (c *Client) DeleteCIPipelines(productName string, log *zap.SugaredLogger) error

func (*Client) ListCIPipelines added in v1.2.0

func (c *Client) ListCIPipelines(productName string, log *zap.SugaredLogger) ([]*CiPipelineResource, error)

type PipelineMetadata added in v1.2.0

type PipelineMetadata struct {
	Name             string `json:"name"`
	Project          string `json:"project"`
	ProjectID        string `json:"projectId"`
	Revision         int    `json:"revision"`
	FilePath         string `json:"filePath"`
	Source           string `json:"source"`
	OriginYamlString string `json:"originYamlString"`
	ID               string `json:"id"`
	CreatedAt        string `json:"created_at"`
	UpdatedAt        string `json:"updated_at"`
}

Jump to

Keyboard shortcuts

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