pb

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: AGPL-3.0 Imports: 16 Imported by: 3

README

OVPM API

This package holds gRPC definition of the OVPM API. And there is also a REST API implementation that is generated automatically from gRPC proto files as well. REST APIs are automatically documented with swagger.

File Description
user.proto gRPC Service Definition for User Service
network.proto gRPC Service Definition for Network Service
vpn.proto gRPC Service Definition for VPN Service
network.swagger.json Swagger Specification for the Network REST API
user.swagger.json Swagger Specification for the User REST API
vpn.swagger.json Swagger Specification for the VPN REST API

Documentation

Overview

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	UserUpdateRequest_GWPref_name = map[int32]string{
		0: "NOPREF",
		1: "NOGW",
		2: "GW",
	}
	UserUpdateRequest_GWPref_value = map[string]int32{
		"NOPREF": 0,
		"NOGW":   1,
		"GW":     2,
	}
)

Enum value maps for UserUpdateRequest_GWPref.

View Source
var (
	UserUpdateRequest_StaticPref_name = map[int32]string{
		0: "NOPREFSTATIC",
		1: "NOSTATIC",
		2: "STATIC",
	}
	UserUpdateRequest_StaticPref_value = map[string]int32{
		"NOPREFSTATIC": 0,
		"NOSTATIC":     1,
		"STATIC":       2,
	}
)

Enum value maps for UserUpdateRequest_StaticPref.

View Source
var (
	UserUpdateRequest_AdminPref_name = map[int32]string{
		0: "NOPREFADMIN",
		1: "NOADMIN",
		2: "ADMIN",
	}
	UserUpdateRequest_AdminPref_value = map[string]int32{
		"NOPREFADMIN": 0,
		"NOADMIN":     1,
		"ADMIN":       2,
	}
)

Enum value maps for UserUpdateRequest_AdminPref.

View Source
var (
	VPNProto_name = map[int32]string{
		0: "NOPREF",
		1: "UDP",
		2: "TCP",
	}
	VPNProto_value = map[string]int32{
		"NOPREF": 0,
		"UDP":    1,
		"TCP":    2,
	}
)

Enum value maps for VPNProto.

View Source
var (
	VPNLZOPref_name = map[int32]string{
		0: "USE_LZO_NOPREF",
		1: "USE_LZO_ENABLE",
		3: "USE_LZO_DISABLE",
	}
	VPNLZOPref_value = map[string]int32{
		"USE_LZO_NOPREF":  0,
		"USE_LZO_ENABLE":  1,
		"USE_LZO_DISABLE": 3,
	}
)

Enum value maps for VPNLZOPref.

View Source
var AuthService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.AuthService",
	HandlerType: (*AuthServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Status",
			Handler:    _AuthService_Status_Handler,
		},
		{
			MethodName: "Authenticate",
			Handler:    _AuthService_Authenticate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "auth.proto",
}

AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService 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 File_network_proto protoreflect.FileDescriptor
View Source
var NetworkService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.NetworkService",
	HandlerType: (*NetworkServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _NetworkService_Create_Handler,
		},
		{
			MethodName: "List",
			Handler:    _NetworkService_List_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _NetworkService_Delete_Handler,
		},
		{
			MethodName: "GetAllTypes",
			Handler:    _NetworkService_GetAllTypes_Handler,
		},
		{
			MethodName: "GetAssociatedUsers",
			Handler:    _NetworkService_GetAssociatedUsers_Handler,
		},
		{
			MethodName: "Associate",
			Handler:    _NetworkService_Associate_Handler,
		},
		{
			MethodName: "Dissociate",
			Handler:    _NetworkService_Dissociate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "network.proto",
}

NetworkService_ServiceDesc is the grpc.ServiceDesc for NetworkService 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 UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _UserService_List_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _UserService_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _UserService_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _UserService_Delete_Handler,
		},
		{
			MethodName: "Renew",
			Handler:    _UserService_Renew_Handler,
		},
		{
			MethodName: "GenConfig",
			Handler:    _UserService_GenConfig_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "user.proto",
}

UserService_ServiceDesc is the grpc.ServiceDesc for UserService 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 VPNService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.VPNService",
	HandlerType: (*VPNServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Status",
			Handler:    _VPNService_Status_Handler,
		},
		{
			MethodName: "Init",
			Handler:    _VPNService_Init_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _VPNService_Update_Handler,
		},
		{
			MethodName: "Restart",
			Handler:    _VPNService_Restart_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "vpn.proto",
}

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

Functions

func RegisterAuthServiceHandler

func RegisterAuthServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAuthServiceHandler registers the http handlers for service AuthService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAuthServiceHandlerClient added in v0.2.5

func RegisterAuthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthServiceClient) error

RegisterAuthServiceHandlerClient registers the http handlers for service AuthService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthServiceClient" to call the correct interceptors.

func RegisterAuthServiceHandlerFromEndpoint

func RegisterAuthServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAuthServiceHandlerFromEndpoint is same as RegisterAuthServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAuthServiceHandlerServer added in v0.2.11

func RegisterAuthServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServiceServer) error

RegisterAuthServiceHandlerServer registers the http handlers for service AuthService to "mux". UnaryRPC :call AuthServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAuthServiceHandlerFromEndpoint instead.

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)

func RegisterNetworkServiceHandler

func RegisterNetworkServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterNetworkServiceHandler registers the http handlers for service NetworkService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterNetworkServiceHandlerClient added in v0.2.5

func RegisterNetworkServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NetworkServiceClient) error

RegisterNetworkServiceHandlerClient registers the http handlers for service NetworkService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "NetworkServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "NetworkServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "NetworkServiceClient" to call the correct interceptors.

func RegisterNetworkServiceHandlerFromEndpoint

func RegisterNetworkServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterNetworkServiceHandlerFromEndpoint is same as RegisterNetworkServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterNetworkServiceHandlerServer added in v0.2.11

func RegisterNetworkServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NetworkServiceServer) error

RegisterNetworkServiceHandlerServer registers the http handlers for service NetworkService to "mux". UnaryRPC :call NetworkServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterNetworkServiceHandlerFromEndpoint instead.

func RegisterNetworkServiceServer

func RegisterNetworkServiceServer(s grpc.ServiceRegistrar, srv NetworkServiceServer)

func RegisterUserServiceHandler

func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterUserServiceHandler registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterUserServiceHandlerClient added in v0.2.5

func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error

RegisterUserServiceHandlerClient registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserServiceClient" to call the correct interceptors.

func RegisterUserServiceHandlerFromEndpoint

func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterUserServiceHandlerFromEndpoint is same as RegisterUserServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterUserServiceHandlerServer added in v0.2.11

func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error

RegisterUserServiceHandlerServer registers the http handlers for service UserService to "mux". UnaryRPC :call UserServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserServiceHandlerFromEndpoint instead.

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

