api

package
v0.0.0-...-5cccba7 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

*

  • Created by zc on 2020/9/10.

*

  • Created by zc on 2020/9/7.

*

  • Created by zc on 2020/9/6.

*

  • Created by zc on 2020/9/9.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildInfo

func BuildInfo() http.HandlerFunc

func BuildList

func BuildList() http.HandlerFunc

func BuildLog

func BuildLog() http.HandlerFunc

func BuildLogStream

func BuildLogStream() http.HandlerFunc

func CheckClone

func CheckClone(data string) ([]byte, error)

func RepoApply

func RepoApply() http.HandlerFunc

RepoApply returns an http.HandlerFunc that processes an http.Request to create a repo.

func RepoDelete

func RepoDelete() http.HandlerFunc

RepoDelete returns an http.HandlerFunc that processes an http.Request to delete the repo.

func RepoInfo

func RepoInfo() http.HandlerFunc

RepoInfo returns an http.HandlerFunc that processes an http.Request to get the repo details.

func RepoInfoBySlug

func RepoInfoBySlug() http.HandlerFunc

RepoInfoBySlug returns an http.HandlerFunc that processes an http.Request to get the repo details by namespace and name.

func RepoList

func RepoList() http.HandlerFunc

RepoList returns an http.HandlerFunc that processes an http.Request to get the repo list.

func Trigger

func Trigger() http.HandlerFunc

Types

type RepoParams

type RepoParams struct {
	UserID    int64  `json:"user_id"`
	Namespace string `json:"namespace"`
	Name      string `json:"name"`
	Timeout   int64  `json:"timeout"`
	Data      string `json:"data"`
}

type Req

type Req struct {
	RepoID int64          `json:"repo_id"`
	Spec   *yaml.Pipeline `json:"spec"`
}

Jump to

Keyboard shortcuts

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