aspb

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package aspb is a generated protocol buffer package.

It is generated from these files:

aspb.proto

It has these top-level messages:

BuildRequest
BuildResponse
StartRequest
StartResponse
StopRequest
StopResponse
RestartRequest
RestartResponse
RequestHeader
ResponseHeader
Request
Response
Error

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthAspb = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAspb   = fmt.Errorf("proto: integer overflow")
)
View Source
var CommandType_name = map[int32]string{
	0: "Invalid",
	1: "Build",
	2: "Start",
	3: "Stop",
	4: "Restart",
}
View Source
var CommandType_value = map[string]int32{
	"Invalid": 0,
	"Build":   1,
	"Start":   2,
	"Stop":    3,
	"Restart": 4,
}

Functions

This section is empty.

Types

type BuildRequest

type BuildRequest struct {
	Name             string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version          string   `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Ip               string   `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
	Port             string   `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"`
	Args             []string `protobuf:"bytes,5,rep,name=args" json:"args,omitempty"`
	DownloadUrl      string   `protobuf:"bytes,6,opt,name=download_url,json=downloadUrl,proto3" json:"download_url,omitempty"`
	DownloadProtocol string   `protobuf:"bytes,7,opt,name=download_protocol,json=downloadProtocol,proto3" json:"download_protocol,omitempty"`
	DownloadUser     string   `protobuf:"bytes,8,opt,name=download_user,json=downloadUser,proto3" json:"download_user,omitempty"`
	DownloadPassword string   `protobuf:"bytes,9,opt,name=download_password,json=downloadPassword,proto3" json:"download_password,omitempty"`
	Checksum         string   `protobuf:"bytes,10,opt,name=checksum,proto3" json:"checksum,omitempty"`
	CompressedFormat string   `protobuf:"bytes,11,opt,name=compressed_format,json=compressedFormat,proto3" json:"compressed_format,omitempty"`
}

func (*BuildRequest) Descriptor

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

func (*BuildRequest) GetArgs

func (m *BuildRequest) GetArgs() []string

func (*BuildRequest) GetChecksum

func (m *BuildRequest) GetChecksum() string

func (*BuildRequest) GetCompressedFormat

func (m *BuildRequest) GetCompressedFormat() string

func (*BuildRequest) GetDownloadPassword

func (m *BuildRequest) GetDownloadPassword() string

func (*BuildRequest) GetDownloadProtocol

func (m *BuildRequest) GetDownloadProtocol() string

func (*BuildRequest) GetDownloadUrl

func (m *BuildRequest) GetDownloadUrl() string

func (*BuildRequest) GetDownloadUser

func (m *BuildRequest) GetDownloadUser() string

func (*BuildRequest) GetIp

func (m *BuildRequest) GetIp() string

func (*BuildRequest) GetName

func (m *BuildRequest) GetName() string

func (*BuildRequest) GetPort

func (m *BuildRequest) GetPort() string

func (*BuildRequest) GetVersion

func (m *BuildRequest) GetVersion() string

func (*BuildRequest) Marshal

func (m *BuildRequest) Marshal() (dAtA []byte, err error)

func (*BuildRequest) MarshalTo

func (m *BuildRequest) MarshalTo(dAtA []byte) (int, error)

func (*BuildRequest) ProtoMessage

func (*BuildRequest) ProtoMessage()

func (*BuildRequest) Reset

func (m *BuildRequest) Reset()

func (*BuildRequest) Size

func (m *BuildRequest) Size() (n int)

func (*BuildRequest) String

func (m *BuildRequest) String() string

func (*BuildRequest) Unmarshal

func (m *BuildRequest) Unmarshal(dAtA []byte) error

type BuildResponse

type BuildResponse struct {
}

func (*BuildResponse) Descriptor

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

func (*BuildResponse) Marshal

func (m *BuildResponse) Marshal() (dAtA []byte, err error)

func (*BuildResponse) MarshalTo

func (m *BuildResponse) MarshalTo(dAtA []byte) (int, error)

func (*BuildResponse) ProtoMessage