func RegisterVPNServiceHandler

func RegisterVPNServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterVPNServiceHandler registers the http handlers for service VPNService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterVPNServiceHandlerClient added in v0.2.5

func RegisterVPNServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client VPNServiceClient) error

RegisterVPNServiceHandlerClient registers the http handlers for service VPNService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "VPNServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "VPNServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "VPNServiceClient" to call the correct interceptors.

func RegisterVPNServiceHandlerFromEndpoint

func RegisterVPNServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterVPNServiceHandlerFromEndpoint is same as RegisterVPNServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterVPNServiceHandlerServer added in v0.2.11

func RegisterVPNServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server VPNServiceServer) error

RegisterVPNServiceHandlerServer registers the http handlers for service VPNService to "mux". UnaryRPC :call VPNServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterVPNServiceHandlerFromEndpoint instead.

func RegisterVPNServiceServer

func RegisterVPNServiceServer(s grpc.ServiceRegistrar, srv VPNServiceServer)

Types

type AuthAuthenticateRequest

type AuthAuthenticateRequest 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"`
	// contains filtered or unexported fields
}

func (*AuthAuthenticateRequest) Descriptor deprecated

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

Deprecated: Use AuthAuthenticateRequest.ProtoReflect.Descriptor instead.

func (*AuthAuthenticateRequest) GetPassword

func (x *AuthAuthenticateRequest) GetPassword() string

func (*AuthAuthenticateRequest) GetUsername

func (x *AuthAuthenticateRequest) GetUsername() string

func (*AuthAuthenticateRequest) ProtoMessage

func (*AuthAuthenticateRequest) ProtoMessage()

func (*AuthAuthenticateRequest) ProtoReflect added in v0.2.11

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

func (*AuthAuthenticateRequest) Reset

func (x *AuthAuthenticateRequest) Reset()

func (*AuthAuthenticateRequest) String

func (x *AuthAuthenticateRequest) String() string

type AuthAuthenticateResponse

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

func (*AuthAuthenticateResponse) Descriptor deprecated

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

Deprecated: Use AuthAuthenticateResponse.ProtoReflect.Descriptor instead.

func (*AuthAuthenticateResponse) GetToken

func (x *AuthAuthenticateResponse) GetToken() string

func (*AuthAuthenticateResponse) ProtoMessage

func (*AuthAuthenticateResponse) ProtoMessage()

func (*AuthAuthenticateResponse) ProtoReflect added in v0.2.11

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

func (*AuthAuthenticateResponse) Reset

func (x *AuthAuthenticateResponse) Reset()

func (*AuthAuthenticateResponse) String

func (x *AuthAuthenticateResponse) String() string

type AuthServiceClient

type AuthServiceClient interface {
	Status(ctx context.Context, in *AuthStatusRequest, opts ...grpc.CallOption) (*AuthStatusResponse, error)
	Authenticate(ctx context.Context, in *AuthAuthenticateRequest, opts ...grpc.CallOption) (*AuthAuthenticateResponse, error)
}

AuthServiceClient is the client API for AuthService 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 AuthServiceServer

type AuthServiceServer interface {
	Status(context.Context, *AuthStatusRequest) (*AuthStatusResponse, error)
	Authenticate(context.Context, *AuthAuthenticateRequest) (*AuthAuthenticateResponse, error)
	// contains filtered or unexported methods
}

AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility

type AuthStatusRequest

type AuthStatusRequest struct {
	// contains filtered or unexported fields
}

func (*AuthStatusRequest) Descriptor deprecated

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

Deprecated: Use AuthStatusRequest.ProtoReflect.Descriptor instead.

func (*AuthStatusRequest) ProtoMessage

func (*AuthStatusRequest) ProtoMessage()

func (*AuthStatusRequest) ProtoReflect added in v0.2.11

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

func (*AuthStatusRequest) Reset

func (x *AuthStatusRequest) Reset()

func (*AuthStatusRequest) String

func (x *AuthStatusRequest) String() string

type AuthStatusResponse

