opensearch

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Opensearch_GetDetails_FullMethodName = "/opensearch.Opensearch/GetDetails"
)

Variables

View Source
var File_github_com_rancher_opni_plugins_logging_apis_opensearch_opensearch_proto protoreflect.FileDescriptor
View Source
var Opensearch_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "opensearch.Opensearch",
	HandlerType: (*OpensearchServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetDetails",
			Handler:    _Opensearch_GetDetails_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/rancher/opni/plugins/logging/apis/opensearch/opensearch.proto",
}

Opensearch_ServiceDesc is the grpc.ServiceDesc for Opensearch service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterOpensearchServer

func RegisterOpensearchServer(s grpc.ServiceRegistrar, srv OpensearchServer)

Types

type ClusterReference

type ClusterReference struct {
	AuthorizedClusterID string `protobuf:"bytes,1,opt,name=AuthorizedClusterID,proto3" json:"AuthorizedClusterID,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterReference) Descriptor deprecated

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

Deprecated: Use ClusterReference.ProtoReflect.Descriptor instead.

func (*ClusterReference) GetAuthorizedClusterID

func (x *ClusterReference) GetAuthorizedClusterID() string

func (*ClusterReference) ProtoMessage

func (*ClusterReference) ProtoMessage()

func (*ClusterReference) ProtoReflect

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

func (*ClusterReference) Reset

func (x *ClusterReference) Reset()

func (*ClusterReference) String

func (x *ClusterReference) String() string

type OpensearchClient

type OpensearchClient interface {
	GetDetails(ctx context.Context, in *ClusterReference, opts ...grpc.CallOption) (*OpensearchDetails, error)
}

OpensearchClient is the client API for Opensearch service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewOpensearchClient

func NewOpensearchClient(cc grpc.ClientConnInterface) OpensearchClient

type OpensearchDetails

type OpensearchDetails struct {
	Username       string `protobuf:"bytes,1,opt,name=Username,proto3" json:"Username,omitempty"`
	Password       string `protobuf:"bytes,2,opt,name=Password,proto3" json:"Password,omitempty"`
	ExternalURL    string `protobuf:"bytes,3,opt,name=ExternalURL,proto3" json:"ExternalURL,omitempty"`
	TracingEnabled bool   `protobuf:"varint,4,opt,name=TracingEnabled,proto3" json:"TracingEnabled,omitempty"`
	// contains filtered or unexported fields
}

func (*OpensearchDetails) Descriptor deprecated

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

Deprecated: Use OpensearchDetails.ProtoReflect.Descriptor instead.

func (*OpensearchDetails) GetExternalURL

func (x *OpensearchDetails) GetExternalURL() string

func (*OpensearchDetails) GetPassword

func (x *OpensearchDetails) GetPassword() string

func (*OpensearchDetails) GetTracingEnabled

func (x *OpensearchDetails) GetTracingEnabled() bool

func (*OpensearchDetails) GetUsername

func (x *OpensearchDetails) GetUsername() string

func (*OpensearchDetails) ProtoMessage

func (*OpensearchDetails) ProtoMessage()

func (*OpensearchDetails) ProtoReflect

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

func (*OpensearchDetails) Reset

func (x *OpensearchDetails) Reset()

func (*OpensearchDetails) String

func (x *OpensearchDetails) String() string

type OpensearchServer

type OpensearchServer interface {
	GetDetails(context.Context, *ClusterReference) (*OpensearchDetails, error)
	// contains filtered or unexported methods
}

OpensearchServer is the server API for Opensearch service. All implementations must embed UnimplementedOpensearchServer for forward compatibility

type UnimplementedOpensearchServer

type UnimplementedOpensearchServer struct {
}

UnimplementedOpensearchServer must be embedded to have forward compatible implementations.

func (UnimplementedOpensearchServer) GetDetails

type UnsafeOpensearchServer

type UnsafeOpensearchServer interface {
	// contains filtered or unexported methods
}

UnsafeOpensearchServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OpensearchServer will result in compilation errors.

Jump to

Keyboard shortcuts

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