Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterBootstrapServer(s grpc.ServiceRegistrar, srv BootstrapServer)
- type BootstrapAuthRequest
- func (*BootstrapAuthRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BootstrapAuthRequest) GetClientId() string
- func (x *BootstrapAuthRequest) GetClientPubKey() []byte
- func (x *BootstrapAuthRequest) GetFriendlyName() string
- func (*BootstrapAuthRequest) ProtoMessage()
- func (x *BootstrapAuthRequest) ProtoReflect() protoreflect.Message
- func (x *BootstrapAuthRequest) Reset()
- func (x *BootstrapAuthRequest) String() string
- func (h *BootstrapAuthRequest) Validate() error
- type BootstrapAuthResponse
- func (*BootstrapAuthResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BootstrapAuthResponse) GetServerPubKey() []byte
- func (*BootstrapAuthResponse) ProtoMessage()
- func (x *BootstrapAuthResponse) ProtoReflect() protoreflect.Message
- func (x *BootstrapAuthResponse) Reset()
- func (x *BootstrapAuthResponse) String() string
- type BootstrapClient
- type BootstrapJoinRequest
- type BootstrapJoinResponse
- func (*BootstrapJoinResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BootstrapJoinResponse) GetSignatures() map[string][]byte
- func (*BootstrapJoinResponse) ProtoMessage()
- func (x *BootstrapJoinResponse) ProtoReflect() protoreflect.Message
- func (x *BootstrapJoinResponse) Reset()
- func (x *BootstrapJoinResponse) String() string
- type BootstrapServer
- type UnimplementedBootstrapServer
- type UnsafeBootstrapServer
Constants ¶
const ( Bootstrap_Join_FullMethodName = "/bootstrap.v2.Bootstrap/Join" Bootstrap_Auth_FullMethodName = "/bootstrap.v2.Bootstrap/Auth" )
const (
DefaultInClusterFriendlyName = "local"
)
Variables ¶
var Bootstrap_ServiceDesc = grpc.ServiceDesc{ ServiceName: "bootstrap.v2.Bootstrap", HandlerType: (*BootstrapServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Join", Handler: _Bootstrap_Join_Handler, }, { MethodName: "Auth", Handler: _Bootstrap_Auth_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "github.com/rancher/opni/pkg/apis/bootstrap/v2/bootstrap.proto", }
Bootstrap_ServiceDesc is the grpc.ServiceDesc for Bootstrap service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_github_com_rancher_opni_pkg_apis_bootstrap_v2_bootstrap_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBootstrapServer ¶
func RegisterBootstrapServer(s grpc.ServiceRegistrar, srv BootstrapServer)
Types ¶
type BootstrapAuthRequest ¶
type BootstrapAuthRequest struct { ClientId string `protobuf:"bytes,1,opt,name=clientId,proto3" json:"clientId,omitempty"` ClientPubKey []byte `protobuf:"bytes,2,opt,name=clientPubKey,proto3" json:"clientPubKey,omitempty"` FriendlyName *string `protobuf:"bytes,3,opt,name=friendlyName,proto3,oneof" json:"friendlyName,omitempty"` // contains filtered or unexported fields }
func (*BootstrapAuthRequest) Descriptor
deprecated
func (*BootstrapAuthRequest) Descriptor() ([]byte, []int)
Deprecated: Use BootstrapAuthRequest.ProtoReflect.Descriptor instead.
func (*BootstrapAuthRequest) GetClientId ¶ added in v0.8.3
func (x *BootstrapAuthRequest) GetClientId() string
func (*BootstrapAuthRequest) GetClientPubKey ¶
func (x *BootstrapAuthRequest) GetClientPubKey() []byte
func (*BootstrapAuthRequest) GetFriendlyName ¶ added in v0.8.3
func (x *BootstrapAuthRequest) GetFriendlyName() string
func (*BootstrapAuthRequest) ProtoMessage ¶
func (*BootstrapAuthRequest) ProtoMessage()
func (*BootstrapAuthRequest) ProtoReflect ¶
func (x *BootstrapAuthRequest) ProtoReflect() protoreflect.Message
func (*BootstrapAuthRequest) Reset ¶
func (x *BootstrapAuthRequest) Reset()
func (*BootstrapAuthRequest) String ¶
func (x *BootstrapAuthRequest) String() string
func (*BootstrapAuthRequest) Validate ¶
func (h *BootstrapAuthRequest) Validate() error
type BootstrapAuthResponse ¶
type BootstrapAuthResponse struct { ServerPubKey []byte `protobuf:"bytes,1,opt,name=serverPubKey,proto3" json:"serverPubKey,omitempty"` // contains filtered or unexported fields }
func (*BootstrapAuthResponse) Descriptor
deprecated
func (*BootstrapAuthResponse) Descriptor() ([]byte, []int)
Deprecated: Use BootstrapAuthResponse.ProtoReflect.Descriptor instead.
func (*BootstrapAuthResponse) GetServerPubKey ¶
func (x *BootstrapAuthResponse) GetServerPubKey() []byte
func (*BootstrapAuthResponse) ProtoMessage ¶
func (*BootstrapAuthResponse) ProtoMessage()
func (*BootstrapAuthResponse) ProtoReflect ¶
func (x *BootstrapAuthResponse) ProtoReflect() protoreflect.Message
func (*BootstrapAuthResponse) Reset ¶
func (x *BootstrapAuthResponse) Reset()
func (*BootstrapAuthResponse) String ¶
func (x *BootstrapAuthResponse) String() string
type BootstrapClient ¶
type BootstrapClient interface { Join(ctx context.Context, in *BootstrapJoinRequest, opts ...grpc.CallOption) (*BootstrapJoinResponse, error) Auth(ctx context.Context, in *BootstrapAuthRequest, opts ...grpc.CallOption) (*BootstrapAuthResponse, error) }
BootstrapClient is the client API for Bootstrap 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 NewBootstrapClient ¶
func NewBootstrapClient(cc grpc.ClientConnInterface) BootstrapClient
type BootstrapJoinRequest ¶
type BootstrapJoinRequest struct {
// contains filtered or unexported fields
}
func (*BootstrapJoinRequest) Descriptor
deprecated
func (*BootstrapJoinRequest) Descriptor() ([]byte, []int)
Deprecated: Use BootstrapJoinRequest.ProtoReflect.Descriptor instead.
func (*BootstrapJoinRequest) ProtoMessage ¶
func (*BootstrapJoinRequest) ProtoMessage()
func (*BootstrapJoinRequest) ProtoReflect ¶
func (x *BootstrapJoinRequest) ProtoReflect() protoreflect.Message
func (*BootstrapJoinRequest) Reset ¶
func (x *BootstrapJoinRequest) Reset()
func (*BootstrapJoinRequest) String ¶
func (x *BootstrapJoinRequest) String() string
type BootstrapJoinResponse ¶
type BootstrapJoinResponse struct { Signatures map[string][]byte `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*BootstrapJoinResponse) Descriptor
deprecated
func (*BootstrapJoinResponse) Descriptor() ([]byte, []int)
Deprecated: Use BootstrapJoinResponse.ProtoReflect.Descriptor instead.
func (*BootstrapJoinResponse) GetSignatures ¶
func (x *BootstrapJoinResponse) GetSignatures() map[string][]byte
func (*BootstrapJoinResponse) ProtoMessage ¶
func (*BootstrapJoinResponse) ProtoMessage()
func (*BootstrapJoinResponse) ProtoReflect ¶
func (x *BootstrapJoinResponse) ProtoReflect() protoreflect.Message
func (*BootstrapJoinResponse) Reset ¶
func (x *BootstrapJoinResponse) Reset()
func (*BootstrapJoinResponse) String ¶
func (x *BootstrapJoinResponse) String() string
type BootstrapServer ¶
type BootstrapServer interface { Join(context.Context, *BootstrapJoinRequest) (*BootstrapJoinResponse, error) Auth(context.Context, *BootstrapAuthRequest) (*BootstrapAuthResponse, error) // contains filtered or unexported methods }
BootstrapServer is the server API for Bootstrap service. All implementations must embed UnimplementedBootstrapServer for forward compatibility
type UnimplementedBootstrapServer ¶
type UnimplementedBootstrapServer struct { }
UnimplementedBootstrapServer must be embedded to have forward compatible implementations.
func (UnimplementedBootstrapServer) Auth ¶
func (UnimplementedBootstrapServer) Auth(context.Context, *BootstrapAuthRequest) (*BootstrapAuthResponse, error)
func (UnimplementedBootstrapServer) Join ¶
func (UnimplementedBootstrapServer) Join(context.Context, *BootstrapJoinRequest) (*BootstrapJoinResponse, error)
type UnsafeBootstrapServer ¶
type UnsafeBootstrapServer interface {
// contains filtered or unexported methods
}
UnsafeBootstrapServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BootstrapServer will result in compilation errors.