collie

package
v2.2.0-20240131 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 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

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

type Client

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

func New

func New(host string) *Client

func (*Client) DeleteCIPipelines

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

func (*Client) ListCIPipelines

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

type PipelineMetadata

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