core

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	Message string
	Number  int64
	Before  string
	After   string
	Source  string
}

Build is a Drone build

func (*Build) GetMessage

func (b *Build) GetMessage() string

type Config

type Config struct {
	Url   string     `yaml:"url"`
	Token string     `yaml:"token"`
	Web   *WebConfig `yaml:"web"`
}

type Drone

type Drone interface {
	RebuildLastBuild(repo, ref string) (*Build, error)
}

Drone is a api client for Drone

type JsonResponse

type JsonResponse struct {
	Status string `json:"status"`
	Err    string `json:"error"`
}

type WebConfig

type WebConfig struct {
	BearerToken string `yaml:"bearer_token"`
	Listen      string `yaml:"listen"`
}

Jump to

Keyboard shortcuts

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