web

package
v0.0.0-...-80a0973 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	PauseChan chan time.Time
	BuildChan chan DockerBuildJSON
	// contains filtered or unexported fields
}

func New

func New(cfg cfg.Config) *Client

func (*Client) StartWeb

func (client *Client) StartWeb()

type DockerBuildJSON

type DockerBuildJSON struct {
	URL               string `json:"url"`
	DockerRegistryURL string `json:"docker_registry_url"`
}

type Event

type Event struct {
	Name string
}

type GitHubWebHookJSON

type GitHubWebHookJSON struct {
	Action  string `json:"action"`
	Comment struct {
		Body string `json:"body"`
		// UpdatedAt string `json:"updated_at"`
		User struct {
			Login string `json:"login"`
		} `json:"user"`
	} `json:"comment"`
	Issue struct {
		HTMLURL string `json:"html_url"`
		Number  int64  `json:"number"`
	} `json:"issue"`
	Organization struct {
		Login string `json:"login"`
	} `json:"organization"`
	Repository struct {
		FullName string `json:"full_name"`
		Name     string `json:"name"`
	} `json:"repository"`
	Sender struct {
		AvatarURL string `json:"avatar_url"`
		Login     string `json:"login"`
	} `json:"sender"`
}

type HookData

type HookData struct {
	Events []Event
}

Jump to

Keyboard shortcuts

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