server

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 44 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,
	gitService customScm.CustomGitService,
	tokenManager customScm.NonImpersonatedTokenManager,
	repoCache *nativeGit.RepoCache,
) *chi.Mux

Types

type App added in v0.4.0

type App struct {
	Name     string        `json:"name"`
	Releases []*dx.Release `json:"releases"`
}

type ByCreated added in v0.4.0

type ByCreated []*dx.Release

func (ByCreated) Len added in v0.4.0

func (a ByCreated) Len() int

func (ByCreated) Less added in v0.4.0

func (a ByCreated) Less(i, j int) bool

func (ByCreated) Swap added in v0.4.0

func (a ByCreated) Swap(i, j int)

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"`
}

type Env added in v0.4.0

type Env struct {
	Name string `json:"name"`
	Apps []*App `json:"apps"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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