common

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Code_name = map[int32]string{
		0: "FATAL",
		1: "LOCKED",
	}
	Code_value = map[string]int32{
		"FATAL":  0,
		"LOCKED": 1,
	}
)

Enum value maps for Code.

View Source
var (
	ContainerDriver_name = map[int32]string{
		0: "CONTAINERD",
		1: "CRI",
	}
	ContainerDriver_value = map[string]int32{
		"CONTAINERD": 0,
		"CRI":        1,
	}
)

Enum value maps for ContainerDriver.

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
var File_common_common_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Code

type Code int32
const (
	Code_FATAL  Code = 0
	Code_LOCKED Code = 1
)

func (Code) Descriptor

func (Code) Descriptor() protoreflect.EnumDescriptor

func (Code) Enum

func (x Code) Enum() *Code

func (Code) EnumDescriptor deprecated

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

Deprecated: Use Code.Descriptor instead.

func (Code) Number

func (x Code) Number() protoreflect.EnumNumber

func (Code) String

func (x Code) String() string

func (Code) Type

func (Code) Type() protoreflect.EnumType

type ContainerDriver

type ContainerDriver int32
const (
	ContainerDriver_CONTAINERD ContainerDriver = 0
	ContainerDriver_CRI        ContainerDriver = 1
)

func (ContainerDriver) Descriptor

func (ContainerDriver) Enum

func (x ContainerDriver) Enum() *ContainerDriver

func (ContainerDriver) EnumDescriptor deprecated

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

Deprecated: Use ContainerDriver.Descriptor instead.

func (ContainerDriver) Number

func (ContainerDriver) String

func (x ContainerDriver) String() string

func (ContainerDriver) Type

type Data

type Data struct {
	Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Bytes    []byte    `protobuf:"bytes,2,opt,name=bytes,proto3" json:"bytes,omitempty"`
	// contains filtered or unexported fields
}

func (*Data) Descriptor deprecated

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

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetBytes

func (x *Data) GetBytes() []byte

func (*Data) GetMetadata

func (x *Data) GetMetadata() *Metadata

func (*Data) MarshalToSizedBufferVT added in v0.12.0

func (m *Data) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Data) MarshalToVT added in v0.12.0

func (m *Data) MarshalToVT(dAtA []byte) (int, error)

func (*Data) MarshalVT added in v0.12.0

func (m *Data) MarshalVT() (dAtA []byte, err error)

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect

func (x *Data) ProtoReflect() protoreflect.Message

func (*Data) Reset

func (x *Data) Reset()

func (*Data) SizeVT added in v0.12.0

func (m *Data) SizeVT() (n int)

func (*Data) String

func (x *Data) String() string

func (*Data) UnmarshalVT added in v0.12.0

func (m *Data) UnmarshalVT(dAtA []byte) error

type DataResponse

type DataResponse struct {
	Messages []*Data `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
	// contains filtered or unexported fields
}

func (*DataResponse) Descriptor deprecated

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

Deprecated: Use DataResponse.ProtoReflect.Descriptor instead.

func (*DataResponse) GetMessages

func (x *DataResponse) GetMessages() []*Data

func (*DataResponse) MarshalToSizedBufferVT added in v0.12.0

func (m *DataResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*DataResponse) MarshalToVT added in v0.12.0

func (m *DataResponse) MarshalToVT(dAtA []byte) (int, error)

func (*DataResponse) MarshalVT added in v0.12.0

func (m *DataResponse) MarshalVT() (dAtA []byte, err error)

func (*DataResponse) ProtoMessage

func (*DataResponse) ProtoMessage()

func (*DataResponse) ProtoReflect

func (x *DataResponse) ProtoReflect() protoreflect.Message

func (*DataResponse) Reset

func (x *DataResponse) Reset()

func (*DataResponse) SizeVT added in v0.12.0

func (m *DataResponse) SizeVT() (n int)

func (*DataResponse) String

func (x *DataResponse) String() string

func (*DataResponse) UnmarshalVT added in v0.12.0

func (m *DataResponse) UnmarshalVT(dAtA []byte) error

type Empty

type Empty struct {
	Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) GetMetadata

func (x *Empty) GetMetadata() *Metadata

func (*Empty) MarshalToSizedBufferVT added in v0.12.0

func (m *Empty) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Empty) MarshalToVT added in v0.12.0

func (m *Empty) MarshalToVT(dAtA []byte) (int, error)

func (*Empty) MarshalVT added in v0.12.0

func (m *Empty) MarshalVT() (dAtA []byte, err error)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) SizeVT added in v0.12.0

func (m *Empty) SizeVT() (n int)

func (*Empty) String

func (x *Empty) String() string

func (*Empty) UnmarshalVT added in v0.12.0

func (m *Empty) UnmarshalVT(dAtA []byte) error

type EmptyResponse

type EmptyResponse struct {
	Messages []*Empty `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
	// contains filtered or unexported fields
}

