cluster

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageHead

type MessageHead struct {
	// MessageID is the uuid of a controller crd.
	MessageID            string   `protobuf:"bytes,1,opt,name=MessageID,proto3" json:"MessageID,omitempty"`
	ParentClusterName    string   `protobuf:"bytes,2,opt,name=ParentClusterName,proto3" json:"ParentClusterName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MessageHead) Descriptor

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

func (*MessageHead) GetMessageID

func (m *MessageHead) GetMessageID() string

func (*MessageHead) GetParentClusterName

func (m *MessageHead) GetParentClusterName() string

func (*MessageHead) ProtoMessage

func (*MessageHead) ProtoMessage()

func (*MessageHead) Reset

func (m *MessageHead) Reset()

func (*MessageHead) String

func (m *MessageHead) String() string

func (*MessageHead) XXX_DiscardUnknown

func (m *MessageHead) XXX_DiscardUnknown()

func (*MessageHead) XXX_Marshal

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

func (*MessageHead) XXX_Merge

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

func (*MessageHead) XXX_Size

func (m *MessageHead) XXX_Size() int

func (*MessageHead) XXX_Unmarshal

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

type ShimRequest

type ShimRequest struct {
	// ParentClusterName is the name of parent cluster.
	ParentClusterName string `protobuf:"bytes,1,opt,name=ParentClusterName,proto3" json:"ParentClusterName,omitempty"`
	// Destination is the target server name.
	Destination string `protobuf:"bytes,2,opt,name=Destination,proto3" json:"Destination,omitempty"`
	// Method is the method need to be performed by target server.
	Method string `protobuf:"bytes,3,opt,name=Method,proto3" json:"Method,omitempty"`
	// URL is the request URL.
	URL string `protobuf:"bytes,4,opt,name=URL,proto3" json:"URL,omitempty"`
	// Body is the request body.
	Body                 string       `protobuf:"bytes,5,opt,name=Body,proto3" json:"Body,omitempty"`
	Head                 *MessageHead `protobuf:"bytes,6,opt,name=Head,proto3" json:"Head,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

ShimRequest is a request to transmit to target server.

func (*ShimRequest) Descriptor

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

func (*ShimRequest) GetBody

func (m *ShimRequest) GetBody() string

func (*ShimRequest) GetDestination

func (m *ShimRequest) GetDestination() string

func (*ShimRequest) GetHead

func (m *ShimRequest) GetHead() *MessageHead

func (*ShimRequest) GetMethod

func (m *ShimRequest) GetMethod() string

func (*ShimRequest) GetParentClusterName

func (m *ShimRequest) GetParentClusterName() string

func (*ShimRequest) GetURL

func (m *ShimRequest) GetURL() string

func (*ShimRequest) ProtoMessage

func (*ShimRequest) ProtoMessage()

func (*ShimRequest) Reset

func (m *ShimRequest) Reset()

func (*ShimRequest) String

func (m *ShimRequest) String() string

func (*ShimRequest) XXX_DiscardUnknown

func (m *ShimRequest) XXX_DiscardUnknown()

func (*ShimRequest) XXX_Marshal

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

func (*ShimRequest) XXX_Merge

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

func (*ShimRequest) XXX_Size

func (m *ShimRequest) XXX_Size() int

func (*ShimRequest) XXX_Unmarshal

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

type ShimResponse

type ShimResponse struct {
	// Timestamp is the timestamp of response.
	Timestamp int64 `protobuf:"varint,1,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"`
	// StatusCode is the status code of response.
	StatusCode int32 `protobuf:"varint,2,opt,name=StatusCode,proto3" json:"StatusCode,omitempty"`
	// Body is the response body.
	Body                 string       `protobuf:"bytes,3,opt,name=Body,proto3" json:"Body,omitempty"`
	Head                 *MessageHead `protobuf:"bytes,4,opt,name=Head,proto3" json:"Head,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

ShimResponse is a response containing result from target server.

func (*ShimResponse) Descriptor

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

func (*ShimResponse) GetBody

func (m *ShimResponse) GetBody() string

func (*ShimResponse) GetHead

func (m *ShimResponse) GetHead() *MessageHead

func (*ShimResponse) GetStatusCode

func (m *ShimResponse) GetStatusCode() int32

func (*ShimResponse) GetTimestamp

func (m *ShimResponse) GetTimestamp() int64

func (*ShimResponse) ProtoMessage

func (*ShimResponse) ProtoMessage()

func (*ShimResponse) Reset

func (m *ShimResponse) Reset()

func (*ShimResponse) String

func (m *ShimResponse) String() string

func (*ShimResponse) XXX_DiscardUnknown

func (m *ShimResponse) XXX_DiscardUnknown()

func (*ShimResponse) XXX_Marshal

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

func (*ShimResponse) XXX_Merge

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

func (*ShimResponse) XXX_Size

func (m *ShimResponse) XXX_Size() int

func (*ShimResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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