type AuthStatusResponse struct {
	User   *UserResponse_User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	IsRoot bool               `protobuf:"varint,2,opt,name=is_root,json=isRoot,proto3" json:"is_root,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthStatusResponse) Descriptor deprecated

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

Deprecated: Use AuthStatusResponse.ProtoReflect.Descriptor instead.

func (*AuthStatusResponse) GetIsRoot added in v0.2.0

func (x *AuthStatusResponse) GetIsRoot() bool

func (*AuthStatusResponse) GetUser

func (x *AuthStatusResponse) GetUser() *UserResponse_User

func (*AuthStatusResponse) ProtoMessage

func (*AuthStatusResponse) ProtoMessage()

func (*AuthStatusResponse) ProtoReflect added in v0.2.11

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

func (*AuthStatusResponse) Reset

func (x *AuthStatusResponse) Reset()

func (*AuthStatusResponse) String

func (x *AuthStatusResponse) String() string

type Network

type Network struct {
	Name                string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Cidr                string   `protobuf:"bytes,2,opt,name=cidr,proto3" json:"cidr,omitempty"`
	Type                string   `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	CreatedAt           string   `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	AssociatedUsernames []string `protobuf:"bytes,5,rep,name=associated_usernames,json=associatedUsernames,proto3" json:"associated_usernames,omitempty"`
	Via                 string   `protobuf:"bytes,6,opt,name=via,proto3" json:"via,omitempty"`
	// contains filtered or unexported fields
}

func (*Network) Descriptor deprecated

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

Deprecated: Use Network.ProtoReflect.Descriptor instead.

func (*Network) GetAssociatedUsernames

func (x *Network) GetAssociatedUsernames() []string

func (*Network) GetCidr

func (x *Network) GetCidr() string

func (*Network) GetCreatedAt

func (x *Network) GetCreatedAt() string

func (*Network) GetName

func (x *Network) GetName() string

func (*Network) GetType

func (x *Network) GetType() string

func (*Network) GetVia

func (x *Network) GetVia() string

func (*Network) ProtoMessage

func (*Network) ProtoMessage()

func (*Network) ProtoReflect added in v0.2.11

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

func (*Network) Reset

func (x *Network) Reset()

func (*Network) String

func (x *Network) String() string

type NetworkAssociateRequest

type NetworkAssociateRequest struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkAssociateRequest) Descriptor deprecated

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

Deprecated: Use NetworkAssociateRequest.ProtoReflect.Descriptor instead.

func (*NetworkAssociateRequest) GetName

func (x *NetworkAssociateRequest) GetName() string

func (*NetworkAssociateRequest) GetUsername

func (x *NetworkAssociateRequest) GetUsername() string

func (*NetworkAssociateRequest) ProtoMessage

func (*NetworkAssociateRequest) ProtoMessage()

func (*NetworkAssociateRequest) ProtoReflect added in v0.2.11

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

func (*NetworkAssociateRequest) Reset

func (x *NetworkAssociateRequest) Reset()

func (*NetworkAssociateRequest) String

func (x *NetworkAssociateRequest) String() string

type NetworkAssociateResponse

type NetworkAssociateResponse struct {
	// contains filtered or unexported fields
}

func (*NetworkAssociateResponse) Descriptor deprecated

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

Deprecated: Use NetworkAssociateResponse.ProtoReflect.Descriptor instead.

func (*NetworkAssociateResponse) ProtoMessage

func (*NetworkAssociateResponse) ProtoMessage()

func (*NetworkAssociateResponse) ProtoReflect added in v0.2.11

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

func (*NetworkAssociateResponse) Reset

func (x *NetworkAssociateResponse) Reset()

func (*NetworkAssociateResponse) String

func (x *NetworkAssociateResponse) String() string

type NetworkCreateRequest

type NetworkCreateRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Cidr string `protobuf:"bytes,2,opt,name=cidr,proto3" json:"cidr,omitempty"`
	Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	Via  string `protobuf:"bytes,4,opt,name=via,proto3" json:"via,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkCreateRequest) Descriptor deprecated

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

Deprecated: Use NetworkCreateRequest.ProtoReflect.Descriptor instead.

func (*NetworkCreateRequest) GetCidr

func (x *NetworkCreateRequest) GetCidr() string

func (*NetworkCreateRequest) GetName

func (x *NetworkCreateRequest) GetName() string

func (*NetworkCreateRequest) GetType

func (x *NetworkCreateRequest) GetType() string

func (*NetworkCreateRequest) GetVia

func (x *NetworkCreateRequest) GetVia() string

func (*NetworkCreateRequest) ProtoMessage

func (*NetworkCreateRequest) ProtoMessage()

func (*NetworkCreateRequest) ProtoReflect added in v0.2.11

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

func (*NetworkCreateRequest) Reset

func (x *NetworkCreateRequest) Reset()

func (*NetworkCreateRequest) String

func (x *NetworkCreateRequest) String() string

type NetworkCreateResponse

type NetworkCreateResponse struct {
	Network *Network `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkCreateResponse) Descriptor deprecated

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

Deprecated: Use NetworkCreateResponse.ProtoReflect.Descriptor instead.

func (*NetworkCreateResponse) GetNetwork

func (x *NetworkCreateResponse) GetNetwork() *Network

func (*NetworkCreateResponse) ProtoMessage

func (*NetworkCreateResponse) ProtoMessage()

func (*NetworkCreateResponse) ProtoReflect added in v0.2.11

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

func (*NetworkCreateResponse) Reset

func (x *NetworkCreateResponse) Reset()

func (*NetworkCreateResponse) String

func (x *NetworkCreateResponse) String() string

type NetworkDeleteRequest

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

func (*NetworkDeleteRequest) Descriptor deprecated

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

Deprecated: Use NetworkDeleteRequest.ProtoReflect.Descriptor instead.

func (*NetworkDeleteRequest) GetName

func (x *NetworkDeleteRequest) GetName() string

func (*NetworkDeleteRequest) ProtoMessage

func (*NetworkDeleteRequest) ProtoMessage()

func (*NetworkDeleteRequest) ProtoReflect added in v0.2.11

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

func (*NetworkDeleteRequest) Reset

func (x *NetworkDeleteRequest) Reset()

func (*NetworkDeleteRequest) String

func (x *NetworkDeleteRequest) String() string

type NetworkDeleteResponse

type NetworkDeleteResponse struct {
	Network *Network `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkDeleteResponse) Descriptor deprecated

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

Deprecated: Use NetworkDeleteResponse.ProtoReflect.Descriptor instead.

func (*NetworkDeleteResponse) GetNetwork

func (x *NetworkDeleteResponse) GetNetwork() *Network

func (*NetworkDeleteResponse) ProtoMessage

func (*NetworkDeleteResponse) ProtoMessage()

func (*NetworkDeleteResponse) ProtoReflect added in v0.2.11

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

func (*NetworkDeleteResponse) Reset

func (x *NetworkDeleteResponse) Reset()

func (*NetworkDeleteResponse) String

func (x *NetworkDeleteResponse) String() string

type NetworkDissociateRequest

type NetworkDissociateRequest struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkDissociateRequest) Descriptor deprecated

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

Deprecated: Use NetworkDissociateRequest.ProtoReflect.Descriptor instead.

func (*NetworkDissociateRequest) GetName

func (x *NetworkDissociateRequest) GetName() string

func (*NetworkDissociateRequest) GetUsername

func (x *NetworkDissociateRequest) GetUsername() string

func (*NetworkDissociateRequest) ProtoMessage

func (*NetworkDissociateRequest) ProtoMessage()

func (*NetworkDissociateRequest) ProtoReflect added in v0.2.11

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

func (*NetworkDissociateRequest) Reset

func (x *NetworkDissociateRequest) Reset()

func (*NetworkDissociateRequest) String

func (x *NetworkDissociateRequest) String() string

type NetworkDissociateResponse

type NetworkDissociateResponse struct {
	// contains filtered or unexported fields
}

func (*NetworkDissociateResponse) Descriptor deprecated

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

Deprecated: Use NetworkDissociateResponse.ProtoReflect.Descriptor instead.

func (*NetworkDissociateResponse) ProtoMessage

func (*NetworkDissociateResponse) ProtoMessage()

func (*NetworkDissociateResponse) ProtoReflect added in v0.2.11

func (*NetworkDissociateResponse) Reset

func (x *NetworkDissociateResponse) Reset()

func (*NetworkDissociateResponse) String

func (x *NetworkDissociateResponse) String() string

type NetworkGetAllTypesRequest

type NetworkGetAllTypesRequest struct {
	// contains filtered or unexported fields
}

func (*NetworkGetAllTypesRequest) Descriptor deprecated

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

Deprecated: Use NetworkGetAllTypesRequest.ProtoReflect.Descriptor instead.

func (*NetworkGetAllTypesRequest) ProtoMessage

func (*NetworkGetAllTypesRequest) ProtoMessage()

func (*NetworkGetAllTypesRequest) ProtoReflect added in v0.2.11

func (*NetworkGetAllTypesRequest) Reset

func (x *NetworkGetAllTypesRequest) Reset()

func (*NetworkGetAllTypesRequest) String

func (x *NetworkGetAllTypesRequest) String() string

type NetworkGetAllTypesResponse