func (*EmptyResponse) Descriptor deprecated

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

Deprecated: Use EmptyResponse.ProtoReflect.Descriptor instead.

func (*EmptyResponse) GetMessages

func (x *EmptyResponse) GetMessages() []*Empty

func (*EmptyResponse) MarshalToSizedBufferVT added in v0.12.0

func (m *EmptyResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*EmptyResponse) MarshalToVT added in v0.12.0

func (m *EmptyResponse) MarshalToVT(dAtA []byte) (int, error)

func (*EmptyResponse) MarshalVT added in v0.12.0

func (m *EmptyResponse) MarshalVT() (dAtA []byte, err error)

func (*EmptyResponse) ProtoMessage

func (*EmptyResponse) ProtoMessage()

func (*EmptyResponse) ProtoReflect

func (x *EmptyResponse) ProtoReflect() protoreflect.Message

func (*EmptyResponse) Reset

func (x *EmptyResponse) Reset()

func (*EmptyResponse) SizeVT added in v0.12.0

func (m *EmptyResponse) SizeVT() (n int)

func (*EmptyResponse) String

func (x *EmptyResponse) String() string

func (*EmptyResponse) UnmarshalVT added in v0.12.0

func (m *EmptyResponse) UnmarshalVT(dAtA []byte) error

type Error

type Error struct {
	Code    Code         `protobuf:"varint,1,opt,name=code,proto3,enum=common.Code" json:"code,omitempty"`
	Message string       `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Details []*anypb.Any `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"`
	// contains filtered or unexported fields
}

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode

func (x *Error) GetCode() Code

func (*Error) GetDetails

func (x *Error) GetDetails() []*anypb.Any

func (*Error) GetMessage

func (x *Error) GetMessage() string

func (*Error) MarshalToSizedBufferVT added in v0.12.0

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

func (*Error) MarshalToVT added in v0.12.0

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

func (*Error) MarshalVT added in v0.12.0

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

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

func (x *Error) ProtoReflect() protoreflect.Message

func (*Error) Reset

func (x *Error) Reset()

func (*Error) SizeVT added in v0.12.0

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

func (*Error) String

func (x *Error) String() string

func (*Error) UnmarshalVT added in v0.12.0

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

type Metadata

type Metadata struct {

	// hostname of the server response comes from (injected by proxy)
	Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	// error is set if request failed to the upstream (rest of response is
	// undefined)
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// error as gRPC Status
	Status *status.Status `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

Common metadata message nested in all reply message types

func (*Metadata) Descriptor deprecated

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

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetError

func (x *Metadata) GetError() string

func (*Metadata) GetHostname

func (x *Metadata) GetHostname() string

func (*Metadata) GetStatus

func (x *Metadata) GetStatus() *status.Status

func (*Metadata) MarshalToSizedBufferVT added in v0.12.0

func (m *Metadata) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Metadata) MarshalToVT added in v0.12.0

func (m *Metadata) MarshalToVT(dAtA []byte) (int, error)

func (*Metadata) MarshalVT added in v0.12.0

func (m *Metadata) MarshalVT() (dAtA []byte, err error)

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

func (x *Metadata) ProtoReflect() protoreflect.Message

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) SizeVT added in v0.12.0

func (m *Metadata) SizeVT() (n int)

func (*Metadata) String

func (x *Metadata) String() string

func (*Metadata) UnmarshalVT added in v0.12.0

func (m *Metadata) UnmarshalVT(dAtA []byte) error

Jump to

Keyboard shortcuts

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