server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupRouter

func SetupRouter(
	config *config.Config,
	agentHub *streaming.AgentHub,
	clientHub *streaming.ClientHub,
	store *store.Store,
	goScmHelper *genericScm.GoScmHelper,
	gitService customScm.CustomGitService,
	tokenManager customScm.NonImpersonatedTokenManager,
	repoCache *nativeGit.RepoCache,
) *chi.Mux

Types

type Commit

type Commit struct {
	SHA           string               `json:"sha"`
	URL           string               `json:"url""`
	Author        string               `json:"author"`
	AuthorName    string               `json:"authorName"`
	AuthorPic     string               `json:"author_pic"`
	Message       string               `json:"message"`
	CreatedAt     int64                `json:"created_at"`
	Tags          []string             `json:"tags,omitempty"`
	Status        model.CombinedStatus `json:"status,omitempty"`
	DeployTargets []*DeployTarget      `json:"deployTargets,omitempty"`
}

Commit represents a Github commit

type DeployTarget

type DeployTarget struct {
	App        string `json:"app"`
	Env        string `json:"env"`
	ArtifactId string `json:"artifactId"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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