apipb

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_gatekeeper_proto protoreflect.FileDescriptor
View Source
var GatekeeperService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.GatekeeperService",
	HandlerType: (*GatekeeperServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Allow",
			Handler:    _GatekeeperService_Allow_Handler,
		},
		{
			MethodName: "ResetLogin",
			Handler:    _GatekeeperService_ResetLogin_Handler,
		},
		{
			MethodName: "ResetIP",
			Handler:    _GatekeeperService_ResetIP_Handler,
		},
		{
			MethodName: "WhitelistAdd",
			Handler:    _GatekeeperService_WhitelistAdd_Handler,
		},
		{
			MethodName: "WhitelistRemove",
			Handler:    _GatekeeperService_WhitelistRemove_Handler,
		},
		{
			MethodName: "BlacklistAdd",
			Handler:    _GatekeeperService_BlacklistAdd_Handler,
		},
		{
			MethodName: "BlacklistRemove",
			Handler:    _GatekeeperService_BlacklistRemove_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "gatekeeper.proto",
}

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

Functions

func RegisterGatekeeperServiceServer

func RegisterGatekeeperServiceServer(s grpc.ServiceRegistrar, srv GatekeeperServiceServer)

Types

type AllowRequest

type AllowRequest struct {
	Login    string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	Ip       string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
	// contains filtered or unexported fields
}

func (*AllowRequest) Descriptor deprecated

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

Deprecated: Use AllowRequest.ProtoReflect.Descriptor instead.

func (*AllowRequest) GetIp

func (x *AllowRequest) GetIp() string

func (*AllowRequest) GetLogin

func (x *AllowRequest) GetLogin() string

func (*AllowRequest) GetPassword

func (x *AllowRequest) GetPassword() string

func (*AllowRequest) ProtoMessage

func (*AllowRequest) ProtoMessage()

func (*AllowRequest) ProtoReflect

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

func (*AllowRequest) Reset

func (x *AllowRequest) Reset()

func (*AllowRequest) String

func (x *AllowRequest) String() string

type AllowResponse

type AllowResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*AllowResponse) Descriptor deprecated

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

Deprecated: Use AllowResponse.ProtoReflect.Descriptor instead.

func (*AllowResponse) GetOk

func (x *AllowResponse) GetOk() bool

func (*AllowResponse) ProtoMessage

func (*AllowResponse) ProtoMessage()

func (*AllowResponse) ProtoReflect

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

func (*AllowResponse) Reset

func (x *AllowResponse) Reset()

func (*AllowResponse) String

func (x *AllowResponse) String() string

type BlacklistAddRequest

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

func (*BlacklistAddRequest) Descriptor deprecated

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

Deprecated: Use BlacklistAddRequest.ProtoReflect.Descriptor instead.

func (*BlacklistAddRequest) GetSubnet

func (x *BlacklistAddRequest) GetSubnet() string

func (*BlacklistAddRequest) ProtoMessage

func (*BlacklistAddRequest) ProtoMessage()

func (*BlacklistAddRequest) ProtoReflect

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

func (*BlacklistAddRequest) Reset

func (x *BlacklistAddRequest) Reset()

func (*BlacklistAddRequest) String

func (x *BlacklistAddRequest) String() string

type BlacklistAddResponse

type BlacklistAddResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*BlacklistAddResponse) Descriptor deprecated

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

Deprecated: Use BlacklistAddResponse.ProtoReflect.Descriptor instead.

func (*BlacklistAddResponse) GetOk

func (x *BlacklistAddResponse) GetOk() bool

func (*BlacklistAddResponse) ProtoMessage

func (*BlacklistAddResponse) ProtoMessage()

func (*BlacklistAddResponse) ProtoReflect

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

func (*BlacklistAddResponse) Reset

func (x *BlacklistAddResponse) Reset()

func (*BlacklistAddResponse) String

func (x *BlacklistAddResponse) String() string

type BlacklistRemoveRequest

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

func (*BlacklistRemoveRequest) Descriptor deprecated

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

Deprecated: Use BlacklistRemoveRequest.ProtoReflect.Descriptor instead.

func (*BlacklistRemoveRequest) GetSubnet

func (x *BlacklistRemoveRequest) GetSubnet() string