func (*BuildResponse) ProtoMessage()

func (*BuildResponse) Reset

func (m *BuildResponse) Reset()

func (*BuildResponse) Size

func (m *BuildResponse) Size() (n int)

func (*BuildResponse) String

func (m *BuildResponse) String() string

func (*BuildResponse) Unmarshal

func (m *BuildResponse) Unmarshal(dAtA []byte) error

type CommandType

type CommandType int32
const (
	CommandType_Invalid CommandType = 0
	CommandType_Build   CommandType = 1
	CommandType_Start   CommandType = 2
	CommandType_Stop    CommandType = 3
	CommandType_Restart CommandType = 4
)

func (CommandType) EnumDescriptor

func (CommandType) EnumDescriptor() ([]byte, []int)

func (CommandType) String

func (x CommandType) String() string

type Error

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

func (*Error) Descriptor

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

func (*Error) GetMessage

func (m *Error) GetMessage() string

func (*Error) Marshal

func (m *Error) Marshal() (dAtA []byte, err error)

func (*Error) MarshalTo

func (m *Error) MarshalTo(dAtA []byte) (int, error)

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) Reset

func (m *Error) Reset()

func (*Error) Size

func (m *Error) Size() (n int)

func (*Error) String

func (m *Error) String() string

func (*Error) Unmarshal

func (m *Error) Unmarshal(dAtA []byte) error

type Request

type Request struct {
	Header  *RequestHeader  `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
	CmdType CommandType     `protobuf:"varint,2,opt,name=cmd_type,json=cmdType,proto3,enum=aspb.CommandType" json:"cmd_type,omitempty"`
	Build   *BuildRequest   `protobuf:"bytes,3,opt,name=build" json:"build,omitempty"`
	Start   *StartRequest   `protobuf:"bytes,4,opt,name=start" json:"start,omitempty"`
	Stop    *StopRequest    `protobuf:"bytes,5,opt,name=stop" json:"stop,omitempty"`
	Restart *RestartRequest `protobuf:"bytes,6,opt,name=restart" json:"restart,omitempty"`
}

func (*Request) Descriptor

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

func (*Request) GetBuild

func (m *Request) GetBuild() *BuildRequest

func (*Request) GetCmdType

func (m *Request) GetCmdType() CommandType

func (*Request) GetHeader

func (m *Request) GetHeader() *RequestHeader

func (*Request) GetRestart

func (m *Request) GetRestart() *RestartRequest

func (*Request) GetStart

func (m *Request) GetStart() *StartRequest

func (*Request) GetStop

func (m *Request) GetStop() *StopRequest

func (*Request) Marshal

func (m *Request) Marshal() (dAtA []byte, err error)

func (*Request) MarshalTo

func (m *Request) MarshalTo(dAtA []byte) (int, error)

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) Size

func (m *Request) Size() (n int)

func (*Request) String

func (m *Request) String() string

func (*Request) Unmarshal

func (m *Request) Unmarshal(dAtA []byte) error

type RequestHeader

type RequestHeader struct {
	// 16 bytes, to distinguish request.
	Uuid      []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	ClusterId uint64 `protobuf:"varint,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
}

func (*RequestHeader) Descriptor

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

func (*RequestHeader) GetClusterId

func (m *RequestHeader) GetClusterId() uint64

func (*RequestHeader) GetUuid

func (m *RequestHeader) GetUuid() []byte

func (*RequestHeader) Marshal

func (m *RequestHeader) Marshal() (dAtA []byte, err error)

func (*RequestHeader) MarshalTo

func (m *RequestHeader) MarshalTo(dAtA []byte) (int, error)

func (*RequestHeader) ProtoMessage

func (*RequestHeader) ProtoMessage()

func (*RequestHeader) Reset

func (m *RequestHeader) Reset()

func (*RequestHeader) Size

func (m *RequestHeader) Size() (n int)

func (*RequestHeader) String

func (m *RequestHeader) String() string

func (*RequestHeader) Unmarshal

func (m *RequestHeader) Unmarshal(dAtA []byte) error

type Response

