apiextensions

package
v0.5.4-rc5 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_rancher_opni_pkg_plugins_apis_apiextensions_apiextensions_proto protoreflect.FileDescriptor
View Source
var GatewayAPIExtension_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "apiextensions.GatewayAPIExtension",
	HandlerType: (*GatewayAPIExtensionServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Configure",
			Handler:    _GatewayAPIExtension_Configure_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/rancher/opni/pkg/plugins/apis/apiextensions/apiextensions.proto",
}

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

View Source
var ManagementAPIExtension_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "apiextensions.ManagementAPIExtension",
	HandlerType: (*ManagementAPIExtensionServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Descriptor",
			Handler:    _ManagementAPIExtension_Descriptor_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/rancher/opni/pkg/plugins/apis/apiextensions/apiextensions.proto",
}

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

View Source
var StreamAPIExtension_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "apiextensions.StreamAPIExtension",
	HandlerType: (*StreamAPIExtensionServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Services",
			Handler:    _StreamAPIExtension_Services_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/rancher/opni/pkg/plugins/apis/apiextensions/apiextensions.proto",
}

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

View Source
var UnaryAPIExtension_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "apiextensions.UnaryAPIExtension",
	HandlerType: (*UnaryAPIExtensionServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UnaryDescriptor",
			Handler:    _UnaryAPIExtension_UnaryDescriptor_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/rancher/opni/pkg/plugins/apis/apiextensions/apiextensions.proto",
}

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

Functions

func RegisterGatewayAPIExtensionServer

func RegisterGatewayAPIExtensionServer(s grpc.ServiceRegistrar, srv GatewayAPIExtensionServer)

func RegisterManagementAPIExtensionServer

func RegisterManagementAPIExtensionServer(s grpc.ServiceRegistrar, srv ManagementAPIExtensionServer)

func RegisterStreamAPIExtensionServer added in v0.5.4

func RegisterStreamAPIExtensionServer(s grpc.ServiceRegistrar, srv StreamAPIExtensionServer)

func RegisterUnaryAPIExtensionServer added in v0.5.4

func RegisterUnaryAPIExtensionServer(s grpc.ServiceRegistrar, srv UnaryAPIExtensionServer)

Types

type CertConfig

type CertConfig struct {
	Ca       string `protobuf:"bytes,1,opt,name=ca,proto3" json:"ca,omitempty"`
	CaData   string `protobuf:"bytes,2,opt,name=caData,proto3" json:"caData,omitempty"`
	Cert     string `protobuf:"bytes,3,opt,name=cert,proto3" json:"cert,omitempty"`
	CertData string `protobuf:"bytes,4,opt,name=certData,proto3" json:"certData,omitempty"`
	Key      string `protobuf:"bytes,5,opt,name=key,proto3" json:"key,omitempty"`
	KeyData  string `protobuf:"bytes,6,opt,name=keyData,proto3" json:"keyData,omitempty"`
	// contains filtered or unexported fields
}

func NewCertConfig

func NewCertConfig(certs v1beta1.CertsSpec) *CertConfig

func (*CertConfig) Descriptor deprecated

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

Deprecated: Use CertConfig.ProtoReflect.Descriptor instead.

func (*CertConfig) GetCa

func (x *CertConfig) GetCa() string

func (*CertConfig) GetCaData

func (x *CertConfig) GetCaData() string

func (*CertConfig) GetCert

func (x *CertConfig) GetCert() string

func (*CertConfig) GetCertData

func (x *CertConfig) GetCertData() string

func (*CertConfig) GetKey

func (x *CertConfig) GetKey() string

func (*CertConfig) GetKeyData

func (x *CertConfig) GetKeyData() string

func (*CertConfig) ProtoMessage

func (*CertConfig) ProtoMessage()

func (*CertConfig) ProtoReflect

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

func (*CertConfig) Reset

func (x *CertConfig) Reset()

func (*CertConfig) String

func (x *CertConfig) String() string

func (*CertConfig) TLSConfig

func (tc *CertConfig) TLSConfig() (*tls.Config, error)

type GatewayAPIExtensionClient

type GatewayAPIExtensionClient interface {
	Configure(ctx context.Context, in *CertConfig, opts ...grpc.CallOption) (*GatewayAPIExtensionConfig, error)
}

GatewayAPIExtensionClient is the client API for GatewayAPIExtension 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.

type GatewayAPIExtensionConfig

type GatewayAPIExtensionConfig struct {
	HttpAddr string       `protobuf:"bytes,1,opt,name=httpAddr,proto3" json:"httpAddr,omitempty"`
	Routes   []*RouteInfo `protobuf:"bytes,2,rep,name=routes,proto3" json:"routes,omitempty"`
	// contains filtered or unexported fields
}

func (*GatewayAPIExtensionConfig) Descriptor deprecated

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

Deprecated: Use GatewayAPIExtensionConfig.ProtoReflect.Descriptor instead.

func (*GatewayAPIExtensionConfig) GetHttpAddr

func (x *GatewayAPIExtensionConfig) GetHttpAddr() string

func (*GatewayAPIExtensionConfig) GetRoutes added in v0.5.4

func (x *GatewayAPIExtensionConfig) GetRoutes() []*RouteInfo

func (*GatewayAPIExtensionConfig) ProtoMessage

func (*GatewayAPIExtensionConfig) ProtoMessage()

func (*GatewayAPIExtensionConfig) ProtoReflect

func (*GatewayAPIExtensionConfig) Reset

func (x *GatewayAPIExtensionConfig) Reset()

func (*GatewayAPIExtensionConfig) String

func (x *GatewayAPIExtensionConfig) String() string

type GatewayAPIExtensionServer

