client

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: 8 Imported by: 0

Documentation

Overview

*

  • Created by zc on 2020/11/27.

*

  • Created by zc on 2020/9/29.

*

  • Created by zc on 2020/11/27.

*

  • Created by zc on 2020/11/28.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildInterface

type BuildInterface interface {
	List() ([]core.Build, error)
	Info(build int) (*core.Build, error)
	Run() error
	Log(build, stage, step int) ([]byte, error)
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) Build

func (c *Client) Build(namespace, name string) BuildInterface

func (*Client) Repo

func (c *Client) Repo(namespace, name string) RepoInterface

func (*Client) Stream

func (c *Client) Stream(namespace, name string) StreamInterface

type Config

type Config struct {
	Host string `json:"host"`
}

type Interface

type Interface interface {
	Repo(namespace, name string) RepoInterface
	Build(namespace, name string) BuildInterface
	Stream(namespace, name string) StreamInterface
}

func New

func New(cfg Config) Interface

type RepoInterface

type RepoInterface interface {
	List() ([]store.ReposData, error)
	Info() (*store.ReposData, error)
	Apply(repo *api.RepoParams) error
	Delete() error
}

type StreamInterface

type StreamInterface interface {
	Log(build, stage, step int) (io.ReadCloser, error)
}

Jump to

Keyboard shortcuts

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