build

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package build is a generated protocol buffer package.

It is generated from these files:

github.com/appcelerator/amp/api/rpc/build/build.proto

It has these top-level messages:

Ping
Pong
ProjectRequest
ProjectQuery
ProjectList
Project
BuildRequest
BuildList
Build
Log

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAmpBuildServer

func RegisterAmpBuildServer(s *grpc.Server, srv AmpBuildServer)

Types

type AmpBuildClient

type AmpBuildClient interface {
	PingPong(ctx context.Context, in *Ping, opts ...grpc.CallOption) (*Pong, error)
	CreateProject(ctx context.Context, in *ProjectRequest, opts ...grpc.CallOption) (*Project, error)
	DeleteProject(ctx context.Context, in *ProjectRequest, opts ...grpc.CallOption) (*Project, error)
	ListProjects(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*ProjectList, error)
	ListBuilds(ctx context.Context, in *ProjectRequest, opts ...grpc.CallOption) (*BuildList, error)
	BuildLog(ctx context.Context, in *BuildRequest, opts ...grpc.CallOption) (AmpBuild_BuildLogClient, error)
	Rebuild(ctx context.Context, in *BuildRequest, opts ...grpc.CallOption) (*Build, error)
}

func NewAmpBuildClient

func NewAmpBuildClient(cc *grpc.ClientConn) AmpBuildClient

type AmpBuildServer

type AmpBuildServer interface {
	PingPong(context.Context, *Ping) (*Pong, error)
	CreateProject(context.Context, *ProjectRequest) (*Project, error)
	DeleteProject(context.Context, *ProjectRequest) (*Project, error)
	ListProjects(context.Context, *ProjectQuery) (*ProjectList, error)
	ListBuilds(context.Context, *ProjectRequest) (*BuildList, error)
	BuildLog(*BuildRequest, AmpBuild_BuildLogServer) error
	Rebuild(context.Context, *BuildRequest) (*Build, error)
}

type AmpBuild_BuildLogClient

type AmpBuild_BuildLogClient interface {
	Recv() (*Log, error)
	grpc.ClientStream
}

type AmpBuild_BuildLogServer

type AmpBuild_BuildLogServer interface {
	Send(*Log) error
	grpc.ServerStream
}

type Build

type Build struct {
	Owner         string `protobuf:"bytes,1,opt,name=owner" json:"owner,omitempty"`
	Name          string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Sha           string `protobuf:"bytes,3,opt,name=sha" json:"sha,omitempty"`
	Status        string `protobuf:"bytes,4,opt,name=status" json:"status,omitempty"`
	CommitMessage string `protobuf:"bytes,5,opt,name=commit_message,json=commitMessage" json:"commit_message,omitempty"`
}

func (*Build) Descriptor

func (*Build) Descriptor() ([]byte, []int)

func (*Build) ProtoMessage

func (*Build) ProtoMessage()

func (*Build) Reset

func (m *Build) Reset()

func (*Build) String

func (m *Build) String() string

type BuildList

type BuildList struct {
	Builds []*Build `protobuf:"bytes,1,rep,name=builds" json:"builds,omitempty"`
}

func (*BuildList) Descriptor

func (*BuildList) Descriptor() ([]byte, []int)

func (*BuildList) GetBuilds

func (m *BuildList) GetBuilds() []*Build

func (*BuildList) ProtoMessage

func (*BuildList) ProtoMessage()

func (*BuildList) Reset

func (m *BuildList) Reset()

func (*BuildList) String

func (m *BuildList) String() string

type BuildRequest

type BuildRequest struct {
	Owner string `protobuf:"bytes,1,opt,name=owner" json:"owner,omitempty"`
	Name  string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Sha   string `protobuf:"bytes,3,opt,name=sha" json:"sha,omitempty"`
}

func (*BuildRequest) Descriptor

func (*BuildRequest) Descriptor() ([]byte, []int)

func (*BuildRequest) ProtoMessage

func (*BuildRequest) ProtoMessage()

func (*BuildRequest) Reset

func (m *BuildRequest) Reset()

func (*BuildRequest) String

func (m *BuildRequest) String() string

type Log

type Log struct {
	Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}

func (*Log) Descriptor

func (*Log) Descriptor() ([]byte, []int)

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) Reset

func (m *Log) Reset()

func (*Log) String

func (m *Log) String() string

type Ping

type Ping struct {
	Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}

func (*Ping) Descriptor

func (*Ping) Descriptor() ([]byte, []int)

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) Reset

func (m *Ping) Reset()

func (*Ping) String

func (m *Ping) String() string

type Pong

type Pong struct {
	Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}

func (*Pong) Descriptor

func (*Pong) Descriptor() ([]byte, []int)

func (*Pong) ProtoMessage

func (*Pong) ProtoMessage()

func (*Pong) Reset

func (m *Pong) Reset()

func (*Pong) String

func (m *Pong) String() string

type Project

type Project struct {
	Id     uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	Owner  string `protobuf:"bytes,2,opt,name=owner" json:"owner,omitempty"`
	Name   string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
	Status string `protobuf:"bytes,4,opt,name=status" json:"status,omitempty"`
}

func (*Project) Descriptor

func (*Project) Descriptor() ([]byte, []int)

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) Reset

func (m *Project) Reset()

func (*Project) String

func (m *Project) String() string

type ProjectList

type ProjectList struct {
	Projects []*Project `protobuf:"bytes,1,rep,name=projects" json:"projects,omitempty"`
}

func (*ProjectList) Descriptor

func (*ProjectList) Descriptor() ([]byte, []int)

func (*ProjectList) GetProjects

func (m *ProjectList) GetProjects() []*Project

func (*ProjectList) ProtoMessage

func (*ProjectList) ProtoMessage()

func (*ProjectList) Reset

func (m *ProjectList) Reset()

func (*ProjectList) String

func (m *ProjectList) String() string

type ProjectQuery

type ProjectQuery struct {
	Organization string `protobuf:"bytes,1,opt,name=organization" json:"organization,omitempty"`
	Latest       bool   `protobuf:"varint,2,opt,name=latest" json:"latest,omitempty"`
}

func (*ProjectQuery) Descriptor

func (*ProjectQuery) Descriptor() ([]byte, []int)

func (*ProjectQuery) ProtoMessage

func (*ProjectQuery) ProtoMessage()

func (*ProjectQuery) Reset

func (m *ProjectQuery) Reset()

func (*ProjectQuery) String

func (m *ProjectQuery) String() string

type ProjectRequest

type ProjectRequest struct {
	Owner string `protobuf:"bytes,1,opt,name=owner" json:"owner,omitempty"`
	Name  string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
}

func (*ProjectRequest) Descriptor

func (*ProjectRequest) Descriptor() ([]byte, []int)

func (*ProjectRequest) ProtoMessage

func (*ProjectRequest) ProtoMessage()

func (*ProjectRequest) Reset

func (m *ProjectRequest) Reset()

func (*ProjectRequest) String

func (m *ProjectRequest) String() string

Jump to

Keyboard shortcuts

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