edge_ctrl_pb

package
v0.15.40 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

README

#Prerequisites

  1. Install the protoc binary from: https://github.com/protocolbuffers/protobuf/releases
  2. Install the protoc plugin for Go go get -u github.com/golang/protobuf/protoc-gen-go
  3. Ensure protoc is on your path.
  4. Ensure your Go bin directory is on your path

#Generate Go Code

  1. Navigate to the project root
  2. Run: protoc -I ./pb/edge_ctrl_pb/ ./pb/edge_ctrl_pb/edge_ctrl.proto --go_out=./pb/edge_ctrl_pb

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContentType_name = map[int32]string{
	0:     "Zero",
	20000: "ServerHelloType",
	20001: "ClientHelloType",
	20002: "ErrorType",
	20100: "SessionAddedType",
	20101: "SessionUpdatedType",
	20102: "SessionRemovedType",
	20200: "ApiSessionAddedType",
	20201: "ApiSessionUpdatedType",
	20202: "ApiSessionRemovedType",
	20203: "ApiSessionHeartbeatType",
	20300: "EnrollType",
	20301: "EnrollCertsType",
}
View Source
var ContentType_value = map[string]int32{
	"Zero":                    0,
	"ServerHelloType":         20000,
	"ClientHelloType":         20001,
	"ErrorType":               20002,
	"SessionAddedType":        20100,
	"SessionUpdatedType":      20101,
	"SessionRemovedType":      20102,
	"ApiSessionAddedType":     20200,
	"ApiSessionUpdatedType":   20201,
	"ApiSessionRemovedType":   20202,
	"ApiSessionHeartbeatType": 20203,
	"EnrollType":              20300,
	"EnrollCertsType":         20301,
}
View Source
var SessionType_name = map[int32]string{
	0: "Dial",
	1: "Bind",
}
View Source
var SessionType_value = map[string]int32{
	"Dial": 0,
	"Bind": 1,
}

Functions

This section is empty.

Types

type ApiSession

type ApiSession struct {
	Token                string   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	CertFingerprints     []string `protobuf:"bytes,2,rep,name=certFingerprints,proto3" json:"certFingerprints,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ApiSession) Descriptor

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

func (*ApiSession) GetCertFingerprints

func (m *ApiSession) GetCertFingerprints() []string

func (*ApiSession) GetToken

func (m *ApiSession) GetToken() string

func (*ApiSession) ProtoMessage

func (*ApiSession) ProtoMessage()

func (*ApiSession) Reset

func (m *ApiSession) Reset()

func (*ApiSession) String

func (m *ApiSession) String() string

func (*ApiSession) XXX_DiscardUnknown

func (m *ApiSession) XXX_DiscardUnknown()

func (*ApiSession) XXX_Marshal

func (m *ApiSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApiSession) XXX_Merge

func (m *ApiSession) XXX_Merge(src proto.Message)

func (*ApiSession) XXX_Size

func (m *ApiSession) XXX_Size() int

func (*ApiSession) XXX_Unmarshal

func (m *ApiSession) XXX_Unmarshal(b []byte) error

type ApiSessionAdded

type ApiSessionAdded struct {
	IsFullState          bool          `protobuf:"varint,1,opt,name=isFullState,proto3" json:"isFullState,omitempty"`
	ApiSessions          []*ApiSession `protobuf:"bytes,2,rep,name=apiSessions,proto3" json:"apiSessions,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*ApiSessionAdded) Descriptor

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

func (*ApiSessionAdded) GetApiSessions

func (m *ApiSessionAdded) GetApiSessions() []*ApiSession

func (*ApiSessionAdded) GetIsFullState

func (m *ApiSessionAdded) GetIsFullState() bool

func (*ApiSessionAdded) ProtoMessage

func (*ApiSessionAdded) ProtoMessage()

func (*ApiSessionAdded) Reset

func (m *ApiSessionAdded) Reset()

func (*ApiSessionAdded) String

func (m *ApiSessionAdded) String() string

func (*ApiSessionAdded) XXX_DiscardUnknown

func (m *ApiSessionAdded) XXX_DiscardUnknown()

func (*ApiSessionAdded) XXX_Marshal

func (m *ApiSessionAdded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApiSessionAdded) XXX_Merge

func (m *ApiSessionAdded) XXX_Merge(src proto.Message)

func (*ApiSessionAdded) XXX_Size

func (m *ApiSessionAdded) XXX_Size() int

func (*ApiSessionAdded) XXX_Unmarshal

func (m *ApiSessionAdded) XXX_Unmarshal(b []byte) error

type ApiSessionHeartbeat

type ApiSessionHeartbeat struct {
	Tokens               []string `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ApiSessionHeartbeat) Descriptor

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

func (*ApiSessionHeartbeat) GetTokens

func (m *ApiSessionHeartbeat) GetTokens() []string

func (*ApiSessionHeartbeat) ProtoMessage

func (*ApiSessionHeartbeat) ProtoMessage()

func (*ApiSessionHeartbeat) Reset

func (m *ApiSessionHeartbeat) Reset()

func (*ApiSessionHeartbeat) String

func (m *ApiSessionHeartbeat) String() string

func (*ApiSessionHeartbeat) XXX_DiscardUnknown

func (m *ApiSessionHeartbeat) XXX_DiscardUnknown()

func (*ApiSessionHeartbeat) XXX_Marshal

func (m *ApiSessionHeartbeat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApiSessionHeartbeat) XXX_Merge

func (m *ApiSessionHeartbeat) XXX_Merge(src proto.Message)

func (*ApiSessionHeartbeat) XXX_Size

func (m *ApiSessionHeartbeat) XXX_Size() int

func (*ApiSessionHeartbeat) XXX_Unmarshal

func (m *ApiSessionHeartbeat) XXX_Unmarshal(b []byte) error

type ApiSessionRemoved

type ApiSessionRemoved struct {
	Tokens               []string `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ApiSessionRemoved) Descriptor

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

func (*ApiSessionRemoved) GetTokens

func (m *ApiSessionRemoved) GetTokens() []string

func (*ApiSessionRemoved) ProtoMessage

func (*ApiSessionRemoved) ProtoMessage()

func (*ApiSessionRemoved) Reset

func (m *ApiSessionRemoved) Reset()

func (*ApiSessionRemoved) String

func (m *ApiSessionRemoved) String() string

func (*ApiSessionRemoved) XXX_DiscardUnknown

func (m *ApiSessionRemoved) XXX_DiscardUnknown()

func (*ApiSessionRemoved) XXX_Marshal

func (m *ApiSessionRemoved) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApiSessionRemoved) XXX_Merge

