v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 9

Documentation

Index

Constants

View Source
const (
	Version = "v1alpha1"
)

Variables

View Source
var (
	ErrInvalidLengthApi        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowApi          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupApi = fmt.Errorf("proto: unexpected end of group")
)
View Source
var FieldType_name = map[int32]string{
	0: "Spec",
	1: "Status",
	2: "Metadata",
}
View Source
var FieldType_value = map[string]int32{
	"Spec":     0,
	"Status":   1,
	"Metadata": 2,
}
View Source
var SupportedVersions = [...]string{Version}

Functions

func RegisterReporterPluginServer

func RegisterReporterPluginServer(s *grpc.Server, srv ReporterPluginServer)

Types

type Empty

type Empty struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Empty) Descriptor

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

func (*Empty) Marshal

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

func (*Empty) MarshalTo

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

func (*Empty) MarshalToSizedBuffer

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) Size

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

func (*Empty) String

func (this *Empty) String() string

func (*Empty) Unmarshal

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

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

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

func (*Empty) XXX_Merge

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

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

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

type FieldType

type FieldType int32
const (
	FieldType_Spec     FieldType = 0
	FieldType_Status   FieldType = 1
	FieldType_Metadata FieldType = 2
)

func (FieldType) EnumDescriptor

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

func (FieldType) String

func (x FieldType) String() string

type GetReportContentResponse

type GetReportContentResponse struct {
	Content              []*ReportContent `protobuf:"bytes,1,rep,name=content,proto3" json:"content,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*GetReportContentResponse) Descriptor

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

func (*GetReportContentResponse) GetContent

func (m *GetReportContentResponse) GetContent() []*ReportContent

func (*GetReportContentResponse) Marshal

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

func (*GetReportContentResponse) MarshalTo

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

func (*GetReportContentResponse) MarshalToSizedBuffer

func (m *GetReportContentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetReportContentResponse) ProtoMessage

func (*GetReportContentResponse) ProtoMessage()

func (*GetReportContentResponse) Reset

func (m *GetReportContentResponse) Reset()

func (*GetReportContentResponse) Size

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

func (*GetReportContentResponse) String

func (this *GetReportContentResponse) String() string

func (*GetReportContentResponse) Unmarshal

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

func (*GetReportContentResponse) XXX_DiscardUnknown

func (m *GetReportContentResponse) XXX_DiscardUnknown()

func (*GetReportContentResponse) XXX_Marshal

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

func (*GetReportContentResponse) XXX_Merge

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

func (*GetReportContentResponse) XXX_Size

func (m *GetReportContentResponse) XXX_Size() int

func (*GetReportContentResponse) XXX_Unmarshal

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

type ReportContent

type ReportContent struct {
	GroupVersionKind     *v1.GroupVersionKind `protobuf:"bytes,1,opt,name=groupVersionKind,proto3" json:"groupVersionKind,omitempty"`
	Field                []*ReportField       `protobuf:"bytes,2,rep,name=field,proto3" json:"field,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*ReportContent) Descriptor

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

func (*ReportContent) GetField

func (m *ReportContent) GetField() []*ReportField

func (*ReportContent) GetGroupVersionKind

func (m *ReportContent) GetGroupVersionKind() *v1.GroupVersionKind

func (*ReportContent) Marshal

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

func (*ReportContent) MarshalTo

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

func (*ReportContent) MarshalToSizedBuffer

func (m *ReportContent) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ReportContent) ProtoMessage

func (*ReportContent) ProtoMessage()

func (*ReportContent) Reset

func (m *ReportContent) Reset()

func (*ReportContent) Size

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

func (*ReportContent) String

func (this *ReportContent) String() string

func (*ReportContent) Unmarshal

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

func (*ReportContent) XXX_DiscardUnknown

func (m *ReportContent) XXX_DiscardUnknown()

func (*ReportContent) XXX_Marshal

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

func (*ReportContent) XXX_Merge

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

func (*ReportContent) XXX_Size

func (m *ReportContent) XXX_Size() int

func (*ReportContent) XXX_Unmarshal

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

type ReportField

type ReportField struct {
	FieldType            FieldType `protobuf:"varint,1,opt,name=fieldType,proto3,enum=reporterplugin.v1alpha1.FieldType" json:"fieldType,omitempty"`
	FieldName            string    `protobuf:"bytes,2,opt,name=fieldName,proto3" json:"fieldName,omitempty"`
	Value                []byte    `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*ReportField) Descriptor

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

func (*ReportField) GetFieldName

func (m *ReportField) GetFieldName() string

func (*ReportField) GetFieldType

func (m *ReportField) GetFieldType() FieldType

func (*ReportField) GetValue

func (m *ReportField) GetValue() []byte

func (*ReportField) Marshal

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

func (*ReportField) MarshalTo

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

func (*ReportField) MarshalToSizedBuffer

func (m *ReportField) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ReportField) ProtoMessage

func (*ReportField) ProtoMessage()

func (*ReportField) Reset

func (m *ReportField) Reset()

func (*ReportField) Size

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

func (*ReportField) String

func (this *ReportField) String() string

func (*ReportField) Unmarshal

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

func (*ReportField) XXX_DiscardUnknown

func (m *ReportField) XXX_DiscardUnknown()

func (*ReportField) XXX_Marshal

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

func (*ReportField) XXX_Merge

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

func (*ReportField) XXX_Size

func (m *ReportField) XXX_Size() int

func (*ReportField) XXX_Unmarshal

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

type ReporterPluginClient

type ReporterPluginClient interface {
	GetReportContent(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetReportContentResponse, error)
	ListAndWatchReportContent(ctx context.Context, in *Empty, opts ...grpc.CallOption) (ReporterPlugin_ListAndWatchReportContentClient, error)
}

ReporterPluginClient is the client API for ReporterPlugin service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewReporterPluginClient

func NewReporterPluginClient(cc *grpc.ClientConn) ReporterPluginClient

type ReporterPluginServer

type ReporterPluginServer interface {
	GetReportContent(context.Context, *Empty) (*GetReportContentResponse, error)
	ListAndWatchReportContent(*Empty, ReporterPlugin_ListAndWatchReportContentServer) error
}

ReporterPluginServer is the server API for ReporterPlugin service.

type ReporterPlugin_ListAndWatchReportContentClient

type ReporterPlugin_ListAndWatchReportContentClient interface {
	Recv() (*GetReportContentResponse, error)
	grpc.ClientStream
}

type ReporterPlugin_ListAndWatchReportContentServer

type ReporterPlugin_ListAndWatchReportContentServer interface {
	Send(*GetReportContentResponse) error
	grpc.ServerStream
}

type UnimplementedReporterPluginServer

type UnimplementedReporterPluginServer struct {
}

UnimplementedReporterPluginServer can be embedded to have forward compatible implementations.

func (*UnimplementedReporterPluginServer) GetReportContent

func (*UnimplementedReporterPluginServer) ListAndWatchReportContent

Jump to

Keyboard shortcuts

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