type GatewayAPIExtensionServer interface {
	Configure(context.Context, *CertConfig) (*GatewayAPIExtensionConfig, error)
	// contains filtered or unexported methods
}

GatewayAPIExtensionServer is the server API for GatewayAPIExtension service. All implementations must embed UnimplementedGatewayAPIExtensionServer for forward compatibility

type ManagementAPIExtensionClient

type ManagementAPIExtensionClient interface {
	Descriptor(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*descriptorpb.ServiceDescriptorProto, error)
}

ManagementAPIExtensionClient is the client API for ManagementAPIExtension 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.

type ManagementAPIExtensionServer

type ManagementAPIExtensionServer interface {
	Descriptor(context.Context, *emptypb.Empty) (*descriptorpb.ServiceDescriptorProto, error)
	// contains filtered or unexported methods
}

ManagementAPIExtensionServer is the server API for ManagementAPIExtension service. All implementations must embed UnimplementedManagementAPIExtensionServer for forward compatibility

type RouteInfo added in v0.5.4

type RouteInfo struct {
	Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
	Path   string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*RouteInfo) Descriptor deprecated added in v0.5.4

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

Deprecated: Use RouteInfo.ProtoReflect.Descriptor instead.

func (*RouteInfo) GetMethod added in v0.5.4

func (x *RouteInfo) GetMethod() string

func (*RouteInfo) GetPath added in v0.5.4

func (x *RouteInfo) GetPath() string

func (*RouteInfo) ProtoMessage added in v0.5.4

func (*RouteInfo) ProtoMessage()

func (*RouteInfo) ProtoReflect added in v0.5.4

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

func (*RouteInfo) Reset added in v0.5.4

func (x *RouteInfo) Reset()

func (*RouteInfo) String added in v0.5.4

func (x *RouteInfo) String() string

type ServiceDescriptorList added in v0.5.4

type ServiceDescriptorList struct {
	Descriptors []*descriptorpb.ServiceDescriptorProto `protobuf:"bytes,1,rep,name=descriptors,proto3" json:"descriptors,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceDescriptorList) Descriptor deprecated added in v0.5.4

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

Deprecated: Use ServiceDescriptorList.ProtoReflect.Descriptor instead.

func (*ServiceDescriptorList) GetDescriptors added in v0.5.4

func (*ServiceDescriptorList) ProtoMessage added in v0.5.4

func (*ServiceDescriptorList) ProtoMessage()

func (*ServiceDescriptorList) ProtoReflect added in v0.5.4

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

func (*ServiceDescriptorList) Reset added in v0.5.4

func (x *ServiceDescriptorList) Reset()

func (*ServiceDescriptorList) String added in v0.5.4

func (x *ServiceDescriptorList) String() string

type StreamAPIExtensionClient added in v0.5.4

type StreamAPIExtensionClient interface {
	Services(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ServiceDescriptorList, error)
}

StreamAPIExtensionClient is the client API for StreamAPIExtension 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 NewStreamAPIExtensionClient added in v0.5.4

func NewStreamAPIExtensionClient(cc grpc.ClientConnInterface) StreamAPIExtensionClient

type StreamAPIExtensionServer added in v0.5.4

type StreamAPIExtensionServer interface {
	Services(context.Context, *emptypb.Empty) (*ServiceDescriptorList, error)
	// contains filtered or unexported methods
}

StreamAPIExtensionServer is the server API for StreamAPIExtension service. All implementations must embed UnimplementedStreamAPIExtensionServer for forward compatibility

type UnaryAPIExtensionClient added in v0.5.4

type UnaryAPIExtensionClient interface {
	UnaryDescriptor(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*descriptorpb.ServiceDescriptorProto, error)
}

UnaryAPIExtensionClient is the client API for UnaryAPIExtension 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 NewUnaryAPIExtensionClient added in v0.5.4

func NewUnaryAPIExtensionClient(cc grpc.ClientConnInterface) UnaryAPIExtensionClient

type UnaryAPIExtensionServer added in v0.5.4

type UnaryAPIExtensionServer interface {
	UnaryDescriptor(context.Context, *emptypb.Empty) (*descriptorpb.ServiceDescriptorProto, error)
	// contains filtered or unexported methods
}

UnaryAPIExtensionServer is the server API for UnaryAPIExtension service. All implementations must embed UnimplementedUnaryAPIExtensionServer for forward compatibility

type UnimplementedGatewayAPIExtensionServer

type UnimplementedGatewayAPIExtensionServer struct {
}

UnimplementedGatewayAPIExtensionServer must be embedded to have forward compatible implementations.

func (UnimplementedGatewayAPIExtensionServer) Configure

type UnimplementedManagementAPIExtensionServer

type UnimplementedManagementAPIExtensionServer struct {
}

UnimplementedManagementAPIExtensionServer must be embedded to have forward compatible implementations.

func (UnimplementedManagementAPIExtensionServer) Descriptor

type UnimplementedStreamAPIExtensionServer added in v0.5.4

type UnimplementedStreamAPIExtensionServer struct {
}

UnimplementedStreamAPIExtensionServer must be embedded to have forward compatible implementations.

func (UnimplementedStreamAPIExtensionServer) Services added in v0.5.4

type UnimplementedUnaryAPIExtensionServer added in v0.5.4

type UnimplementedUnaryAPIExtensionServer struct {
}

UnimplementedUnaryAPIExtensionServer must be embedded to have forward compatible implementations.

func (UnimplementedUnaryAPIExtensionServer) UnaryDescriptor added in v0.5.4

type UnsafeGatewayAPIExtensionServer

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

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

type UnsafeManagementAPIExtensionServer

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

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

type UnsafeStreamAPIExtensionServer added in v0.5.4

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

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

type UnsafeUnaryAPIExtensionServer added in v0.5.4

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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