type Response struct {
	Header  *ResponseHeader  `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
	CmdType CommandType      `protobuf:"varint,2,opt,name=cmd_type,json=cmdType,proto3,enum=aspb.CommandType" json:"cmd_type,omitempty"`
	Build   *BuildResponse   `protobuf:"bytes,3,opt,name=build" json:"build,omitempty"`
	Start   *StartResponse   `protobuf:"bytes,4,opt,name=start" json:"start,omitempty"`
	Stop    *StopResponse    `protobuf:"bytes,5,opt,name=stop" json:"stop,omitempty"`
	Restart *RestartResponse `protobuf:"bytes,6,opt,name=restart" json:"restart,omitempty"`
}

func (*Response) Descriptor

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

func (*Response) GetBuild

func (m *Response) GetBuild() *BuildResponse

func (*Response) GetCmdType

func (m *Response) GetCmdType() CommandType

func (*Response) GetHeader

func (m *Response) GetHeader() *ResponseHeader

func (*Response) GetRestart

func (m *Response) GetRestart() *RestartResponse

func (*Response) GetStart

func (m *Response) GetStart() *StartResponse

func (*Response) GetStop

func (m *Response) GetStop() *StopResponse

func (*Response) Marshal

func (m *Response) Marshal() (dAtA []byte, err error)

func (*Response) MarshalTo

func (m *Response) MarshalTo(dAtA []byte) (int, error)

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) Size

func (m *Response) Size() (n int)

func (*Response) String

func (m *Response) String() string

func (*Response) Unmarshal

func (m *Response) Unmarshal(dAtA []byte) error

type ResponseHeader

type ResponseHeader struct {
	// 16 bytes, to distinguish request.
	Uuid      []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	ClusterId uint64 `protobuf:"varint,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	Error     *Error `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"`
}

func (*ResponseHeader) Descriptor

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

func (*ResponseHeader) GetClusterId

func (m *ResponseHeader) GetClusterId() uint64

func (*ResponseHeader) GetError

func (m *ResponseHeader) GetError() *Error

func (*ResponseHeader) GetUuid

func (m *ResponseHeader) GetUuid() []byte

func (*ResponseHeader) Marshal

func (m *ResponseHeader) Marshal() (dAtA []byte, err error)

func (*ResponseHeader) MarshalTo

func (m *ResponseHeader) MarshalTo(dAtA []byte) (int, error)

func (*ResponseHeader) ProtoMessage

func (*ResponseHeader) ProtoMessage()

func (*ResponseHeader) Reset

func (m *ResponseHeader) Reset()

func (*ResponseHeader) Size

func (m *ResponseHeader) Size() (n int)

func (*ResponseHeader) String

func (m *ResponseHeader) String() string

func (*ResponseHeader) Unmarshal

func (m *ResponseHeader) Unmarshal(dAtA []byte) error

type RestartRequest

type RestartRequest struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
}

func (*RestartRequest) Descriptor

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

func (*RestartRequest) GetName

func (m *RestartRequest) GetName() string

func (*RestartRequest) GetVersion

func (m *RestartRequest) GetVersion() string

func (*RestartRequest) Marshal

func (m *RestartRequest) Marshal() (dAtA []byte, err error)

func (*RestartRequest) MarshalTo

func (m *RestartRequest) MarshalTo(dAtA []byte) (int, error)

func (*RestartRequest) ProtoMessage

func (*RestartRequest) ProtoMessage()

func (*RestartRequest) Reset

func (m *RestartRequest) Reset()

func (*RestartRequest) Size

func (m *RestartRequest) Size() (n int)

func (*RestartRequest) String

func (m *RestartRequest) String() string

func (*RestartRequest) Unmarshal

func (m *RestartRequest) Unmarshal(dAtA []byte) error

type RestartResponse

type RestartResponse struct {
}

func (*RestartResponse) Descriptor

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

func (*RestartResponse) Marshal

func (m *RestartResponse) Marshal() (dAtA []byte, err error)

func (*RestartResponse) MarshalTo

func (m *RestartResponse) MarshalTo(dAtA []byte) (int, error)

func (*RestartResponse) ProtoMessage

func (*RestartResponse) ProtoMessage()

func (*RestartResponse) Reset

func (m *RestartResponse) Reset()

func (*RestartResponse) Size

func (m *RestartResponse) Size() (n int)

func (*RestartResponse) String

func (m *RestartResponse) String() string

func (*RestartResponse) Unmarshal

func (m *RestartResponse) Unmarshal(dAtA []byte) error

type StartRequest

type StartRequest struct {
	Name    string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version string   `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Ip      string   `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
	Port    string   `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"`
	Args    []string `protobuf:"bytes,5,rep,name=args" json:"args,omitempty"`
}