func (*BlacklistRemoveRequest) ProtoMessage

func (*BlacklistRemoveRequest) ProtoMessage()

func (*BlacklistRemoveRequest) ProtoReflect

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

func (*BlacklistRemoveRequest) Reset

func (x *BlacklistRemoveRequest) Reset()

func (*BlacklistRemoveRequest) String

func (x *BlacklistRemoveRequest) String() string

type BlacklistRemoveResponse

type BlacklistRemoveResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*BlacklistRemoveResponse) Descriptor deprecated

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

Deprecated: Use BlacklistRemoveResponse.ProtoReflect.Descriptor instead.

func (*BlacklistRemoveResponse) GetOk

func (x *BlacklistRemoveResponse) GetOk() bool

func (*BlacklistRemoveResponse) ProtoMessage

func (*BlacklistRemoveResponse) ProtoMessage()

func (*BlacklistRemoveResponse) ProtoReflect

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

func (*BlacklistRemoveResponse) Reset

func (x *BlacklistRemoveResponse) Reset()

func (*BlacklistRemoveResponse) String

func (x *BlacklistRemoveResponse) String() string

type GatekeeperServiceClient

type GatekeeperServiceClient interface {
	Allow(ctx context.Context, in *AllowRequest, opts ...grpc.CallOption) (*AllowResponse, error)
	ResetLogin(ctx context.Context, in *ResetLoginRequest, opts ...grpc.CallOption) (*ResetLoginResponse, error)
	ResetIP(ctx context.Context, in *ResetIPRequest, opts ...grpc.CallOption) (*ResetIPResponse, error)
	WhitelistAdd(ctx context.Context, in *WhitelistAddRequest, opts ...grpc.CallOption) (*WhitelistAddResponse, error)
	WhitelistRemove(ctx context.Context, in *WhitelistRemoveRequest, opts ...grpc.CallOption) (*WhitelistRemoveResponse, error)
	BlacklistAdd(ctx context.Context, in *BlacklistAddRequest, opts ...grpc.CallOption) (*BlacklistAddResponse, error)
	BlacklistRemove(ctx context.Context, in *BlacklistRemoveRequest, opts ...grpc.CallOption) (*BlacklistRemoveResponse, error)
}

GatekeeperServiceClient is the client API for GatekeeperService 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 GatekeeperServiceServer

GatekeeperServiceServer is the server API for GatekeeperService service. All implementations must embed UnimplementedGatekeeperServiceServer for forward compatibility

type ResetIPRequest

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

func (*ResetIPRequest) Descriptor deprecated

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

Deprecated: Use ResetIPRequest.ProtoReflect.Descriptor instead.

func (*ResetIPRequest) GetIp

func (x *ResetIPRequest) GetIp() string

func (*ResetIPRequest) ProtoMessage

func (*ResetIPRequest) ProtoMessage()

func (*ResetIPRequest) ProtoReflect

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

func (*ResetIPRequest) Reset

func (x *ResetIPRequest) Reset()

func (*ResetIPRequest) String

func (x *ResetIPRequest) String() string

type ResetIPResponse

type ResetIPResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*ResetIPResponse) Descriptor deprecated

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

Deprecated: Use ResetIPResponse.ProtoReflect.Descriptor instead.

func (*ResetIPResponse) GetOk

func (x *ResetIPResponse) GetOk() bool

func (*ResetIPResponse) ProtoMessage

func (*ResetIPResponse) ProtoMessage()

func (*ResetIPResponse) ProtoReflect

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

func (*ResetIPResponse) Reset

func (x *ResetIPResponse) Reset()

func (*ResetIPResponse) String

func (x *ResetIPResponse) String() string

type ResetLoginRequest

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

func (*ResetLoginRequest) Descriptor deprecated

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

Deprecated: Use ResetLoginRequest.ProtoReflect.Descriptor instead.

func (*ResetLoginRequest) GetLogin

func (x *ResetLoginRequest) GetLogin() string

func (*ResetLoginRequest) ProtoMessage

func (*ResetLoginRequest) ProtoMessage()

func (*ResetLoginRequest) ProtoReflect

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

func (*ResetLoginRequest) Reset

func (x *ResetLoginRequest) Reset()