func (m *ApiSessionRemoved) XXX_Merge(src proto.Message)

func (*ApiSessionRemoved) XXX_Size

func (m *ApiSessionRemoved) XXX_Size() int

func (*ApiSessionRemoved) XXX_Unmarshal

func (m *ApiSessionRemoved) XXX_Unmarshal(b []byte) error

type ApiSessionUpdated

type ApiSessionUpdated struct {
	ApiSessions          []*ApiSession `protobuf:"bytes,1,rep,name=apiSessions,proto3" json:"apiSessions,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*ApiSessionUpdated) Descriptor

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

func (*ApiSessionUpdated) GetApiSessions

func (m *ApiSessionUpdated) GetApiSessions() []*ApiSession

func (*ApiSessionUpdated) ProtoMessage

func (*ApiSessionUpdated) ProtoMessage()

func (*ApiSessionUpdated) Reset

func (m *ApiSessionUpdated) Reset()

func (*ApiSessionUpdated) String

func (m *ApiSessionUpdated) String() string

func (*ApiSessionUpdated) XXX_DiscardUnknown

func (m *ApiSessionUpdated) XXX_DiscardUnknown()

func (*ApiSessionUpdated) XXX_Marshal

func (m *ApiSessionUpdated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApiSessionUpdated) XXX_Merge

func (m *ApiSessionUpdated) XXX_Merge(src proto.Message)

func (*ApiSessionUpdated) XXX_Size

func (m *ApiSessionUpdated) XXX_Size() int

func (*ApiSessionUpdated) XXX_Unmarshal

func (m *ApiSessionUpdated) XXX_Unmarshal(b []byte) error

type ClientHello

type ClientHello struct {
	Version              string            `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Hostname             string            `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"`
	Protocols            []string          `protobuf:"bytes,3,rep,name=protocols,proto3" json:"protocols,omitempty"`
	Data                 map[string]string `` /* 149-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*ClientHello) Descriptor

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

func (*ClientHello) GetData

func (m *ClientHello) GetData() map[string]string

func (*ClientHello) GetHostname

func (m *ClientHello) GetHostname() string

func (*ClientHello) GetProtocols

func (m *ClientHello) GetProtocols() []string

func (*ClientHello) GetVersion

func (m *ClientHello) GetVersion() string

func (*ClientHello) ProtoMessage

func (*ClientHello) ProtoMessage()

func (*ClientHello) Reset

func (m *ClientHello) Reset()

func (*ClientHello) String

func (m *ClientHello) String() string

func (*ClientHello) XXX_DiscardUnknown

func (m *ClientHello) XXX_DiscardUnknown()

func (*ClientHello) XXX_Marshal

func (m *ClientHello) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClientHello) XXX_Merge

func (m *ClientHello) XXX_Merge(src proto.Message)

func (*ClientHello) XXX_Size

func (m *ClientHello) XXX_Size() int

func (*ClientHello) XXX_Unmarshal

func (m *ClientHello) XXX_Unmarshal(b []byte) error

type ContentType

type ContentType int32
const (
	ContentType_Zero                    ContentType = 0
	ContentType_ServerHelloType         ContentType = 20000
	ContentType_ClientHelloType         ContentType = 20001
	ContentType_ErrorType               ContentType = 20002
	ContentType_SessionAddedType        ContentType = 20100
	ContentType_SessionUpdatedType      ContentType = 20101
	ContentType_SessionRemovedType      ContentType = 20102
	ContentType_ApiSessionAddedType     ContentType = 20200
	ContentType_ApiSessionUpdatedType   ContentType = 20201
	ContentType_ApiSessionRemovedType   ContentType = 20202
	ContentType_ApiSessionHeartbeatType ContentType = 20203
	ContentType_EnrollType              ContentType = 20300
	ContentType_EnrollCertsType         ContentType = 20301
)

func (ContentType) EnumDescriptor

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

func (ContentType) String

func (x ContentType) String() string

type Error

type Error struct {
	Code                 string   `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Message              string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Cause                string   `protobuf:"bytes,3,opt,name=cause,proto3" json:"cause,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Error) Descriptor

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

func (*Error) GetCause

func (m *Error) GetCause() string

func (*Error) GetCode

func (m *Error) GetCode() string

func (*Error) GetMessage

func (m *Error) GetMessage() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) Reset

func (m *Error) Reset()

func (*Error) String

func (m *Error) String() string

func (*Error) XXX_DiscardUnknown

func (m *Error) XXX_DiscardUnknown()

func (*Error) XXX_Marshal

func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Error) XXX_Merge

func (m *Error) XXX_Merge(src proto.Message)

func (*Error) XXX_Size

func (m *Error) XXX_Size() int

func (*Error) XXX_Unmarshal

func (m *Error) XXX_Unmarshal(b []byte) error

type ServerHello

type ServerHello struct {
	Version              string            `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Data                 map[string]string `` /* 149-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*ServerHello) Descriptor

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

func (*ServerHello) GetData

func (m *ServerHello) GetData() map[string]string

func (*ServerHello) GetVersion

func (m *ServerHello) GetVersion() string

func (*ServerHello) ProtoMessage

func (*ServerHello) ProtoMessage()

func (*ServerHello) Reset

func (m *ServerHello) Reset()

func (*ServerHello) String

func (m *ServerHello) String() string

func (*ServerHello) XXX_DiscardUnknown

func (m *ServerHello) XXX_DiscardUnknown()

func (*ServerHello) XXX_Marshal

func (m *ServerHello) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServerHello) XXX_Merge

func (m *ServerHello) XXX_Merge(src proto.Message)

func (*ServerHello) XXX_Size

func (m *ServerHello) XXX_Size() int

func (*ServerHello) XXX_Unmarshal

func (m *ServerHello) XXX_Unmarshal(b []byte) error

type Service

type Service struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	EncryptionRequired   bool     `protobuf:"varint,3,opt,name=encryptionRequired,proto3" json:"encryptionRequired,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Service) Descriptor

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

func (*Service) GetEncryptionRequired added in v0.15.30

func (m *Service) GetEncryptionRequired() bool

func (*Service) GetId

func (m *Service) GetId() string

func (*Service) GetName

func (m *Service) GetName() string

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) Reset

func (m *Service) Reset()

func (*Service) String

func (m *Service) String() string

func (*Service) XXX_DiscardUnknown

func (m *Service) XXX_DiscardUnknown()

func (*Service) XXX_Marshal

func (m *Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Service) XXX_Merge

func (m *Service) XXX_Merge(src proto.Message)

func (*Service) XXX_Size

func (m *Service) XXX_Size() int

func (*Service) XXX_Unmarshal

func (m *Service) XXX_Unmarshal(b []byte) error

type Session

type Session struct {
	Token                string      `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Type                 SessionType `protobuf:"varint,2,opt,name=type,proto3,enum=edge_ctrl.pb.SessionType" json:"type,omitempty"`
	CertFingerprints     []string    `protobuf:"bytes,3,rep,name=certFingerprints,proto3" json:"certFingerprints,omitempty"`
	Urls                 []string    `protobuf:"bytes,4,rep,name=urls,proto3" json:"urls,omitempty"`
	Service              *Service    `protobuf:"bytes,5,opt,name=service,proto3" json:"service,omitempty"`
	SessionToken         string      `protobuf:"bytes,6,opt,name=sessionToken,proto3" json:"sessionToken,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*Session) Descriptor

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

func (*Session) GetCertFingerprints

func (m *Session) GetCertFingerprints() []string

func (*Session) GetService

func (m *Session) GetService() *Service

func (*Session) GetSessionToken

func (m *Session) GetSessionToken() string

func (*Session) GetToken

func (m *Session) GetToken() string

func (*Session) GetType

func (m *Session) GetType() SessionType

func (*Session) GetUrls

func (m *Session) GetUrls() []string

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) Reset

func (m *Session) Reset()

func (*Session) String

func (m *Session) String() string

func (*Session) XXX_DiscardUnknown

func (m *Session) XXX_DiscardUnknown()

func (*Session) XXX_Marshal

func (m *Session) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Session) XXX_Merge

func (m *Session) XXX_Merge(src proto.Message)

func (*Session) XXX_Size

func (m *Session) XXX_Size() int

func (*Session) XXX_Unmarshal

func (m *Session) XXX_Unmarshal(b []byte) error

type SessionAdded

type SessionAdded struct {
	IsFullState          bool       `protobuf:"varint,1,opt,name=isFullState,proto3" json:"isFullState,omitempty"`
	Sessions             []*Session `protobuf:"bytes,2,rep,name=sessions,proto3" json:"sessions,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*SessionAdded) Descriptor

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

func (*SessionAdded) GetIsFullState

func (m *SessionAdded) GetIsFullState() bool

func (*SessionAdded) GetSessions

func (m *SessionAdded) GetSessions() []*Session

func (*SessionAdded) ProtoMessage

func (*SessionAdded) ProtoMessage()

func (*SessionAdded) Reset

func (m *SessionAdded) Reset()

func (*SessionAdded) String

func (m *SessionAdded) String() string

func (*SessionAdded) XXX_DiscardUnknown

func (m *SessionAdded) XXX_DiscardUnknown()

func (*SessionAdded) XXX_Marshal

func (m *SessionAdded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SessionAdded) XXX_Merge

func (m *SessionAdded) XXX_Merge(src proto.Message)

func (*SessionAdded) XXX_Size

func (m *SessionAdded) XXX_Size() int

func (*SessionAdded) XXX_Unmarshal

func (m *SessionAdded) XXX_Unmarshal(b []byte) error

type SessionRemoved

type SessionRemoved struct {
	Tokens               []string `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SessionRemoved) Descriptor

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

func (*SessionRemoved) GetTokens

func (m *SessionRemoved) GetTokens() []string

func (*SessionRemoved) ProtoMessage

func (*SessionRemoved) ProtoMessage()

func (*SessionRemoved) Reset

func (m *SessionRemoved) Reset()

func (*SessionRemoved) String

func (m *SessionRemoved) String() string

func (*SessionRemoved) XXX_DiscardUnknown

func (m *SessionRemoved) XXX_DiscardUnknown()

func (*SessionRemoved) XXX_Marshal

func (m *SessionRemoved) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SessionRemoved) XXX_Merge

func (m *SessionRemoved) XXX_Merge(src proto.Message)

func (*SessionRemoved) XXX_Size

func (m *SessionRemoved) XXX_Size() int

func (*SessionRemoved) XXX_Unmarshal

func (m *SessionRemoved) XXX_Unmarshal(b []byte) error

type SessionType

type SessionType int32
const (
	SessionType_Dial SessionType = 0
	SessionType_Bind SessionType = 1
)

func (SessionType) EnumDescriptor

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

func (SessionType) String

func (x SessionType) String() string

type SessionUpdated

type SessionUpdated struct {
	Token                string   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Urls                 []string `protobuf:"bytes,2,rep,name=urls,proto3" json:"urls,omitempty"`
	Service              *Service `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SessionUpdated) Descriptor

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

func (*SessionUpdated) GetService

func (m *SessionUpdated) GetService() *Service

func (*SessionUpdated) GetToken

func (m *SessionUpdated) GetToken() string

func (*SessionUpdated) GetUrls

func (m *SessionUpdated) GetUrls() []string

func (*SessionUpdated) ProtoMessage

func (*SessionUpdated) ProtoMessage()

func (*SessionUpdated) Reset

func (m *SessionUpdated) Reset()

func (*SessionUpdated) String

func (m *SessionUpdated) String() string

func (*SessionUpdated) XXX_DiscardUnknown

func (m *SessionUpdated) XXX_DiscardUnknown()

func (*SessionUpdated) XXX_Marshal

func (m *SessionUpdated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SessionUpdated) XXX_Merge

func (m *SessionUpdated) XXX_Merge(src proto.Message)

func (*SessionUpdated) XXX_Size

func (m *SessionUpdated) XXX_Size() int

func (*SessionUpdated) XXX_Unmarshal

func (m *SessionUpdated) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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