type NetworkGetAllTypesResponse struct {
	Types []*NetworkType `protobuf:"bytes,1,rep,name=types,proto3" json:"types,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkGetAllTypesResponse) Descriptor deprecated

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

Deprecated: Use NetworkGetAllTypesResponse.ProtoReflect.Descriptor instead.

func (*NetworkGetAllTypesResponse) GetTypes

func (x *NetworkGetAllTypesResponse) GetTypes() []*NetworkType

func (*NetworkGetAllTypesResponse) ProtoMessage

func (*NetworkGetAllTypesResponse) ProtoMessage()

func (*NetworkGetAllTypesResponse) ProtoReflect added in v0.2.11

func (*NetworkGetAllTypesResponse) Reset

func (x *NetworkGetAllTypesResponse) Reset()

func (*NetworkGetAllTypesResponse) String

func (x *NetworkGetAllTypesResponse) String() string

type NetworkGetAssociatedUsersRequest

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

func (*NetworkGetAssociatedUsersRequest) Descriptor deprecated

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

Deprecated: Use NetworkGetAssociatedUsersRequest.ProtoReflect.Descriptor instead.

func (*NetworkGetAssociatedUsersRequest) GetName

func (*NetworkGetAssociatedUsersRequest) ProtoMessage

func (*NetworkGetAssociatedUsersRequest) ProtoMessage()

func (*NetworkGetAssociatedUsersRequest) ProtoReflect added in v0.2.11

func (*NetworkGetAssociatedUsersRequest) Reset

func (*NetworkGetAssociatedUsersRequest) String

type NetworkGetAssociatedUsersResponse

type NetworkGetAssociatedUsersResponse struct {
	Usernames []string `protobuf:"bytes,1,rep,name=usernames,proto3" json:"usernames,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkGetAssociatedUsersResponse) Descriptor deprecated

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

Deprecated: Use NetworkGetAssociatedUsersResponse.ProtoReflect.Descriptor instead.

func (*NetworkGetAssociatedUsersResponse) GetUsernames

func (x *NetworkGetAssociatedUsersResponse) GetUsernames() []string

func (*NetworkGetAssociatedUsersResponse) ProtoMessage

func (*NetworkGetAssociatedUsersResponse) ProtoMessage()

func (*NetworkGetAssociatedUsersResponse) ProtoReflect added in v0.2.11

func (*NetworkGetAssociatedUsersResponse) Reset

func (*NetworkGetAssociatedUsersResponse) String

type NetworkListRequest

type NetworkListRequest struct {
	// contains filtered or unexported fields
}

func (*NetworkListRequest) Descriptor deprecated

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

Deprecated: Use NetworkListRequest.ProtoReflect.Descriptor instead.

func (*NetworkListRequest) ProtoMessage

func (*NetworkListRequest) ProtoMessage()

func (*NetworkListRequest) ProtoReflect added in v0.2.11

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

func (*NetworkListRequest) Reset

func (x *NetworkListRequest) Reset()

func (*NetworkListRequest) String

func (x *NetworkListRequest) String() string

type NetworkListResponse

type NetworkListResponse struct {
	Networks []*Network `protobuf:"bytes,1,rep,name=networks,proto3" json:"networks,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkListResponse) Descriptor deprecated

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

Deprecated: Use NetworkListResponse.ProtoReflect.Descriptor instead.

func (*NetworkListResponse) GetNetworks

func (x *NetworkListResponse) GetNetworks() []*Network

func (*NetworkListResponse) ProtoMessage

func (*NetworkListResponse) ProtoMessage()

func (*NetworkListResponse) ProtoReflect added in v0.2.11

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

func (*NetworkListResponse) Reset

func (x *NetworkListResponse) Reset()

func (*NetworkListResponse) String

func (x *NetworkListResponse) String() string

type NetworkServiceClient

NetworkServiceClient is the client API for NetworkService 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 NetworkServiceServer

NetworkServiceServer is the server API for NetworkService service. All implementations must embed UnimplementedNetworkServiceServer for forward compatibility

type NetworkType

type NetworkType struct {
	Type        string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkType) Descriptor deprecated

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

Deprecated: Use NetworkType.ProtoReflect.Descriptor instead.

func (*NetworkType) GetDescription

func (x *NetworkType) GetDescription() string

func (*NetworkType) GetType

func (x *NetworkType) GetType() string

func (*NetworkType) ProtoMessage

func (*NetworkType) ProtoMessage()

func (*NetworkType) ProtoReflect added in v0.2.11

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

func (*NetworkType) Reset

func (x *NetworkType) Reset()

func (*NetworkType) String

func (x *NetworkType) String() string

type UnimplementedAuthServiceServer added in v0.2.8

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthServiceServer) Authenticate added in v0.2.8

func (UnimplementedAuthServiceServer) Status added in v0.2.8

type UnimplementedNetworkServiceServer added in v0.2.8

type UnimplementedNetworkServiceServer struct {
}

UnimplementedNetworkServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedNetworkServiceServer) Associate added in v0.2.8

func (UnimplementedNetworkServiceServer) Create added in v0.2.8

func (UnimplementedNetworkServiceServer) Delete added in v0.2.8

func (UnimplementedNetworkServiceServer) Dissociate added in v0.2.8

func (UnimplementedNetworkServiceServer) GetAllTypes added in v0.2.8

func (UnimplementedNetworkServiceServer) GetAssociatedUsers added in v0.2.8

func (UnimplementedNetworkServiceServer) List added in v0.2.8

type UnimplementedUserServiceServer added in v0.2.8

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) Create added in v0.2.8

func (UnimplementedUserServiceServer) Delete added in v0.2.8

func (UnimplementedUserServiceServer) GenConfig added in v0.2.8

func (UnimplementedUserServiceServer) List added in v0.2.8

func (UnimplementedUserServiceServer) Renew added in v0.2.8

func (UnimplementedUserServiceServer) Update added in v0.2.8

type UnimplementedVPNServiceServer added in v0.2.8

type UnimplementedVPNServiceServer struct {
}

UnimplementedVPNServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedVPNServiceServer) Init added in v0.2.8

func (UnimplementedVPNServiceServer) Restart added in v0.2.8

func (UnimplementedVPNServiceServer) Status added in v0.2.8

func (UnimplementedVPNServiceServer) Update added in v0.2.8

type UnsafeAuthServiceServer added in v0.2.11

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

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

type UnsafeNetworkServiceServer added in v0.2.11

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

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

type UnsafeUserServiceServer added in v0.2.11

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

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

type UnsafeVPNServiceServer added in v0.2.11

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

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

type UserCreateRequest

type UserCreateRequest 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"`
	NoGw        bool   `protobuf:"varint,3,opt,name=no_gw,json=noGw,proto3" json:"no_gw,omitempty"`
	HostId      uint32 `protobuf:"varint,4,opt,name=host_id,json=hostId,proto3" json:"host_id,omitempty"`
	IsAdmin     bool   `protobuf:"varint,5,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
	Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*UserCreateRequest) Descriptor deprecated

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

Deprecated: Use UserCreateRequest.ProtoReflect.Descriptor instead.

func (*UserCreateRequest) GetDescription added in v0.2.8

func (x *UserCreateRequest) GetDescription() string

func (*UserCreateRequest) GetHostId

func (x *UserCreateRequest) GetHostId() uint32

func (*UserCreateRequest) GetIsAdmin

func (x *UserCreateRequest) GetIsAdmin() bool

func (*UserCreateRequest) GetNoGw added in v0.2.0

func (x *UserCreateRequest) GetNoGw() bool

func (*UserCreateRequest) GetPassword

func (x *UserCreateRequest) GetPassword() string

func (*UserCreateRequest) GetUsername

func (x *UserCreateRequest) GetUsername() string

func (*UserCreateRequest) ProtoMessage

func (*UserCreateRequest) ProtoMessage()

func (*UserCreateRequest) ProtoReflect added in v0.2.11

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

func (*UserCreateRequest) Reset

func (x *UserCreateRequest) Reset()

func (*UserCreateRequest) String

func (x *UserCreateRequest) String() string

type UserDeleteRequest

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

func (*UserDeleteRequest) Descriptor deprecated

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

Deprecated: Use UserDeleteRequest.ProtoReflect.Descriptor instead.

func (*UserDeleteRequest) GetUsername

func (x *UserDeleteRequest) GetUsername() string

func (*UserDeleteRequest) ProtoMessage

func (*UserDeleteRequest) ProtoMessage()

func (*UserDeleteRequest) ProtoReflect added in v0.2.11

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

func (*UserDeleteRequest) Reset

func (x *UserDeleteRequest) Reset()

func (*UserDeleteRequest) String

func (x *UserDeleteRequest) String() string

type UserGenConfigRequest

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

func (*UserGenConfigRequest) Descriptor deprecated

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

Deprecated: Use UserGenConfigRequest.ProtoReflect.Descriptor instead.

func (*UserGenConfigRequest) GetUsername

func (x *UserGenConfigRequest) GetUsername() string

func (*UserGenConfigRequest) ProtoMessage

func (*UserGenConfigRequest) ProtoMessage()

func (*UserGenConfigRequest) ProtoReflect added in v0.2.11

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

func (*UserGenConfigRequest) Reset

func (x *UserGenConfigRequest) Reset()

func (*UserGenConfigRequest) String

func (x *UserGenConfigRequest) String() string

type UserGenConfigResponse

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

func (*UserGenConfigResponse) Descriptor deprecated

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

Deprecated: Use UserGenConfigResponse.ProtoReflect.Descriptor instead.

func (*UserGenConfigResponse) GetClientConfig

func (x *UserGenConfigResponse) GetClientConfig() string

func (*UserGenConfigResponse) ProtoMessage

func (*UserGenConfigResponse) ProtoMessage()

func (*UserGenConfigResponse) ProtoReflect added in v0.2.11

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

func (*UserGenConfigResponse) Reset

func (x *UserGenConfigResponse) Reset()

func (*UserGenConfigResponse) String

func (x *UserGenConfigResponse) String() string

type UserListRequest

type UserListRequest struct {
	// contains filtered or unexported fields
}

func (*UserListRequest) Descriptor deprecated

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

Deprecated: Use UserListRequest.ProtoReflect.Descriptor instead.

func (*UserListRequest) ProtoMessage

func (*UserListRequest) ProtoMessage()

func (*UserListRequest) ProtoReflect added in v0.2.11

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

func (*UserListRequest) Reset

func (x *UserListRequest) Reset()

func (*UserListRequest) String

func (x *UserListRequest) String() string

type UserRenewRequest

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

func (*UserRenewRequest) Descriptor deprecated

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

Deprecated: Use UserRenewRequest.ProtoReflect.Descriptor instead.

func (*UserRenewRequest) GetUsername

func (x *UserRenewRequest) GetUsername() string

func (*UserRenewRequest) ProtoMessage

func (*UserRenewRequest) ProtoMessage()

func (*UserRenewRequest) ProtoReflect added in v0.2.11

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

func (*UserRenewRequest) Reset

func (x *UserRenewRequest) Reset()

func (*UserRenewRequest) String

func (x *UserRenewRequest) String() string

type UserResponse

type UserResponse struct {
	Users []*UserResponse_User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*UserResponse) Descriptor deprecated

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

Deprecated: Use UserResponse.ProtoReflect.Descriptor instead.

func (*UserResponse) GetUsers

func (x *UserResponse) GetUsers() []*UserResponse_User

func (*UserResponse) ProtoMessage

func (*UserResponse) ProtoMessage()

func (*UserResponse) ProtoReflect added in v0.2.11

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

func (*UserResponse) Reset

func (x *UserResponse) Reset()

func (*UserResponse) String

func (x *UserResponse) String() string

type UserResponse_User

type UserResponse_User struct {
	Username           string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	ServerSerialNumber string `protobuf:"bytes,2,opt,name=server_serial_number,json=serverSerialNumber,proto3" json:"server_serial_number,omitempty"`
	Cert               string `protobuf:"bytes,3,opt,name=cert,proto3" json:"cert,omitempty"`
	CreatedAt          string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	IpNet              string `protobuf:"bytes,5,opt,name=ip_net,json=ipNet,proto3" json:"ip_net,omitempty"`
	NoGw               bool   `protobuf:"varint,6,opt,name=no_gw,json=noGw,proto3" json:"no_gw,omitempty"`
	HostId             uint32 `protobuf:"varint,7,opt,name=host_id,json=hostId,proto3" json:"host_id,omitempty"`
	IsAdmin            bool   `protobuf:"varint,8,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
	IsConnected        bool   `protobuf:"varint,9,opt,name=is_connected,json=isConnected,proto3" json:"is_connected,omitempty"`
	ConnectedSince     string `protobuf:"bytes,10,opt,name=connected_since,json=connectedSince,proto3" json:"connected_since,omitempty"`
	BytesSent          uint64 `protobuf:"varint,11,opt,name=bytes_sent,json=bytesSent,proto3" json:"bytes_sent,omitempty"`
	BytesReceived      uint64 `protobuf:"varint,12,opt,name=bytes_received,json=bytesReceived,proto3" json:"bytes_received,omitempty"`
	ExpiresAt          string `protobuf:"bytes,13,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	Description        string `protobuf:"bytes,14,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*UserResponse_User) Descriptor deprecated

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

Deprecated: Use UserResponse_User.ProtoReflect.Descriptor instead.

func (*UserResponse_User) GetBytesReceived added in v0.2.7

func (x *UserResponse_User) GetBytesReceived() uint64

func (*UserResponse_User) GetBytesSent added in v0.2.7

func (x *UserResponse_User) GetBytesSent() uint64

func (*UserResponse_User) GetCert

func (x *UserResponse_User) GetCert() string

func (*UserResponse_User) GetConnectedSince added in v0.2.7

func (x *UserResponse_User) GetConnectedSince() string

func (*UserResponse_User) GetCreatedAt

func (x *UserResponse_User) GetCreatedAt() string

func (*UserResponse_User) GetDescription added in v0.2.8

func (x *UserResponse_User) GetDescription() string

func (*UserResponse_User) GetExpiresAt added in v0.2.7

func (x *UserResponse_User) GetExpiresAt() string

func (*UserResponse_User) GetHostId

func (x *UserResponse_User) GetHostId() uint32

func (*UserResponse_User) GetIpNet

func (x *UserResponse_User) GetIpNet() string

func (*UserResponse_User) GetIsAdmin

func (x *UserResponse_User) GetIsAdmin() bool

func (*UserResponse_User) GetIsConnected added in v0.2.7

func (x *UserResponse_User) GetIsConnected() bool

func (*UserResponse_User) GetNoGw

func (x *UserResponse_User) GetNoGw() bool

func (*UserResponse_User) GetServerSerialNumber

func (x *UserResponse_User) GetServerSerialNumber() string

func (*UserResponse_User) GetUsername

func (x *UserResponse_User) GetUsername() string

func (*UserResponse_User) ProtoMessage

func (*UserResponse_User) ProtoMessage()

func (*UserResponse_User) ProtoReflect added in v0.2.11

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

func (*UserResponse_User) Reset

func (x *UserResponse_User) Reset()

func (*UserResponse_User) String

func (x *UserResponse_User) String() string

type UserServiceClient

type UserServiceClient interface {
	List(ctx context.Context, in *UserListRequest, opts ...grpc.CallOption) (*UserResponse, error)
	Create(ctx context.Context, in *UserCreateRequest, opts ...grpc.CallOption) (*UserResponse, error)
	Update(ctx context.Context, in *UserUpdateRequest, opts ...grpc.CallOption) (*UserResponse, error)
	Delete(ctx context.Context, in *UserDeleteRequest, opts ...grpc.CallOption) (*UserResponse, error)
	Renew(ctx context.Context, in *UserRenewRequest, opts ...grpc.CallOption) (*UserResponse, error)
	GenConfig(ctx context.Context, in *UserGenConfigRequest, opts ...grpc.CallOption) (*UserGenConfigResponse, error)
}

UserServiceClient is the client API for UserService 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 UserServiceServer

UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility

type UserUpdateRequest

type UserUpdateRequest 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"`
	Gwpref      UserUpdateRequest_GWPref     `protobuf:"varint,3,opt,name=gwpref,proto3,enum=pb.UserUpdateRequest_GWPref" json:"gwpref,omitempty"`
	HostId      uint32                       `protobuf:"varint,4,opt,name=host_id,json=hostId,proto3" json:"host_id,omitempty"`
	StaticPref  UserUpdateRequest_StaticPref `` /* 129-byte string literal not displayed */
	AdminPref   UserUpdateRequest_AdminPref  `protobuf:"varint,6,opt,name=admin_pref,json=adminPref,proto3,enum=pb.UserUpdateRequest_AdminPref" json:"admin_pref,omitempty"`
	Description string                       `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*UserUpdateRequest) Descriptor deprecated

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

Deprecated: Use UserUpdateRequest.ProtoReflect.Descriptor instead.

func (*UserUpdateRequest) GetAdminPref

func (*UserUpdateRequest) GetDescription added in v0.2.8

func (x *UserUpdateRequest) GetDescription() string

func (*UserUpdateRequest) GetGwpref

func (*UserUpdateRequest) GetHostId

func (x *UserUpdateRequest) GetHostId() uint32

func (*UserUpdateRequest) GetPassword

func (x *UserUpdateRequest) GetPassword() string

func (*UserUpdateRequest) GetStaticPref

func (*UserUpdateRequest) GetUsername

func (x *UserUpdateRequest) GetUsername() string

func (*UserUpdateRequest) ProtoMessage

func (*UserUpdateRequest) ProtoMessage()

func (*UserUpdateRequest) ProtoReflect added in v0.2.11

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

func (*UserUpdateRequest) Reset

func (x *UserUpdateRequest) Reset()

func (*UserUpdateRequest) String

func (x *UserUpdateRequest) String() string

type UserUpdateRequest_AdminPref

type UserUpdateRequest_AdminPref int32
const (
	UserUpdateRequest_NOPREFADMIN UserUpdateRequest_AdminPref = 0
	UserUpdateRequest_NOADMIN     UserUpdateRequest_AdminPref = 1
	UserUpdateRequest_ADMIN       UserUpdateRequest_AdminPref = 2
)

func (UserUpdateRequest_AdminPref) Descriptor added in v0.2.11

func (UserUpdateRequest_AdminPref) Enum added in v0.2.11

func (UserUpdateRequest_AdminPref) EnumDescriptor deprecated

func (UserUpdateRequest_AdminPref) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserUpdateRequest_AdminPref.Descriptor instead.

func (UserUpdateRequest_AdminPref) Number added in v0.2.11

func (UserUpdateRequest_AdminPref) String

func (UserUpdateRequest_AdminPref) Type added in v0.2.11

type UserUpdateRequest_GWPref

type UserUpdateRequest_GWPref int32
const (
	UserUpdateRequest_NOPREF UserUpdateRequest_GWPref = 0
	UserUpdateRequest_NOGW   UserUpdateRequest_GWPref = 1
	UserUpdateRequest_GW     UserUpdateRequest_GWPref = 2
)

func (UserUpdateRequest_GWPref) Descriptor added in v0.2.11

func (UserUpdateRequest_GWPref) Enum added in v0.2.11

func (UserUpdateRequest_GWPref) EnumDescriptor deprecated

func (UserUpdateRequest_GWPref) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserUpdateRequest_GWPref.Descriptor instead.

func (UserUpdateRequest_GWPref) Number added in v0.2.11

func (UserUpdateRequest_GWPref) String

func (x UserUpdateRequest_GWPref) String() string

func (UserUpdateRequest_GWPref) Type added in v0.2.11

type UserUpdateRequest_StaticPref

type UserUpdateRequest_StaticPref int32
const (
	UserUpdateRequest_NOPREFSTATIC UserUpdateRequest_StaticPref = 0
	UserUpdateRequest_NOSTATIC     UserUpdateRequest_StaticPref = 1
	UserUpdateRequest_STATIC       UserUpdateRequest_StaticPref = 2
)

func (UserUpdateRequest_StaticPref) Descriptor added in v0.2.11

func (UserUpdateRequest_StaticPref) Enum added in v0.2.11

func (UserUpdateRequest_StaticPref) EnumDescriptor deprecated

func (UserUpdateRequest_StaticPref) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserUpdateRequest_StaticPref.Descriptor instead.

func (UserUpdateRequest_StaticPref) Number added in v0.2.11

func (UserUpdateRequest_StaticPref) String

func (UserUpdateRequest_StaticPref) Type added in v0.2.11

type VPNInitRequest

type VPNInitRequest struct {
	Hostname         string   `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	Port             string   `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty"`
	ProtoPref        VPNProto `protobuf:"varint,3,opt,name=proto_pref,json=protoPref,proto3,enum=pb.VPNProto" json:"proto_pref,omitempty"`
	IpBlock          string   `protobuf:"bytes,4,opt,name=ip_block,json=ipBlock,proto3" json:"ip_block,omitempty"`
	Dns              string   `protobuf:"bytes,5,opt,name=dns,proto3" json:"dns,omitempty"`
	KeepalivePeriod  string   `protobuf:"bytes,6,opt,name=keepalive_period,json=keepalivePeriod,proto3" json:"keepalive_period,omitempty"`
	KeepaliveTimeout string   `protobuf:"bytes,7,opt,name=keepalive_timeout,json=keepaliveTimeout,proto3" json:"keepalive_timeout,omitempty"`
	UseLzo           bool     `protobuf:"varint,8,opt,name=use_lzo,json=useLzo,proto3" json:"use_lzo,omitempty"`
	// contains filtered or unexported fields
}

func (*VPNInitRequest) Descriptor deprecated

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

Deprecated: Use VPNInitRequest.ProtoReflect.Descriptor instead.

func (*VPNInitRequest) GetDns

func (x *VPNInitRequest) GetDns() string

func (*VPNInitRequest) GetHostname

func (x *VPNInitRequest) GetHostname() string

func (*VPNInitRequest) GetIpBlock

func (x *VPNInitRequest) GetIpBlock() string

func (*VPNInitRequest) GetKeepalivePeriod added in v0.2.8

func (x *VPNInitRequest) GetKeepalivePeriod() string

func (*VPNInitRequest) GetKeepaliveTimeout added in v0.2.8

func (x *VPNInitRequest) GetKeepaliveTimeout() string

func (*VPNInitRequest) GetPort

func (x *VPNInitRequest) GetPort() string

func (*VPNInitRequest) GetProtoPref

func (x *VPNInitRequest) GetProtoPref() VPNProto

func (*VPNInitRequest) GetUseLzo added in v0.2.8

func (x *VPNInitRequest) GetUseLzo() bool

func (*VPNInitRequest) ProtoMessage

func (*VPNInitRequest) ProtoMessage()

func (*VPNInitRequest) ProtoReflect added in v0.2.11

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

func (*VPNInitRequest) Reset

func (x *VPNInitRequest) Reset()

func (*VPNInitRequest) String

func (x *VPNInitRequest) String() string

type VPNInitResponse

type VPNInitResponse struct {
	// contains filtered or unexported fields
}

func (*VPNInitResponse) Descriptor deprecated

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

Deprecated: Use VPNInitResponse.ProtoReflect.Descriptor instead.

func (*VPNInitResponse) ProtoMessage

func (*VPNInitResponse) ProtoMessage()

func (*VPNInitResponse) ProtoReflect added in v0.2.11

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

func (*VPNInitResponse) Reset

func (x *VPNInitResponse) Reset()

func (*VPNInitResponse) String

func (x *VPNInitResponse) String() string

type VPNLZOPref added in v0.2.9

type VPNLZOPref int32
const (
	VPNLZOPref_USE_LZO_NOPREF  VPNLZOPref = 0
	VPNLZOPref_USE_LZO_ENABLE  VPNLZOPref = 1
	VPNLZOPref_USE_LZO_DISABLE VPNLZOPref = 3
)

func (VPNLZOPref) Descriptor added in v0.2.11

func (VPNLZOPref) Descriptor() protoreflect.EnumDescriptor

func (VPNLZOPref) Enum added in v0.2.11

func (x VPNLZOPref) Enum() *VPNLZOPref

func (VPNLZOPref) EnumDescriptor deprecated added in v0.2.9

func (VPNLZOPref) EnumDescriptor() ([]byte, []int)

Deprecated: Use VPNLZOPref.Descriptor instead.

func (VPNLZOPref) Number added in v0.2.11

func (x VPNLZOPref) Number() protoreflect.EnumNumber

func (VPNLZOPref) String added in v0.2.9

func (x VPNLZOPref) String() string

func (VPNLZOPref) Type added in v0.2.11

type VPNProto

type VPNProto int32
const (
	VPNProto_NOPREF VPNProto = 0
	VPNProto_UDP    VPNProto = 1
	VPNProto_TCP    VPNProto = 2
)

func (VPNProto) Descriptor added in v0.2.11

func (VPNProto) Descriptor() protoreflect.EnumDescriptor

func (VPNProto) Enum added in v0.2.11

func (x VPNProto) Enum() *VPNProto

func (VPNProto) EnumDescriptor deprecated

func (VPNProto) EnumDescriptor() ([]byte, []int)

Deprecated: Use VPNProto.Descriptor instead.

func (VPNProto) Number added in v0.2.11

func (x VPNProto) Number() protoreflect.EnumNumber

func (VPNProto) String

func (x VPNProto) String() string

func (VPNProto) Type added in v0.2.11

type VPNRestartRequest added in v0.2.5

type VPNRestartRequest struct {
	// contains filtered or unexported fields
}

func (*VPNRestartRequest) Descriptor deprecated added in v0.2.5

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

Deprecated: Use VPNRestartRequest.ProtoReflect.Descriptor instead.

func (*VPNRestartRequest) ProtoMessage added in v0.2.5

func (*VPNRestartRequest) ProtoMessage()

func (*VPNRestartRequest) ProtoReflect added in v0.2.11

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

func (*VPNRestartRequest) Reset added in v0.2.5

func (x *VPNRestartRequest) Reset()

func (*VPNRestartRequest) String added in v0.2.5

func (x *VPNRestartRequest) String() string

type VPNRestartResponse added in v0.2.5

type VPNRestartResponse struct {
	// contains filtered or unexported fields
}

func (*VPNRestartResponse) Descriptor deprecated added in v0.2.5

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

Deprecated: Use VPNRestartResponse.ProtoReflect.Descriptor instead.

func (*VPNRestartResponse) ProtoMessage added in v0.2.5

func (*VPNRestartResponse) ProtoMessage()

func (*VPNRestartResponse) ProtoReflect added in v0.2.11

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

func (*VPNRestartResponse) Reset added in v0.2.5

func (x *VPNRestartResponse) Reset()

func (*VPNRestartResponse) String added in v0.2.5

func (x *VPNRestartResponse) String() string

type VPNServiceClient

type VPNServiceClient interface {
	Status(ctx context.Context, in *VPNStatusRequest, opts ...grpc.CallOption) (*VPNStatusResponse, error)
	Init(ctx context.Context, in *VPNInitRequest, opts ...grpc.CallOption) (*VPNInitResponse, error)
	Update(ctx context.Context, in *VPNUpdateRequest, opts ...grpc.CallOption) (*VPNUpdateResponse, error)
	Restart(ctx context.Context, in *VPNRestartRequest, opts ...grpc.CallOption) (*VPNRestartResponse, error)
}

VPNServiceClient is the client API for VPNService 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 NewVPNServiceClient

func NewVPNServiceClient(cc grpc.ClientConnInterface) VPNServiceClient

type VPNServiceServer

type VPNServiceServer interface {
	Status(context.Context, *VPNStatusRequest) (*VPNStatusResponse, error)
	Init(context.Context, *VPNInitRequest) (*VPNInitResponse, error)
	Update(context.Context, *VPNUpdateRequest) (*VPNUpdateResponse, error)
	Restart(context.Context, *VPNRestartRequest) (*VPNRestartResponse, error)
	// contains filtered or unexported methods
}

VPNServiceServer is the server API for VPNService service. All implementations must embed UnimplementedVPNServiceServer for forward compatibility

type VPNStatusRequest

type VPNStatusRequest struct {
	// contains filtered or unexported fields
}

func (*VPNStatusRequest) Descriptor deprecated

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

Deprecated: Use VPNStatusRequest.ProtoReflect.Descriptor instead.

func (*VPNStatusRequest) ProtoMessage

func (*VPNStatusRequest) ProtoMessage()

func (*VPNStatusRequest) ProtoReflect added in v0.2.11

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

func (*VPNStatusRequest) Reset

func (x *VPNStatusRequest) Reset()

func (*VPNStatusRequest) String

func (x *VPNStatusRequest) String() string

type VPNStatusResponse

type VPNStatusResponse struct {
	Name         string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	SerialNumber string `protobuf:"bytes,2,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"`
	Hostname     string `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"`
	Port         string `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"`
	Cert         string `protobuf:"bytes,5,opt,name=cert,proto3" json:"cert,omitempty"`
	CaCert       string `protobuf:"bytes,6,opt,name=ca_cert,json=caCert,proto3" json:"ca_cert,omitempty"`
	Net          string `protobuf:"bytes,7,opt,name=net,proto3" json:"net,omitempty"`
	Mask         string `protobuf:"bytes,8,opt,name=mask,proto3" json:"mask,omitempty"`
	CreatedAt    string `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Proto        string `protobuf:"bytes,10,opt,name=proto,proto3" json:"proto,omitempty"`
	Dns          string `protobuf:"bytes,11,opt,name=dns,proto3" json:"dns,omitempty"`
	ExpiresAt    string `protobuf:"bytes,12,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	CaExpiresAt  string `protobuf:"bytes,13,opt,name=ca_expires_at,json=caExpiresAt,proto3" json:"ca_expires_at,omitempty"`
	UseLzo       bool   `protobuf:"varint,14,opt,name=use_lzo,json=useLzo,proto3" json:"use_lzo,omitempty"`
	// contains filtered or unexported fields
}

func (*VPNStatusResponse) Descriptor deprecated

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

Deprecated: Use VPNStatusResponse.ProtoReflect.Descriptor instead.

func (*VPNStatusResponse) GetCaCert

func (x *VPNStatusResponse) GetCaCert() string

func (*VPNStatusResponse) GetCaExpiresAt added in v0.2.7

func (x *VPNStatusResponse) GetCaExpiresAt() string

func (*VPNStatusResponse) GetCert

func (x *VPNStatusResponse) GetCert() string

func (*VPNStatusResponse) GetCreatedAt

func (x *VPNStatusResponse) GetCreatedAt() string

func (*VPNStatusResponse) GetDns

func (x *VPNStatusResponse) GetDns() string

func (*VPNStatusResponse) GetExpiresAt added in v0.2.7

func (x *VPNStatusResponse) GetExpiresAt() string

func (*VPNStatusResponse) GetHostname

func (x *VPNStatusResponse) GetHostname() string

func (*VPNStatusResponse) GetMask

func (x *VPNStatusResponse) GetMask() string

func (*VPNStatusResponse) GetName

func (x *VPNStatusResponse) GetName() string

func (*VPNStatusResponse) GetNet

func (x *VPNStatusResponse) GetNet() string

func (*VPNStatusResponse) GetPort

func (x *VPNStatusResponse) GetPort() string

func (*VPNStatusResponse) GetProto

func (x *VPNStatusResponse) GetProto() string

func (*VPNStatusResponse) GetSerialNumber

func (x *VPNStatusResponse) GetSerialNumber() string

func (*VPNStatusResponse) GetUseLzo added in v0.2.9

func (x *VPNStatusResponse) GetUseLzo() bool

func (*VPNStatusResponse) ProtoMessage

func (*VPNStatusResponse) ProtoMessage()

func (*VPNStatusResponse) ProtoReflect added in v0.2.11

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

func (*VPNStatusResponse) Reset

func (x *VPNStatusResponse) Reset()

func (*VPNStatusResponse) String

func (x *VPNStatusResponse) String() string

type VPNUpdateRequest

type VPNUpdateRequest struct {
	IpBlock string     `protobuf:"bytes,1,opt,name=ip_block,json=ipBlock,proto3" json:"ip_block,omitempty"`
	Dns     string     `protobuf:"bytes,2,opt,name=dns,proto3" json:"dns,omitempty"`
	LzoPref VPNLZOPref `protobuf:"varint,3,opt,name=lzo_pref,json=lzoPref,proto3,enum=pb.VPNLZOPref" json:"lzo_pref,omitempty"`
	// contains filtered or unexported fields
}

func (*VPNUpdateRequest) Descriptor deprecated

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

Deprecated: Use VPNUpdateRequest.ProtoReflect.Descriptor instead.

func (*VPNUpdateRequest) GetDns

func (x *VPNUpdateRequest) GetDns() string

func (*VPNUpdateRequest) GetIpBlock

func (x *VPNUpdateRequest) GetIpBlock() string

func (*VPNUpdateRequest) GetLzoPref added in v0.2.9

func (x *VPNUpdateRequest) GetLzoPref() VPNLZOPref

func (*VPNUpdateRequest) ProtoMessage

func (*VPNUpdateRequest) ProtoMessage()

func (*VPNUpdateRequest) ProtoReflect added in v0.2.11

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

func (*VPNUpdateRequest) Reset

func (x *VPNUpdateRequest) Reset()

func (*VPNUpdateRequest) String

func (x *VPNUpdateRequest) String() string

type VPNUpdateResponse

type VPNUpdateResponse struct {
	// contains filtered or unexported fields
}

func (*VPNUpdateResponse) Descriptor deprecated

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

Deprecated: Use VPNUpdateResponse.ProtoReflect.Descriptor instead.

func (*VPNUpdateResponse) ProtoMessage

func (*VPNUpdateResponse) ProtoMessage()

func (*VPNUpdateResponse) ProtoReflect added in v0.2.11

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

func (*VPNUpdateResponse) Reset

func (x *VPNUpdateResponse) Reset()

func (*VPNUpdateResponse) String

func (x *VPNUpdateResponse) String() string

Jump to

Keyboard shortcuts

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