Documentation ¶
Index ¶
- Variables
- func RegisterGatewayAPIExtensionServer(s grpc.ServiceRegistrar, srv GatewayAPIExtensionServer)
- func RegisterManagementAPIExtensionServer(s grpc.ServiceRegistrar, srv ManagementAPIExtensionServer)
- func RegisterStreamAPIExtensionServer(s grpc.ServiceRegistrar, srv StreamAPIExtensionServer)
- func RegisterUnaryAPIExtensionServer(s grpc.ServiceRegistrar, srv UnaryAPIExtensionServer)
- type CertConfig
- func (*CertConfig) Descriptor() ([]byte, []int)deprecated
- func (x *CertConfig) GetCa() string
- func (x *CertConfig) GetCaData() string
- func (x *CertConfig) GetCert() string
- func (x *CertConfig) GetCertData() string
- func (x *CertConfig) GetKey() string
- func (x *CertConfig) GetKeyData() string
- func (*CertConfig) ProtoMessage()
- func (x *CertConfig) ProtoReflect() protoreflect.Message
- func (x *CertConfig) Reset()
- func (x *CertConfig) String() string
- func (tc *CertConfig) TLSConfig() (*tls.Config, error)
- type GatewayAPIExtensionClient
- type GatewayAPIExtensionConfig
- func (*GatewayAPIExtensionConfig) Descriptor() ([]byte, []int)deprecated
- func (x *GatewayAPIExtensionConfig) GetHttpAddr() string
- func (x *GatewayAPIExtensionConfig) GetRoutes() []*RouteInfo
- func (*GatewayAPIExtensionConfig) ProtoMessage()
- func (x *GatewayAPIExtensionConfig) ProtoReflect() protoreflect.Message
- func (x *GatewayAPIExtensionConfig) Reset()
- func (x *GatewayAPIExtensionConfig) String() string
- type GatewayAPIExtensionServer
- type ManagementAPIExtensionClient
- type ManagementAPIExtensionServer
- type RouteInfo
- type ServiceDescriptorList
- func (*ServiceDescriptorList) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceDescriptorList) GetDescriptors() []*descriptorpb.ServiceDescriptorProto
- func (*ServiceDescriptorList) ProtoMessage()
- func (x *ServiceDescriptorList) ProtoReflect() protoreflect.Message
- func (x *ServiceDescriptorList) Reset()
- func (x *ServiceDescriptorList) String() string
- type StreamAPIExtensionClient
- type StreamAPIExtensionServer
- type UnaryAPIExtensionClient
- type UnaryAPIExtensionServer
- type UnimplementedGatewayAPIExtensionServer
- type UnimplementedManagementAPIExtensionServer
- type UnimplementedStreamAPIExtensionServer
- type UnimplementedUnaryAPIExtensionServer
- type UnsafeGatewayAPIExtensionServer
- type UnsafeManagementAPIExtensionServer
- type UnsafeStreamAPIExtensionServer
- type UnsafeUnaryAPIExtensionServer
Constants ¶
This section is empty.
Variables ¶
var File_github_com_rancher_opni_pkg_plugins_apis_apiextensions_apiextensions_proto protoreflect.FileDescriptor
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)
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)
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)
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
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.
func NewGatewayAPIExtensionClient ¶
func NewGatewayAPIExtensionClient(cc grpc.ClientConnInterface) GatewayAPIExtensionClient
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 (x *GatewayAPIExtensionConfig) ProtoReflect() protoreflect.Message
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.
func NewManagementAPIExtensionClient ¶
func NewManagementAPIExtensionClient(cc grpc.ClientConnInterface) ManagementAPIExtensionClient
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) ProtoMessage ¶ added in v0.5.4
func (*RouteInfo) ProtoMessage()
func (*RouteInfo) ProtoReflect ¶ added in v0.5.4
func (x *RouteInfo) ProtoReflect() protoreflect.Message
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 (x *ServiceDescriptorList) GetDescriptors() []*descriptorpb.ServiceDescriptorProto
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 ¶
func (UnimplementedGatewayAPIExtensionServer) Configure(context.Context, *CertConfig) (*GatewayAPIExtensionConfig, error)
type UnimplementedManagementAPIExtensionServer ¶
type UnimplementedManagementAPIExtensionServer struct { }
UnimplementedManagementAPIExtensionServer must be embedded to have forward compatible implementations.
func (UnimplementedManagementAPIExtensionServer) Descriptor ¶
func (UnimplementedManagementAPIExtensionServer) Descriptor(context.Context, *emptypb.Empty) (*descriptorpb.ServiceDescriptorProto, error)
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
func (UnimplementedStreamAPIExtensionServer) Services(context.Context, *emptypb.Empty) (*ServiceDescriptorList, error)
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
func (UnimplementedUnaryAPIExtensionServer) UnaryDescriptor(context.Context, *emptypb.Empty) (*descriptorpb.ServiceDescriptorProto, error)
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.