func (*StartRequest) Descriptor

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

func (*StartRequest) GetArgs

func (m *StartRequest) GetArgs() []string

func (*StartRequest) GetIp

func (m *StartRequest) GetIp() string

func (*StartRequest) GetName

func (m *StartRequest) GetName() string

func (*StartRequest) GetPort

func (m *StartRequest) GetPort() string

func (*StartRequest) GetVersion

func (m *StartRequest) GetVersion() string

func (*StartRequest) Marshal

func (m *StartRequest) Marshal() (dAtA []byte, err error)

func (*StartRequest) MarshalTo

func (m *StartRequest) MarshalTo(dAtA []byte) (int, error)

func (*StartRequest) ProtoMessage

func (*StartRequest) ProtoMessage()

func (*StartRequest) Reset

func (m *StartRequest) Reset()

func (*StartRequest) Size

func (m *StartRequest) Size() (n int)

func (*StartRequest) String

func (m *StartRequest) String() string

func (*StartRequest) Unmarshal

func (m *StartRequest) Unmarshal(dAtA []byte) error

type StartResponse

type StartResponse struct {
}

func (*StartResponse) Descriptor

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

func (*StartResponse) Marshal

func (m *StartResponse) Marshal() (dAtA []byte, err error)

func (*StartResponse) MarshalTo

func (m *StartResponse) MarshalTo(dAtA []byte) (int, error)

func (*StartResponse) ProtoMessage

func (*StartResponse) ProtoMessage()

func (*StartResponse) Reset

func (m *StartResponse) Reset()

func (*StartResponse) Size

func (m *StartResponse) Size() (n int)

func (*StartResponse) String

func (m *StartResponse) String() string

func (*StartResponse) Unmarshal

func (m *StartResponse) Unmarshal(dAtA []byte) error

type StopRequest

type StopRequest struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
}

func (*StopRequest) Descriptor

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

func (*StopRequest) GetName

func (m *StopRequest) GetName() string

func (*StopRequest) GetVersion

func (m *StopRequest) GetVersion() string

func (*StopRequest) Marshal

func (m *StopRequest) Marshal() (dAtA []byte, err error)

func (*StopRequest) MarshalTo

func (m *StopRequest) MarshalTo(dAtA []byte) (int, error)

func (*StopRequest) ProtoMessage

func (*StopRequest) ProtoMessage()

func (*StopRequest) Reset

func (m *StopRequest) Reset()

func (*StopRequest) Size

func (m *StopRequest) Size() (n int)

func (*StopRequest) String

func (m *StopRequest) String() string

func (*StopRequest) Unmarshal

func (m *StopRequest) Unmarshal(dAtA []byte) error

type StopResponse

type StopResponse struct {
}

func (*StopResponse) Descriptor

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

func (*StopResponse) Marshal

func (m *StopResponse) Marshal() (dAtA []byte, err error)

func (*StopResponse) MarshalTo

func (m *StopResponse) MarshalTo(dAtA []byte) (int, error)

func (*StopResponse) ProtoMessage

func (*StopResponse) ProtoMessage()

func (*StopResponse) Reset

func (m *StopResponse) Reset()

func (*StopResponse) Size

func (m *StopResponse) Size() (n int)

func (*StopResponse) String

func (m *StopResponse) String() string

func (*StopResponse) Unmarshal

func (m *StopResponse) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

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