func (*ResetLoginRequest) String

func (x *ResetLoginRequest) String() string

type ResetLoginResponse

type ResetLoginResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*ResetLoginResponse) Descriptor deprecated

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

Deprecated: Use ResetLoginResponse.ProtoReflect.Descriptor instead.

func (*ResetLoginResponse) GetOk

func (x *ResetLoginResponse) GetOk() bool

func (*ResetLoginResponse) ProtoMessage

func (*ResetLoginResponse) ProtoMessage()

func (*ResetLoginResponse) ProtoReflect

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

func (*ResetLoginResponse) Reset

func (x *ResetLoginResponse) Reset()

func (*ResetLoginResponse) String

func (x *ResetLoginResponse) String() string

type UnimplementedGatekeeperServiceServer

type UnimplementedGatekeeperServiceServer struct {
}

UnimplementedGatekeeperServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedGatekeeperServiceServer) Allow

func (UnimplementedGatekeeperServiceServer) BlacklistAdd

func (UnimplementedGatekeeperServiceServer) BlacklistRemove

func (UnimplementedGatekeeperServiceServer) ResetIP

func (UnimplementedGatekeeperServiceServer) ResetLogin

func (UnimplementedGatekeeperServiceServer) WhitelistAdd

func (UnimplementedGatekeeperServiceServer) WhitelistRemove

type UnsafeGatekeeperServiceServer

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

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

type WhitelistAddRequest

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

func (*WhitelistAddRequest) Descriptor deprecated

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

Deprecated: Use WhitelistAddRequest.ProtoReflect.Descriptor instead.

func (*WhitelistAddRequest) GetSubnet

func (x *WhitelistAddRequest) GetSubnet() string

func (*WhitelistAddRequest) ProtoMessage

func (*WhitelistAddRequest) ProtoMessage()

func (*WhitelistAddRequest) ProtoReflect

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

func (*WhitelistAddRequest) Reset

func (x *WhitelistAddRequest) Reset()

func (*WhitelistAddRequest) String

func (x *WhitelistAddRequest) String() string

type WhitelistAddResponse

type WhitelistAddResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*WhitelistAddResponse) Descriptor deprecated

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

Deprecated: Use WhitelistAddResponse.ProtoReflect.Descriptor instead.

func (*WhitelistAddResponse) GetOk

func (x *WhitelistAddResponse) GetOk() bool

func (*WhitelistAddResponse) ProtoMessage

func (*WhitelistAddResponse) ProtoMessage()

func (*WhitelistAddResponse) ProtoReflect

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

func (*WhitelistAddResponse) Reset

func (x *WhitelistAddResponse) Reset()

func (*WhitelistAddResponse) String

func (x *WhitelistAddResponse) String() string

type WhitelistRemoveRequest

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

func (*WhitelistRemoveRequest) Descriptor deprecated

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

Deprecated: Use WhitelistRemoveRequest.ProtoReflect.Descriptor instead.

func (*WhitelistRemoveRequest) GetSubnet

func (x *WhitelistRemoveRequest) GetSubnet() string

func (*WhitelistRemoveRequest) ProtoMessage

func (*WhitelistRemoveRequest) ProtoMessage()

func (*WhitelistRemoveRequest) ProtoReflect

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

func (*WhitelistRemoveRequest) Reset

func (x *WhitelistRemoveRequest) Reset()

func (*WhitelistRemoveRequest) String

func (x *WhitelistRemoveRequest) String() string

type WhitelistRemoveResponse

type WhitelistRemoveResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*WhitelistRemoveResponse) Descriptor deprecated

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

Deprecated: Use WhitelistRemoveResponse.ProtoReflect.Descriptor instead.

func (*WhitelistRemoveResponse) GetOk

func (x *WhitelistRemoveResponse) GetOk() bool

func (*WhitelistRemoveResponse) ProtoMessage

func (*WhitelistRemoveResponse) ProtoMessage()

func (*WhitelistRemoveResponse) ProtoReflect

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

func (*WhitelistRemoveResponse) Reset

func (x *WhitelistRemoveResponse) Reset()

func (*WhitelistRemoveResponse) String

func (x *WhitelistRemoveResponse) String() string

Jump to

Keyboard shortcuts

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