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 ¶
- Variables
- func RegisterAuthServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAuthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthServiceClient) error
- func RegisterAuthServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
- func RegisterNetworkServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterNetworkServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NetworkServiceClient) error
- func RegisterNetworkServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterNetworkServiceServer(s *grpc.Server, srv NetworkServiceServer)
- func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error
- func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
- func RegisterVPNServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterVPNServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client VPNServiceClient) error
- func RegisterVPNServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterVPNServiceServer(s *grpc.Server, srv VPNServiceServer)
- type AuthAuthenticateRequest
- func (*AuthAuthenticateRequest) Descriptor() ([]byte, []int)
- func (m *AuthAuthenticateRequest) GetPassword() string
- func (m *AuthAuthenticateRequest) GetUsername() string
- func (*AuthAuthenticateRequest) ProtoMessage()
- func (m *AuthAuthenticateRequest) Reset()
- func (m *AuthAuthenticateRequest) String() string
- func (m *AuthAuthenticateRequest) XXX_DiscardUnknown()
- func (m *AuthAuthenticateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AuthAuthenticateRequest) XXX_Merge(src proto.Message)
- func (m *AuthAuthenticateRequest) XXX_Size() int
- func (m *AuthAuthenticateRequest) XXX_Unmarshal(b []byte) error
- type AuthAuthenticateResponse
- func (*AuthAuthenticateResponse) Descriptor() ([]byte, []int)
- func (m *AuthAuthenticateResponse) GetToken() string
- func (*AuthAuthenticateResponse) ProtoMessage()
- func (m *AuthAuthenticateResponse) Reset()
- func (m *AuthAuthenticateResponse) String() string
- func (m *AuthAuthenticateResponse) XXX_DiscardUnknown()
- func (m *AuthAuthenticateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AuthAuthenticateResponse) XXX_Merge(src proto.Message)
- func (m *AuthAuthenticateResponse) XXX_Size() int
- func (m *AuthAuthenticateResponse) XXX_Unmarshal(b []byte) error
- type AuthServiceClient
- type AuthServiceServer
- type AuthStatusRequest
- func (*AuthStatusRequest) Descriptor() ([]byte, []int)
- func (*AuthStatusRequest) ProtoMessage()
- func (m *AuthStatusRequest) Reset()
- func (m *AuthStatusRequest) String() string
- func (m *AuthStatusRequest) XXX_DiscardUnknown()
- func (m *AuthStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AuthStatusRequest) XXX_Merge(src proto.Message)
- func (m *AuthStatusRequest) XXX_Size() int
- func (m *AuthStatusRequest) XXX_Unmarshal(b []byte) error
- type AuthStatusResponse
- func (*AuthStatusResponse) Descriptor() ([]byte, []int)
- func (m *AuthStatusResponse) GetIsRoot() bool
- func (m *AuthStatusResponse) GetUser() *UserResponse_User
- func (*AuthStatusResponse) ProtoMessage()
- func (m *AuthStatusResponse) Reset()
- func (m *AuthStatusResponse) String() string
- func (m *AuthStatusResponse) XXX_DiscardUnknown()
- func (m *AuthStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AuthStatusResponse) XXX_Merge(src proto.Message)
- func (m *AuthStatusResponse) XXX_Size() int
- func (m *AuthStatusResponse) XXX_Unmarshal(b []byte) error
- type Network
- func (*Network) Descriptor() ([]byte, []int)
- func (m *Network) GetAssociatedUsernames() []string
- func (m *Network) GetCidr() string
- func (m *Network) GetCreatedAt() string
- func (m *Network) GetName() string
- func (m *Network) GetType() string
- func (m *Network) GetVia() string
- func (*Network) ProtoMessage()
- func (m *Network) Reset()
- func (m *Network) String() string
- func (m *Network) XXX_DiscardUnknown()
- func (m *Network) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Network) XXX_Merge(src proto.Message)
- func (m *Network) XXX_Size() int
- func (m *Network) XXX_Unmarshal(b []byte) error
- type NetworkAssociateRequest
- func (*NetworkAssociateRequest) Descriptor() ([]byte, []int)
- func (m *NetworkAssociateRequest) GetName() string
- func (m *NetworkAssociateRequest) GetUsername() string
- func (*NetworkAssociateRequest) ProtoMessage()
- func (m *NetworkAssociateRequest) Reset()
- func (m *NetworkAssociateRequest) String() string
- func (m *NetworkAssociateRequest) XXX_DiscardUnknown()
- func (m *NetworkAssociateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NetworkAssociateRequest) XXX_Merge(src proto.Message)
- func (m *NetworkAssociateRequest) XXX_Size() int
- func (m *NetworkAssociateRequest) XXX_Unmarshal(b []byte) error
- type NetworkAssociateResponse
- func (*NetworkAssociateResponse) Descriptor() ([]byte, []int)
- func (*NetworkAssociateResponse) ProtoMessage()
- func (m *NetworkAssociateResponse) Reset()
- func (m *NetworkAssociateResponse) String() string
- func (m *NetworkAssociateResponse) XXX_DiscardUnknown()
- func (m *NetworkAssociateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NetworkAssociateResponse) XXX_Merge(src proto.Message)
- func (m *NetworkAssociateResponse) XXX_Size() int
- func (m *NetworkAssociateResponse) XXX_Unmarshal(b []byte) error
- type NetworkCreateRequest
- func (*NetworkCreateRequest) Descriptor() ([]byte, []int)
- func (m *NetworkCreateRequest) GetCidr() string
- func (m *NetworkCreateRequest) GetName() string
- func (m *NetworkCreateRequest) GetType() string
- func (m *NetworkCreateRequest) GetVia() string
- func (*NetworkCreateRequest) ProtoMessage()
- func (m *NetworkCreateRequest) Reset()
- func (m *NetworkCreateRequest) String() string
- func (m *NetworkCreateRequest) XXX_DiscardUnknown()
- func (m *NetworkCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NetworkCreateRequest) XXX_Merge(src proto.Message)
- func (m *NetworkCreateRequest) XXX_Size() int
- func (m *NetworkCreateRequest) XXX_Unmarshal(b []byte) error
- type NetworkCreateResponse
- func (*NetworkCreateResponse) Descriptor() ([]byte, []int)
- func (m *NetworkCreateResponse) GetNetwork() *Network
- func (*NetworkCreateResponse) ProtoMessage()
- func (m *NetworkCreateResponse) Reset()
- func (m *NetworkCreateResponse) String() string
- func (m *NetworkCreateResponse) XXX_DiscardUnknown()
- func (m *NetworkCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NetworkCreateResponse) XXX_Merge(src proto.Message)
- func (m *NetworkCreateResponse) XXX_Size() int
- func (m *NetworkCreateResponse) XXX_Unmarshal(b []byte) error
- type NetworkDeleteRequest
- func (*NetworkDeleteRequest) Descriptor() ([]byte, []int)
- func (m *NetworkDeleteRequest) GetName() string
- func (*NetworkDeleteRequest) ProtoMessage()
- func (m *NetworkDeleteRequest) Reset()
- func (m *NetworkDeleteRequest) String() string
- func (m *NetworkDeleteRequest) XXX_DiscardUnknown()
- func (m *NetworkDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NetworkDeleteRequest) XXX_Merge(src proto.Message)
- func (m *NetworkDeleteRequest) XXX_Size() int
- func (m *NetworkDeleteRequest) XXX_Unmarshal(b []byte) error
- type NetworkDeleteResponse
- func (*NetworkDeleteResponse) Descriptor() ([]byte, []int)
- func (m *NetworkDeleteResponse) GetNetwork() *Network
- func (*NetworkDeleteResponse) ProtoMessage()
- func (m *NetworkDeleteResponse) Reset()
- func (m *NetworkDeleteResponse) String() string
- func (m *NetworkDeleteResponse) XXX_DiscardUnknown()
- func (m *NetworkDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NetworkDeleteResponse) XXX_Merge(src proto.Message)
- func (m *NetworkDeleteResponse) XXX_Size() int
- func (m *NetworkDeleteResponse) XXX_Unmarshal(b []byte) error
- type NetworkDissociateRequest
- func (*NetworkDissociateRequest) Descriptor() ([]byte, []int)
- func (m *NetworkDissociateRequest) GetName() string
- func (m *NetworkDissociateRequest) GetUsername() string
- func (*NetworkDissociateRequest) ProtoMessage()
- func (m *NetworkDissociateRequest) Reset()
- func (m *NetworkDissociateRequest) String() string
- func (m *NetworkDissociateRequest) XXX_DiscardUnknown()
- func (m *NetworkDissociateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NetworkDissociateRequest) XXX_Merge(src proto.Message)
- func (m *NetworkDissociateRequest) XXX_Size() int
- func (m *NetworkDissociateRequest) XXX_Unmarshal(b []byte) error
- type NetworkDissociateResponse
- func (*NetworkDissociateResponse) Descriptor() ([]byte, []int)
- func (*NetworkDissociateResponse) ProtoMessage()
- func (m *NetworkDissociateResponse) Reset()
- func (m *NetworkDissociateResponse) String() string
- func (m *NetworkDissociateResponse) XXX_DiscardUnknown()
- func (m *NetworkDissociateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NetworkDissociateResponse) XXX_Merge(src proto.Message)
- func (m *NetworkDissociateResponse) XXX_Size() int
- func (m *NetworkDissociateResponse) XXX_Unmarshal(b []byte) error
- type NetworkGetAllTypesRequest
- func (*NetworkGetAllTypesRequest) Descriptor() ([]byte, []int)
- func (*NetworkGetAllTypesRequest) ProtoMessage()
- func (m *NetworkGetAllTypesRequest) Reset()
- func (m *NetworkGetAllTypesRequest) String() string
- func (m *NetworkGetAllTypesRequest) XXX_DiscardUnknown()
- func (m *NetworkGetAllTypesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NetworkGetAllTypesRequest) XXX_Merge(src proto.Message)
- func (m *NetworkGetAllTypesRequest) XXX_Size() int
- func (m *NetworkGetAllTypesRequest) XXX_Unmarshal(b []byte) error
- type NetworkGetAllTypesResponse
- func (*NetworkGetAllTypesResponse) Descriptor() ([]byte, []int)
- func (m *NetworkGetAllTypesResponse) GetTypes() []*NetworkType
- func (*NetworkGetAllTypesResponse) ProtoMessage()
- func (m *NetworkGetAllTypesResponse) Reset()
- func (m *NetworkGetAllTypesResponse) String() string
- func (m *NetworkGetAllTypesResponse) XXX_DiscardUnknown()
- func (m *NetworkGetAllTypesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NetworkGetAllTypesResponse) XXX_Merge(src proto.Message)
- func (m *NetworkGetAllTypesResponse) XXX_Size() int
- func (m *NetworkGetAllTypesResponse) XXX_Unmarshal(b []byte) error
- type NetworkGetAssociatedUsersRequest
- func (*NetworkGetAssociatedUsersRequest) Descriptor() ([]byte, []int)
- func (m *NetworkGetAssociatedUsersRequest) GetName() string
- func (*NetworkGetAssociatedUsersRequest) ProtoMessage()
- func (m *NetworkGetAssociatedUsersRequest) Reset()
- func (m *NetworkGetAssociatedUsersRequest) String() string
- func (m *NetworkGetAssociatedUsersRequest) XXX_DiscardUnknown()
- func (m *NetworkGetAssociatedUsersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NetworkGetAssociatedUsersRequest) XXX_Merge(src proto.Message)
- func (m *NetworkGetAssociatedUsersRequest) XXX_Size() int
- func (m *NetworkGetAssociatedUsersRequest) XXX_Unmarshal(b []byte) error
- type NetworkGetAssociatedUsersResponse
- func (*NetworkGetAssociatedUsersResponse) Descriptor() ([]byte, []int)
- func (m *NetworkGetAssociatedUsersResponse) GetUsernames() []string
- func (*NetworkGetAssociatedUsersResponse) ProtoMessage()
- func (m *NetworkGetAssociatedUsersResponse) Reset()
- func (m *NetworkGetAssociatedUsersResponse) String() string
- func (m *NetworkGetAssociatedUsersResponse) XXX_DiscardUnknown()
- func (m *NetworkGetAssociatedUsersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NetworkGetAssociatedUsersResponse) XXX_Merge(src proto.Message)
- func (m *NetworkGetAssociatedUsersResponse) XXX_Size() int
- func (m *NetworkGetAssociatedUsersResponse) XXX_Unmarshal(b []byte) error
- type NetworkListRequest
- func (*NetworkListRequest) Descriptor() ([]byte, []int)
- func (*NetworkListRequest) ProtoMessage()
- func (m *NetworkListRequest) Reset()
- func (m *NetworkListRequest) String() string
- func (m *NetworkListRequest) XXX_DiscardUnknown()
- func (m *NetworkListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NetworkListRequest) XXX_Merge(src proto.Message)
- func (m *NetworkListRequest) XXX_Size() int
- func (m *NetworkListRequest) XXX_Unmarshal(b []byte) error
- type NetworkListResponse
- func (*NetworkListResponse) Descriptor() ([]byte, []int)
- func (m *NetworkListResponse) GetNetworks() []*Network
- func (*NetworkListResponse) ProtoMessage()
- func (m *NetworkListResponse) Reset()
- func (m *NetworkListResponse) String() string
- func (m *NetworkListResponse) XXX_DiscardUnknown()
- func (m *NetworkListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NetworkListResponse) XXX_Merge(src proto.Message)
- func (m *NetworkListResponse) XXX_Size() int
- func (m *NetworkListResponse) XXX_Unmarshal(b []byte) error
- type NetworkServiceClient
- type NetworkServiceServer
- type NetworkType
- func (*NetworkType) Descriptor() ([]byte, []int)
- func (m *NetworkType) GetDescription() string
- func (m *NetworkType) GetType() string
- func (*NetworkType) ProtoMessage()
- func (m *NetworkType) Reset()
- func (m *NetworkType) String() string
- func (m *NetworkType) XXX_DiscardUnknown()
- func (m *NetworkType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NetworkType) XXX_Merge(src proto.Message)
- func (m *NetworkType) XXX_Size() int
- func (m *NetworkType) XXX_Unmarshal(b []byte) error
- type UserCreateRequest
- func (*UserCreateRequest) Descriptor() ([]byte, []int)
- func (m *UserCreateRequest) GetHostId() uint32
- func (m *UserCreateRequest) GetIsAdmin() bool
- func (m *UserCreateRequest) GetNoGw() bool
- func (m *UserCreateRequest) GetPassword() string
- func (m *UserCreateRequest) GetUsername() string
- func (*UserCreateRequest) ProtoMessage()
- func (m *UserCreateRequest) Reset()
- func (m *UserCreateRequest) String() string
- func (m *UserCreateRequest) XXX_DiscardUnknown()
- func (m *UserCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UserCreateRequest) XXX_Merge(src proto.Message)
- func (m *UserCreateRequest) XXX_Size() int
- func (m *UserCreateRequest) XXX_Unmarshal(b []byte) error
- type UserDeleteRequest
- func (*UserDeleteRequest) Descriptor() ([]byte, []int)
- func (m *UserDeleteRequest) GetUsername() string
- func (*UserDeleteRequest) ProtoMessage()
- func (m *UserDeleteRequest) Reset()
- func (m *UserDeleteRequest) String() string
- func (m *UserDeleteRequest) XXX_DiscardUnknown()
- func (m *UserDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UserDeleteRequest) XXX_Merge(src proto.Message)
- func (m *UserDeleteRequest) XXX_Size() int
- func (m *UserDeleteRequest) XXX_Unmarshal(b []byte) error
- type UserGenConfigRequest
- func (*UserGenConfigRequest) Descriptor() ([]byte, []int)
- func (m *UserGenConfigRequest) GetUsername() string
- func (*UserGenConfigRequest) ProtoMessage()
- func (m *UserGenConfigRequest) Reset()
- func (m *UserGenConfigRequest) String() string
- func (m *UserGenConfigRequest) XXX_DiscardUnknown()
- func (m *UserGenConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UserGenConfigRequest) XXX_Merge(src proto.Message)
- func (m *UserGenConfigRequest) XXX_Size() int
- func (m *UserGenConfigRequest) XXX_Unmarshal(b []byte) error
- type UserGenConfigResponse
- func (*UserGenConfigResponse) Descriptor() ([]byte, []int)
- func (m *UserGenConfigResponse) GetClientConfig() string
- func (*UserGenConfigResponse) ProtoMessage()
- func (m *UserGenConfigResponse) Reset()
- func (m *UserGenConfigResponse) String() string
- func (m *UserGenConfigResponse) XXX_DiscardUnknown()
- func (m *UserGenConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UserGenConfigResponse) XXX_Merge(src proto.Message)
- func (m *UserGenConfigResponse) XXX_Size() int
- func (m *UserGenConfigResponse) XXX_Unmarshal(b []byte) error
- type UserListRequest
- func (*UserListRequest) Descriptor() ([]byte, []int)
- func (*UserListRequest) ProtoMessage()
- func (m *UserListRequest) Reset()
- func (m *UserListRequest) String() string
- func (m *UserListRequest) XXX_DiscardUnknown()
- func (m *UserListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UserListRequest) XXX_Merge(src proto.Message)
- func (m *UserListRequest) XXX_Size() int
- func (m *UserListRequest) XXX_Unmarshal(b []byte) error
- type UserRenewRequest
- func (*UserRenewRequest) Descriptor() ([]byte, []int)
- func (m *UserRenewRequest) GetUsername() string
- func (*UserRenewRequest) ProtoMessage()
- func (m *UserRenewRequest) Reset()
- func (m *UserRenewRequest) String() string
- func (m *UserRenewRequest) XXX_DiscardUnknown()
- func (m *UserRenewRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UserRenewRequest) XXX_Merge(src proto.Message)
- func (m *UserRenewRequest) XXX_Size() int
- func (m *UserRenewRequest) XXX_Unmarshal(b []byte) error
- type UserResponse
- func (*UserResponse) Descriptor() ([]byte, []int)
- func (m *UserResponse) GetUsers() []*UserResponse_User
- func (*UserResponse) ProtoMessage()
- func (m *UserResponse) Reset()
- func (m *UserResponse) String() string
- func (m *UserResponse) XXX_DiscardUnknown()
- func (m *UserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UserResponse) XXX_Merge(src proto.Message)
- func (m *UserResponse) XXX_Size() int
- func (m *UserResponse) XXX_Unmarshal(b []byte) error
- type UserResponse_User
- func (*UserResponse_User) Descriptor() ([]byte, []int)
- func (m *UserResponse_User) GetBytesReceived() uint64
- func (m *UserResponse_User) GetBytesSent() uint64
- func (m *UserResponse_User) GetCert() string
- func (m *UserResponse_User) GetConnectedSince() string
- func (m *UserResponse_User) GetCreatedAt() string
- func (m *UserResponse_User) GetExpiresAt() string
- func (m *UserResponse_User) GetHostId() uint32
- func (m *UserResponse_User) GetIpNet() string
- func (m *UserResponse_User) GetIsAdmin() bool
- func (m *UserResponse_User) GetIsConnected() bool
- func (m *UserResponse_User) GetNoGw() bool
- func (m *UserResponse_User) GetServerSerialNumber() string
- func (m *UserResponse_User) GetUsername() string
- func (*UserResponse_User) ProtoMessage()
- func (m *UserResponse_User) Reset()
- func (m *UserResponse_User) String() string
- func (m *UserResponse_User) XXX_DiscardUnknown()
- func (m *UserResponse_User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UserResponse_User) XXX_Merge(src proto.Message)
- func (m *UserResponse_User) XXX_Size() int
- func (m *UserResponse_User) XXX_Unmarshal(b []byte) error
- type UserServiceClient
- type UserServiceServer
- type UserUpdateRequest
- func (*UserUpdateRequest) Descriptor() ([]byte, []int)
- func (m *UserUpdateRequest) GetAdminPref() UserUpdateRequest_AdminPref
- func (m *UserUpdateRequest) GetGwpref() UserUpdateRequest_GWPref
- func (m *UserUpdateRequest) GetHostId() uint32
- func (m *UserUpdateRequest) GetPassword() string
- func (m *UserUpdateRequest) GetStaticPref() UserUpdateRequest_StaticPref
- func (m *UserUpdateRequest) GetUsername() string
- func (*UserUpdateRequest) ProtoMessage()
- func (m *UserUpdateRequest) Reset()
- func (m *UserUpdateRequest) String() string
- func (m *UserUpdateRequest) XXX_DiscardUnknown()
- func (m *UserUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UserUpdateRequest) XXX_Merge(src proto.Message)
- func (m *UserUpdateRequest) XXX_Size() int
- func (m *UserUpdateRequest) XXX_Unmarshal(b []byte) error
- type UserUpdateRequest_AdminPref
- type UserUpdateRequest_GWPref
- type UserUpdateRequest_StaticPref
- type VPNInitRequest
- func (*VPNInitRequest) Descriptor() ([]byte, []int)
- func (m *VPNInitRequest) GetDns() string
- func (m *VPNInitRequest) GetHostname() string
- func (m *VPNInitRequest) GetIpBlock() string
- func (m *VPNInitRequest) GetPort() string
- func (m *VPNInitRequest) GetProtoPref() VPNProto
- func (*VPNInitRequest) ProtoMessage()
- func (m *VPNInitRequest) Reset()
- func (m *VPNInitRequest) String() string
- func (m *VPNInitRequest) XXX_DiscardUnknown()
- func (m *VPNInitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *VPNInitRequest) XXX_Merge(src proto.Message)
- func (m *VPNInitRequest) XXX_Size() int
- func (m *VPNInitRequest) XXX_Unmarshal(b []byte) error
- type VPNInitResponse
- func (*VPNInitResponse) Descriptor() ([]byte, []int)
- func (*VPNInitResponse) ProtoMessage()
- func (m *VPNInitResponse) Reset()
- func (m *VPNInitResponse) String() string
- func (m *VPNInitResponse) XXX_DiscardUnknown()
- func (m *VPNInitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *VPNInitResponse) XXX_Merge(src proto.Message)
- func (m *VPNInitResponse) XXX_Size() int
- func (m *VPNInitResponse) XXX_Unmarshal(b []byte) error
- type VPNProto
- type VPNRestartRequest
- func (*VPNRestartRequest) Descriptor() ([]byte, []int)
- func (*VPNRestartRequest) ProtoMessage()
- func (m *VPNRestartRequest) Reset()
- func (m *VPNRestartRequest) String() string
- func (m *VPNRestartRequest) XXX_DiscardUnknown()
- func (m *VPNRestartRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *VPNRestartRequest) XXX_Merge(src proto.Message)
- func (m *VPNRestartRequest) XXX_Size() int
- func (m *VPNRestartRequest) XXX_Unmarshal(b []byte) error
- type VPNRestartResponse
- func (*VPNRestartResponse) Descriptor() ([]byte, []int)
- func (*VPNRestartResponse) ProtoMessage()
- func (m *VPNRestartResponse) Reset()
- func (m *VPNRestartResponse) String() string
- func (m *VPNRestartResponse) XXX_DiscardUnknown()
- func (m *VPNRestartResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *VPNRestartResponse) XXX_Merge(src proto.Message)
- func (m *VPNRestartResponse) XXX_Size() int
- func (m *VPNRestartResponse) XXX_Unmarshal(b []byte) error
- type VPNServiceClient
- type VPNServiceServer
- type VPNStatusRequest
- func (*VPNStatusRequest) Descriptor() ([]byte, []int)
- func (*VPNStatusRequest) ProtoMessage()
- func (m *VPNStatusRequest) Reset()
- func (m *VPNStatusRequest) String() string
- func (m *VPNStatusRequest) XXX_DiscardUnknown()
- func (m *VPNStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *VPNStatusRequest) XXX_Merge(src proto.Message)
- func (m *VPNStatusRequest) XXX_Size() int
- func (m *VPNStatusRequest) XXX_Unmarshal(b []byte) error
- type VPNStatusResponse
- func (*VPNStatusResponse) Descriptor() ([]byte, []int)
- func (m *VPNStatusResponse) GetCaCert() string
- func (m *VPNStatusResponse) GetCaExpiresAt() string
- func (m *VPNStatusResponse) GetCert() string
- func (m *VPNStatusResponse) GetCreatedAt() string
- func (m *VPNStatusResponse) GetDns() string
- func (m *VPNStatusResponse) GetExpiresAt() string
- func (m *VPNStatusResponse) GetHostname() string
- func (m *VPNStatusResponse) GetMask() string
- func (m *VPNStatusResponse) GetName() string
- func (m *VPNStatusResponse) GetNet() string
- func (m *VPNStatusResponse) GetPort() string
- func (m *VPNStatusResponse) GetProto() string
- func (m *VPNStatusResponse) GetSerialNumber() string
- func (*VPNStatusResponse) ProtoMessage()
- func (m *VPNStatusResponse) Reset()
- func (m *VPNStatusResponse) String() string
- func (m *VPNStatusResponse) XXX_DiscardUnknown()
- func (m *VPNStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *VPNStatusResponse) XXX_Merge(src proto.Message)
- func (m *VPNStatusResponse) XXX_Size() int
- func (m *VPNStatusResponse) XXX_Unmarshal(b []byte) error
- type VPNUpdateRequest
- func (*VPNUpdateRequest) Descriptor() ([]byte, []int)
- func (m *VPNUpdateRequest) GetDns() string
- func (m *VPNUpdateRequest) GetIpBlock() string
- func (*VPNUpdateRequest) ProtoMessage()
- func (m *VPNUpdateRequest) Reset()
- func (m *VPNUpdateRequest) String() string
- func (m *VPNUpdateRequest) XXX_DiscardUnknown()
- func (m *VPNUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *VPNUpdateRequest) XXX_Merge(src proto.Message)
- func (m *VPNUpdateRequest) XXX_Size() int
- func (m *VPNUpdateRequest) XXX_Unmarshal(b []byte) error
- type VPNUpdateResponse
- func (*VPNUpdateResponse) Descriptor() ([]byte, []int)
- func (*VPNUpdateResponse) ProtoMessage()
- func (m *VPNUpdateResponse) Reset()
- func (m *VPNUpdateResponse) String() string
- func (m *VPNUpdateResponse) XXX_DiscardUnknown()
- func (m *VPNUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *VPNUpdateResponse) XXX_Merge(src proto.Message)
- func (m *VPNUpdateResponse) XXX_Size() int
- func (m *VPNUpdateResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var UserUpdateRequest_AdminPref_name = map[int32]string{
0: "NOPREFADMIN",
1: "NOADMIN",
2: "ADMIN",
}
var UserUpdateRequest_AdminPref_value = map[string]int32{
"NOPREFADMIN": 0,
"NOADMIN": 1,
"ADMIN": 2,
}
var UserUpdateRequest_GWPref_name = map[int32]string{
0: "NOPREF",
1: "NOGW",
2: "GW",
}
var UserUpdateRequest_GWPref_value = map[string]int32{
"NOPREF": 0,
"NOGW": 1,
"GW": 2,
}
var UserUpdateRequest_StaticPref_name = map[int32]string{
0: "NOPREFSTATIC",
1: "NOSTATIC",
2: "STATIC",
}
var UserUpdateRequest_StaticPref_value = map[string]int32{
"NOPREFSTATIC": 0,
"NOSTATIC": 1,
"STATIC": 2,
}
var VPNProto_name = map[int32]string{
0: "NOPREF",
1: "UDP",
2: "TCP",
}
var VPNProto_value = map[string]int32{
"NOPREF": 0,
"UDP": 1,
"TCP": 2,
}
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
RegisterAuthServiceHandler 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 RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s *grpc.Server, 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
RegisterNetworkServiceHandler 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 RegisterNetworkServiceServer ¶
func RegisterNetworkServiceServer(s *grpc.Server, 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
RegisterUserServiceHandler 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 RegisterUserServiceServer ¶
func RegisterUserServiceServer(s *grpc.Server, 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
RegisterVPNServiceHandler 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 RegisterVPNServiceServer ¶
func RegisterVPNServiceServer(s *grpc.Server, srv VPNServiceServer)
Types ¶
type AuthAuthenticateRequest ¶
type AuthAuthenticateRequest struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthAuthenticateRequest) Descriptor ¶
func (*AuthAuthenticateRequest) Descriptor() ([]byte, []int)
func (*AuthAuthenticateRequest) GetPassword ¶
func (m *AuthAuthenticateRequest) GetPassword() string
func (*AuthAuthenticateRequest) GetUsername ¶
func (m *AuthAuthenticateRequest) GetUsername() string
func (*AuthAuthenticateRequest) ProtoMessage ¶
func (*AuthAuthenticateRequest) ProtoMessage()
func (*AuthAuthenticateRequest) Reset ¶
func (m *AuthAuthenticateRequest) Reset()
func (*AuthAuthenticateRequest) String ¶
func (m *AuthAuthenticateRequest) String() string
func (*AuthAuthenticateRequest) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *AuthAuthenticateRequest) XXX_DiscardUnknown()
func (*AuthAuthenticateRequest) XXX_Marshal ¶ added in v0.2.7
func (m *AuthAuthenticateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthAuthenticateRequest) XXX_Merge ¶ added in v0.2.7
func (dst *AuthAuthenticateRequest) XXX_Merge(src proto.Message)
func (*AuthAuthenticateRequest) XXX_Size ¶ added in v0.2.7
func (m *AuthAuthenticateRequest) XXX_Size() int
func (*AuthAuthenticateRequest) XXX_Unmarshal ¶ added in v0.2.7
func (m *AuthAuthenticateRequest) XXX_Unmarshal(b []byte) error
type AuthAuthenticateResponse ¶
type AuthAuthenticateResponse struct { Token string `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthAuthenticateResponse) Descriptor ¶
func (*AuthAuthenticateResponse) Descriptor() ([]byte, []int)
func (*AuthAuthenticateResponse) GetToken ¶
func (m *AuthAuthenticateResponse) GetToken() string
func (*AuthAuthenticateResponse) ProtoMessage ¶
func (*AuthAuthenticateResponse) ProtoMessage()
func (*AuthAuthenticateResponse) Reset ¶
func (m *AuthAuthenticateResponse) Reset()
func (*AuthAuthenticateResponse) String ¶
func (m *AuthAuthenticateResponse) String() string
func (*AuthAuthenticateResponse) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *AuthAuthenticateResponse) XXX_DiscardUnknown()
func (*AuthAuthenticateResponse) XXX_Marshal ¶ added in v0.2.7
func (m *AuthAuthenticateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthAuthenticateResponse) XXX_Merge ¶ added in v0.2.7
func (dst *AuthAuthenticateResponse) XXX_Merge(src proto.Message)
func (*AuthAuthenticateResponse) XXX_Size ¶ added in v0.2.7
func (m *AuthAuthenticateResponse) XXX_Size() int
func (*AuthAuthenticateResponse) XXX_Unmarshal ¶ added in v0.2.7
func (m *AuthAuthenticateResponse) XXX_Unmarshal(b []byte) error
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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthServiceClient ¶
func NewAuthServiceClient(cc *grpc.ClientConn) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface { Status(context.Context, *AuthStatusRequest) (*AuthStatusResponse, error) Authenticate(context.Context, *AuthAuthenticateRequest) (*AuthAuthenticateResponse, error) }
AuthServiceServer is the server API for AuthService service.
type AuthStatusRequest ¶
type AuthStatusRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthStatusRequest) Descriptor ¶
func (*AuthStatusRequest) Descriptor() ([]byte, []int)
func (*AuthStatusRequest) ProtoMessage ¶
func (*AuthStatusRequest) ProtoMessage()
func (*AuthStatusRequest) Reset ¶
func (m *AuthStatusRequest) Reset()
func (*AuthStatusRequest) String ¶
func (m *AuthStatusRequest) String() string
func (*AuthStatusRequest) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *AuthStatusRequest) XXX_DiscardUnknown()
func (*AuthStatusRequest) XXX_Marshal ¶ added in v0.2.7
func (m *AuthStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthStatusRequest) XXX_Merge ¶ added in v0.2.7
func (dst *AuthStatusRequest) XXX_Merge(src proto.Message)
func (*AuthStatusRequest) XXX_Size ¶ added in v0.2.7
func (m *AuthStatusRequest) XXX_Size() int
func (*AuthStatusRequest) XXX_Unmarshal ¶ added in v0.2.7
func (m *AuthStatusRequest) XXX_Unmarshal(b []byte) error
type AuthStatusResponse ¶
type AuthStatusResponse struct { User *UserResponse_User `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"` IsRoot bool `protobuf:"varint,2,opt,name=is_root,json=isRoot" json:"is_root,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthStatusResponse) Descriptor ¶
func (*AuthStatusResponse) Descriptor() ([]byte, []int)
func (*AuthStatusResponse) GetIsRoot ¶ added in v0.2.0
func (m *AuthStatusResponse) GetIsRoot() bool
func (*AuthStatusResponse) GetUser ¶
func (m *AuthStatusResponse) GetUser() *UserResponse_User
func (*AuthStatusResponse) ProtoMessage ¶
func (*AuthStatusResponse) ProtoMessage()
func (*AuthStatusResponse) Reset ¶
func (m *AuthStatusResponse) Reset()
func (*AuthStatusResponse) String ¶
func (m *AuthStatusResponse) String() string
func (*AuthStatusResponse) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *AuthStatusResponse) XXX_DiscardUnknown()
func (*AuthStatusResponse) XXX_Marshal ¶ added in v0.2.7
func (m *AuthStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthStatusResponse) XXX_Merge ¶ added in v0.2.7
func (dst *AuthStatusResponse) XXX_Merge(src proto.Message)
func (*AuthStatusResponse) XXX_Size ¶ added in v0.2.7
func (m *AuthStatusResponse) XXX_Size() int
func (*AuthStatusResponse) XXX_Unmarshal ¶ added in v0.2.7
func (m *AuthStatusResponse) XXX_Unmarshal(b []byte) error
type Network ¶
type Network struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Cidr string `protobuf:"bytes,2,opt,name=cidr" json:"cidr,omitempty"` Type string `protobuf:"bytes,3,opt,name=type" json:"type,omitempty"` CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt" json:"created_at,omitempty"` AssociatedUsernames []string `protobuf:"bytes,5,rep,name=associated_usernames,json=associatedUsernames" json:"associated_usernames,omitempty"` Via string `protobuf:"bytes,6,opt,name=via" json:"via,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Network) Descriptor ¶
func (*Network) GetAssociatedUsernames ¶
func (*Network) GetCreatedAt ¶
func (*Network) ProtoMessage ¶
func (*Network) ProtoMessage()
func (*Network) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *Network) XXX_DiscardUnknown()
func (*Network) XXX_Marshal ¶ added in v0.2.7
func (*Network) XXX_Unmarshal ¶ added in v0.2.7
type NetworkAssociateRequest ¶
type NetworkAssociateRequest struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NetworkAssociateRequest) Descriptor ¶
func (*NetworkAssociateRequest) Descriptor() ([]byte, []int)
func (*NetworkAssociateRequest) GetName ¶
func (m *NetworkAssociateRequest) GetName() string
func (*NetworkAssociateRequest) GetUsername ¶
func (m *NetworkAssociateRequest) GetUsername() string
func (*NetworkAssociateRequest) ProtoMessage ¶
func (*NetworkAssociateRequest) ProtoMessage()
func (*NetworkAssociateRequest) Reset ¶
func (m *NetworkAssociateRequest) Reset()
func (*NetworkAssociateRequest) String ¶
func (m *NetworkAssociateRequest) String() string
func (*NetworkAssociateRequest) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *NetworkAssociateRequest) XXX_DiscardUnknown()
func (*NetworkAssociateRequest) XXX_Marshal ¶ added in v0.2.7
func (m *NetworkAssociateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NetworkAssociateRequest) XXX_Merge ¶ added in v0.2.7
func (dst *NetworkAssociateRequest) XXX_Merge(src proto.Message)
func (*NetworkAssociateRequest) XXX_Size ¶ added in v0.2.7
func (m *NetworkAssociateRequest) XXX_Size() int
func (*NetworkAssociateRequest) XXX_Unmarshal ¶ added in v0.2.7
func (m *NetworkAssociateRequest) XXX_Unmarshal(b []byte) error
type NetworkAssociateResponse ¶
type NetworkAssociateResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NetworkAssociateResponse) Descriptor ¶
func (*NetworkAssociateResponse) Descriptor() ([]byte, []int)
func (*NetworkAssociateResponse) ProtoMessage ¶
func (*NetworkAssociateResponse) ProtoMessage()
func (*NetworkAssociateResponse) Reset ¶
func (m *NetworkAssociateResponse) Reset()
func (*NetworkAssociateResponse) String ¶
func (m *NetworkAssociateResponse) String() string
func (*NetworkAssociateResponse) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *NetworkAssociateResponse) XXX_DiscardUnknown()
func (*NetworkAssociateResponse) XXX_Marshal ¶ added in v0.2.7
func (m *NetworkAssociateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NetworkAssociateResponse) XXX_Merge ¶ added in v0.2.7
func (dst *NetworkAssociateResponse) XXX_Merge(src proto.Message)
func (*NetworkAssociateResponse) XXX_Size ¶ added in v0.2.7
func (m *NetworkAssociateResponse) XXX_Size() int
func (*NetworkAssociateResponse) XXX_Unmarshal ¶ added in v0.2.7
func (m *NetworkAssociateResponse) XXX_Unmarshal(b []byte) error
type NetworkCreateRequest ¶
type NetworkCreateRequest struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Cidr string `protobuf:"bytes,2,opt,name=cidr" json:"cidr,omitempty"` Type string `protobuf:"bytes,3,opt,name=type" json:"type,omitempty"` Via string `protobuf:"bytes,4,opt,name=via" json:"via,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NetworkCreateRequest) Descriptor ¶
func (*NetworkCreateRequest) Descriptor() ([]byte, []int)
func (*NetworkCreateRequest) GetCidr ¶
func (m *NetworkCreateRequest) GetCidr() string
func (*NetworkCreateRequest) GetName ¶
func (m *NetworkCreateRequest) GetName() string
func (*NetworkCreateRequest) GetType ¶
func (m *NetworkCreateRequest) GetType() string
func (*NetworkCreateRequest) GetVia ¶
func (m *NetworkCreateRequest) GetVia() string
func (*NetworkCreateRequest) ProtoMessage ¶
func (*NetworkCreateRequest) ProtoMessage()
func (*NetworkCreateRequest) Reset ¶
func (m *NetworkCreateRequest) Reset()
func (*NetworkCreateRequest) String ¶
func (m *NetworkCreateRequest) String() string
func (*NetworkCreateRequest) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *NetworkCreateRequest) XXX_DiscardUnknown()
func (*NetworkCreateRequest) XXX_Marshal ¶ added in v0.2.7
func (m *NetworkCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NetworkCreateRequest) XXX_Merge ¶ added in v0.2.7
func (dst *NetworkCreateRequest) XXX_Merge(src proto.Message)
func (*NetworkCreateRequest) XXX_Size ¶ added in v0.2.7
func (m *NetworkCreateRequest) XXX_Size() int
func (*NetworkCreateRequest) XXX_Unmarshal ¶ added in v0.2.7
func (m *NetworkCreateRequest) XXX_Unmarshal(b []byte) error
type NetworkCreateResponse ¶
type NetworkCreateResponse struct { Network *Network `protobuf:"bytes,1,opt,name=network" json:"network,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NetworkCreateResponse) Descriptor ¶
func (*NetworkCreateResponse) Descriptor() ([]byte, []int)
func (*NetworkCreateResponse) GetNetwork ¶
func (m *NetworkCreateResponse) GetNetwork() *Network
func (*NetworkCreateResponse) ProtoMessage ¶
func (*NetworkCreateResponse) ProtoMessage()
func (*NetworkCreateResponse) Reset ¶
func (m *NetworkCreateResponse) Reset()
func (*NetworkCreateResponse) String ¶
func (m *NetworkCreateResponse) String() string
func (*NetworkCreateResponse) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *NetworkCreateResponse) XXX_DiscardUnknown()
func (*NetworkCreateResponse) XXX_Marshal ¶ added in v0.2.7
func (m *NetworkCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NetworkCreateResponse) XXX_Merge ¶ added in v0.2.7
func (dst *NetworkCreateResponse) XXX_Merge(src proto.Message)
func (*NetworkCreateResponse) XXX_Size ¶ added in v0.2.7
func (m *NetworkCreateResponse) XXX_Size() int
func (*NetworkCreateResponse) XXX_Unmarshal ¶ added in v0.2.7
func (m *NetworkCreateResponse) XXX_Unmarshal(b []byte) error
type NetworkDeleteRequest ¶
type NetworkDeleteRequest struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NetworkDeleteRequest) Descriptor ¶
func (*NetworkDeleteRequest) Descriptor() ([]byte, []int)
func (*NetworkDeleteRequest) GetName ¶
func (m *NetworkDeleteRequest) GetName() string
func (*NetworkDeleteRequest) ProtoMessage ¶
func (*NetworkDeleteRequest) ProtoMessage()
func (*NetworkDeleteRequest) Reset ¶
func (m *NetworkDeleteRequest) Reset()
func (*NetworkDeleteRequest) String ¶
func (m *NetworkDeleteRequest) String() string
func (*NetworkDeleteRequest) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *NetworkDeleteRequest) XXX_DiscardUnknown()
func (*NetworkDeleteRequest) XXX_Marshal ¶ added in v0.2.7
func (m *NetworkDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NetworkDeleteRequest) XXX_Merge ¶ added in v0.2.7
func (dst *NetworkDeleteRequest) XXX_Merge(src proto.Message)
func (*NetworkDeleteRequest) XXX_Size ¶ added in v0.2.7
func (m *NetworkDeleteRequest) XXX_Size() int
func (*NetworkDeleteRequest) XXX_Unmarshal ¶ added in v0.2.7
func (m *NetworkDeleteRequest) XXX_Unmarshal(b []byte) error
type NetworkDeleteResponse ¶
type NetworkDeleteResponse struct { Network *Network `protobuf:"bytes,1,opt,name=network" json:"network,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NetworkDeleteResponse) Descriptor ¶
func (*NetworkDeleteResponse) Descriptor() ([]byte, []int)
func (*NetworkDeleteResponse) GetNetwork ¶
func (m *NetworkDeleteResponse) GetNetwork() *Network
func (*NetworkDeleteResponse) ProtoMessage ¶
func (*NetworkDeleteResponse) ProtoMessage()
func (*NetworkDeleteResponse) Reset ¶
func (m *NetworkDeleteResponse) Reset()
func (*NetworkDeleteResponse) String ¶
func (m *NetworkDeleteResponse) String() string
func (*NetworkDeleteResponse) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *NetworkDeleteResponse) XXX_DiscardUnknown()
func (*NetworkDeleteResponse) XXX_Marshal ¶ added in v0.2.7
func (m *NetworkDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NetworkDeleteResponse) XXX_Merge ¶ added in v0.2.7
func (dst *NetworkDeleteResponse) XXX_Merge(src proto.Message)
func (*NetworkDeleteResponse) XXX_Size ¶ added in v0.2.7
func (m *NetworkDeleteResponse) XXX_Size() int
func (*NetworkDeleteResponse) XXX_Unmarshal ¶ added in v0.2.7
func (m *NetworkDeleteResponse) XXX_Unmarshal(b []byte) error
type NetworkDissociateRequest ¶
type NetworkDissociateRequest struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NetworkDissociateRequest) Descriptor ¶
func (*NetworkDissociateRequest) Descriptor() ([]byte, []int)
func (*NetworkDissociateRequest) GetName ¶
func (m *NetworkDissociateRequest) GetName() string
func (*NetworkDissociateRequest) GetUsername ¶
func (m *NetworkDissociateRequest) GetUsername() string
func (*NetworkDissociateRequest) ProtoMessage ¶
func (*NetworkDissociateRequest) ProtoMessage()
func (*NetworkDissociateRequest) Reset ¶
func (m *NetworkDissociateRequest) Reset()
func (*NetworkDissociateRequest) String ¶
func (m *NetworkDissociateRequest) String() string
func (*NetworkDissociateRequest) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *NetworkDissociateRequest) XXX_DiscardUnknown()
func (*NetworkDissociateRequest) XXX_Marshal ¶ added in v0.2.7
func (m *NetworkDissociateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NetworkDissociateRequest) XXX_Merge ¶ added in v0.2.7
func (dst *NetworkDissociateRequest) XXX_Merge(src proto.Message)
func (*NetworkDissociateRequest) XXX_Size ¶ added in v0.2.7
func (m *NetworkDissociateRequest) XXX_Size() int
func (*NetworkDissociateRequest) XXX_Unmarshal ¶ added in v0.2.7
func (m *NetworkDissociateRequest) XXX_Unmarshal(b []byte) error
type NetworkDissociateResponse ¶
type NetworkDissociateResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NetworkDissociateResponse) Descriptor ¶
func (*NetworkDissociateResponse) Descriptor() ([]byte, []int)
func (*NetworkDissociateResponse) ProtoMessage ¶
func (*NetworkDissociateResponse) ProtoMessage()
func (*NetworkDissociateResponse) Reset ¶
func (m *NetworkDissociateResponse) Reset()
func (*NetworkDissociateResponse) String ¶
func (m *NetworkDissociateResponse) String() string
func (*NetworkDissociateResponse) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *NetworkDissociateResponse) XXX_DiscardUnknown()
func (*NetworkDissociateResponse) XXX_Marshal ¶ added in v0.2.7
func (m *NetworkDissociateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NetworkDissociateResponse) XXX_Merge ¶ added in v0.2.7
func (dst *NetworkDissociateResponse) XXX_Merge(src proto.Message)
func (*NetworkDissociateResponse) XXX_Size ¶ added in v0.2.7
func (m *NetworkDissociateResponse) XXX_Size() int
func (*NetworkDissociateResponse) XXX_Unmarshal ¶ added in v0.2.7
func (m *NetworkDissociateResponse) XXX_Unmarshal(b []byte) error
type NetworkGetAllTypesRequest ¶
type NetworkGetAllTypesRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NetworkGetAllTypesRequest) Descriptor ¶
func (*NetworkGetAllTypesRequest) Descriptor() ([]byte, []int)
func (*NetworkGetAllTypesRequest) ProtoMessage ¶
func (*NetworkGetAllTypesRequest) ProtoMessage()
func (*NetworkGetAllTypesRequest) Reset ¶
func (m *NetworkGetAllTypesRequest) Reset()
func (*NetworkGetAllTypesRequest) String ¶
func (m *NetworkGetAllTypesRequest) String() string
func (*NetworkGetAllTypesRequest) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *NetworkGetAllTypesRequest) XXX_DiscardUnknown()
func (*NetworkGetAllTypesRequest) XXX_Marshal ¶ added in v0.2.7
func (m *NetworkGetAllTypesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NetworkGetAllTypesRequest) XXX_Merge ¶ added in v0.2.7
func (dst *NetworkGetAllTypesRequest) XXX_Merge(src proto.Message)
func (*NetworkGetAllTypesRequest) XXX_Size ¶ added in v0.2.7
func (m *NetworkGetAllTypesRequest) XXX_Size() int
func (*NetworkGetAllTypesRequest) XXX_Unmarshal ¶ added in v0.2.7
func (m *NetworkGetAllTypesRequest) XXX_Unmarshal(b []byte) error
type NetworkGetAllTypesResponse ¶
type NetworkGetAllTypesResponse struct { Types []*NetworkType `protobuf:"bytes,1,rep,name=types" json:"types,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NetworkGetAllTypesResponse) Descriptor ¶
func (*NetworkGetAllTypesResponse) Descriptor() ([]byte, []int)
func (*NetworkGetAllTypesResponse) GetTypes ¶
func (m *NetworkGetAllTypesResponse) GetTypes() []*NetworkType
func (*NetworkGetAllTypesResponse) ProtoMessage ¶
func (*NetworkGetAllTypesResponse) ProtoMessage()
func (*NetworkGetAllTypesResponse) Reset ¶
func (m *NetworkGetAllTypesResponse) Reset()
func (*NetworkGetAllTypesResponse) String ¶
func (m *NetworkGetAllTypesResponse) String() string
func (*NetworkGetAllTypesResponse) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *NetworkGetAllTypesResponse) XXX_DiscardUnknown()
func (*NetworkGetAllTypesResponse) XXX_Marshal ¶ added in v0.2.7
func (m *NetworkGetAllTypesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NetworkGetAllTypesResponse) XXX_Merge ¶ added in v0.2.7
func (dst *NetworkGetAllTypesResponse) XXX_Merge(src proto.Message)
func (*NetworkGetAllTypesResponse) XXX_Size ¶ added in v0.2.7
func (m *NetworkGetAllTypesResponse) XXX_Size() int
func (*NetworkGetAllTypesResponse) XXX_Unmarshal ¶ added in v0.2.7
func (m *NetworkGetAllTypesResponse) XXX_Unmarshal(b []byte) error
type NetworkGetAssociatedUsersRequest ¶
type NetworkGetAssociatedUsersRequest struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NetworkGetAssociatedUsersRequest) Descriptor ¶
func (*NetworkGetAssociatedUsersRequest) Descriptor() ([]byte, []int)
func (*NetworkGetAssociatedUsersRequest) GetName ¶
func (m *NetworkGetAssociatedUsersRequest) GetName() string
func (*NetworkGetAssociatedUsersRequest) ProtoMessage ¶
func (*NetworkGetAssociatedUsersRequest) ProtoMessage()
func (*NetworkGetAssociatedUsersRequest) Reset ¶
func (m *NetworkGetAssociatedUsersRequest) Reset()
func (*NetworkGetAssociatedUsersRequest) String ¶
func (m *NetworkGetAssociatedUsersRequest) String() string
func (*NetworkGetAssociatedUsersRequest) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *NetworkGetAssociatedUsersRequest) XXX_DiscardUnknown()
func (*NetworkGetAssociatedUsersRequest) XXX_Marshal ¶ added in v0.2.7
func (m *NetworkGetAssociatedUsersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NetworkGetAssociatedUsersRequest) XXX_Merge ¶ added in v0.2.7
func (dst *NetworkGetAssociatedUsersRequest) XXX_Merge(src proto.Message)
func (*NetworkGetAssociatedUsersRequest) XXX_Size ¶ added in v0.2.7
func (m *NetworkGetAssociatedUsersRequest) XXX_Size() int
func (*NetworkGetAssociatedUsersRequest) XXX_Unmarshal ¶ added in v0.2.7
func (m *NetworkGetAssociatedUsersRequest) XXX_Unmarshal(b []byte) error
type NetworkGetAssociatedUsersResponse ¶
type NetworkGetAssociatedUsersResponse struct { Usernames []string `protobuf:"bytes,1,rep,name=usernames" json:"usernames,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NetworkGetAssociatedUsersResponse) Descriptor ¶
func (*NetworkGetAssociatedUsersResponse) Descriptor() ([]byte, []int)
func (*NetworkGetAssociatedUsersResponse) GetUsernames ¶
func (m *NetworkGetAssociatedUsersResponse) GetUsernames() []string
func (*NetworkGetAssociatedUsersResponse) ProtoMessage ¶
func (*NetworkGetAssociatedUsersResponse) ProtoMessage()
func (*NetworkGetAssociatedUsersResponse) Reset ¶
func (m *NetworkGetAssociatedUsersResponse) Reset()
func (*NetworkGetAssociatedUsersResponse) String ¶
func (m *NetworkGetAssociatedUsersResponse) String() string
func (*NetworkGetAssociatedUsersResponse) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *NetworkGetAssociatedUsersResponse) XXX_DiscardUnknown()
func (*NetworkGetAssociatedUsersResponse) XXX_Marshal ¶ added in v0.2.7
func (m *NetworkGetAssociatedUsersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NetworkGetAssociatedUsersResponse) XXX_Merge ¶ added in v0.2.7
func (dst *NetworkGetAssociatedUsersResponse) XXX_Merge(src proto.Message)
func (*NetworkGetAssociatedUsersResponse) XXX_Size ¶ added in v0.2.7
func (m *NetworkGetAssociatedUsersResponse) XXX_Size() int
func (*NetworkGetAssociatedUsersResponse) XXX_Unmarshal ¶ added in v0.2.7
func (m *NetworkGetAssociatedUsersResponse) XXX_Unmarshal(b []byte) error
type NetworkListRequest ¶
type NetworkListRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NetworkListRequest) Descriptor ¶
func (*NetworkListRequest) Descriptor() ([]byte, []int)
func (*NetworkListRequest) ProtoMessage ¶
func (*NetworkListRequest) ProtoMessage()
func (*NetworkListRequest) Reset ¶
func (m *NetworkListRequest) Reset()
func (*NetworkListRequest) String ¶
func (m *NetworkListRequest) String() string
func (*NetworkListRequest) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *NetworkListRequest) XXX_DiscardUnknown()
func (*NetworkListRequest) XXX_Marshal ¶ added in v0.2.7
func (m *NetworkListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NetworkListRequest) XXX_Merge ¶ added in v0.2.7
func (dst *NetworkListRequest) XXX_Merge(src proto.Message)
func (*NetworkListRequest) XXX_Size ¶ added in v0.2.7
func (m *NetworkListRequest) XXX_Size() int
func (*NetworkListRequest) XXX_Unmarshal ¶ added in v0.2.7
func (m *NetworkListRequest) XXX_Unmarshal(b []byte) error
type NetworkListResponse ¶
type NetworkListResponse struct { Networks []*Network `protobuf:"bytes,1,rep,name=networks" json:"networks,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NetworkListResponse) Descriptor ¶
func (*NetworkListResponse) Descriptor() ([]byte, []int)
func (*NetworkListResponse) GetNetworks ¶
func (m *NetworkListResponse) GetNetworks() []*Network
func (*NetworkListResponse) ProtoMessage ¶
func (*NetworkListResponse) ProtoMessage()
func (*NetworkListResponse) Reset ¶
func (m *NetworkListResponse) Reset()
func (*NetworkListResponse) String ¶
func (m *NetworkListResponse) String() string
func (*NetworkListResponse) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *NetworkListResponse) XXX_DiscardUnknown()
func (*NetworkListResponse) XXX_Marshal ¶ added in v0.2.7
func (m *NetworkListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NetworkListResponse) XXX_Merge ¶ added in v0.2.7
func (dst *NetworkListResponse) XXX_Merge(src proto.Message)
func (*NetworkListResponse) XXX_Size ¶ added in v0.2.7
func (m *NetworkListResponse) XXX_Size() int
func (*NetworkListResponse) XXX_Unmarshal ¶ added in v0.2.7
func (m *NetworkListResponse) XXX_Unmarshal(b []byte) error
type NetworkServiceClient ¶
type NetworkServiceClient interface { Create(ctx context.Context, in *NetworkCreateRequest, opts ...grpc.CallOption) (*NetworkCreateResponse, error) List(ctx context.Context, in *NetworkListRequest, opts ...grpc.CallOption) (*NetworkListResponse, error) Delete(ctx context.Context, in *NetworkDeleteRequest, opts ...grpc.CallOption) (*NetworkDeleteResponse, error) GetAllTypes(ctx context.Context, in *NetworkGetAllTypesRequest, opts ...grpc.CallOption) (*NetworkGetAllTypesResponse, error) GetAssociatedUsers(ctx context.Context, in *NetworkGetAssociatedUsersRequest, opts ...grpc.CallOption) (*NetworkGetAssociatedUsersResponse, error) Associate(ctx context.Context, in *NetworkAssociateRequest, opts ...grpc.CallOption) (*NetworkAssociateResponse, error) Dissociate(ctx context.Context, in *NetworkDissociateRequest, opts ...grpc.CallOption) (*NetworkDissociateResponse, error) }
NetworkServiceClient is the client API for NetworkService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewNetworkServiceClient ¶
func NewNetworkServiceClient(cc *grpc.ClientConn) NetworkServiceClient
type NetworkServiceServer ¶
type NetworkServiceServer interface { Create(context.Context, *NetworkCreateRequest) (*NetworkCreateResponse, error) List(context.Context, *NetworkListRequest) (*NetworkListResponse, error) Delete(context.Context, *NetworkDeleteRequest) (*NetworkDeleteResponse, error) GetAllTypes(context.Context, *NetworkGetAllTypesRequest) (*NetworkGetAllTypesResponse, error) GetAssociatedUsers(context.Context, *NetworkGetAssociatedUsersRequest) (*NetworkGetAssociatedUsersResponse, error) Associate(context.Context, *NetworkAssociateRequest) (*NetworkAssociateResponse, error) Dissociate(context.Context, *NetworkDissociateRequest) (*NetworkDissociateResponse, error) }
NetworkServiceServer is the server API for NetworkService service.
type NetworkType ¶
type NetworkType struct { Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"` Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NetworkType) Descriptor ¶
func (*NetworkType) Descriptor() ([]byte, []int)
func (*NetworkType) GetDescription ¶
func (m *NetworkType) GetDescription() string
func (*NetworkType) GetType ¶
func (m *NetworkType) GetType() string
func (*NetworkType) ProtoMessage ¶
func (*NetworkType) ProtoMessage()
func (*NetworkType) Reset ¶
func (m *NetworkType) Reset()
func (*NetworkType) String ¶
func (m *NetworkType) String() string
func (*NetworkType) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *NetworkType) XXX_DiscardUnknown()
func (*NetworkType) XXX_Marshal ¶ added in v0.2.7
func (m *NetworkType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NetworkType) XXX_Merge ¶ added in v0.2.7
func (dst *NetworkType) XXX_Merge(src proto.Message)
func (*NetworkType) XXX_Size ¶ added in v0.2.7
func (m *NetworkType) XXX_Size() int
func (*NetworkType) XXX_Unmarshal ¶ added in v0.2.7
func (m *NetworkType) XXX_Unmarshal(b []byte) error
type UserCreateRequest ¶
type UserCreateRequest struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"` NoGw bool `protobuf:"varint,3,opt,name=no_gw,json=noGw" json:"no_gw,omitempty"` HostId uint32 `protobuf:"varint,4,opt,name=host_id,json=hostId" json:"host_id,omitempty"` IsAdmin bool `protobuf:"varint,5,opt,name=is_admin,json=isAdmin" json:"is_admin,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserCreateRequest) Descriptor ¶
func (*UserCreateRequest) Descriptor() ([]byte, []int)
func (*UserCreateRequest) GetHostId ¶
func (m *UserCreateRequest) GetHostId() uint32
func (*UserCreateRequest) GetIsAdmin ¶
func (m *UserCreateRequest) GetIsAdmin() bool
func (*UserCreateRequest) GetNoGw ¶ added in v0.2.0
func (m *UserCreateRequest) GetNoGw() bool
func (*UserCreateRequest) GetPassword ¶
func (m *UserCreateRequest) GetPassword() string
func (*UserCreateRequest) GetUsername ¶
func (m *UserCreateRequest) GetUsername() string
func (*UserCreateRequest) ProtoMessage ¶
func (*UserCreateRequest) ProtoMessage()
func (*UserCreateRequest) Reset ¶
func (m *UserCreateRequest) Reset()
func (*UserCreateRequest) String ¶
func (m *UserCreateRequest) String() string
func (*UserCreateRequest) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *UserCreateRequest) XXX_DiscardUnknown()
func (*UserCreateRequest) XXX_Marshal ¶ added in v0.2.7
func (m *UserCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserCreateRequest) XXX_Merge ¶ added in v0.2.7
func (dst *UserCreateRequest) XXX_Merge(src proto.Message)
func (*UserCreateRequest) XXX_Size ¶ added in v0.2.7
func (m *UserCreateRequest) XXX_Size() int
func (*UserCreateRequest) XXX_Unmarshal ¶ added in v0.2.7
func (m *UserCreateRequest) XXX_Unmarshal(b []byte) error
type UserDeleteRequest ¶
type UserDeleteRequest struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserDeleteRequest) Descriptor ¶
func (*UserDeleteRequest) Descriptor() ([]byte, []int)
func (*UserDeleteRequest) GetUsername ¶
func (m *UserDeleteRequest) GetUsername() string
func (*UserDeleteRequest) ProtoMessage ¶
func (*UserDeleteRequest) ProtoMessage()
func (*UserDeleteRequest) Reset ¶
func (m *UserDeleteRequest) Reset()
func (*UserDeleteRequest) String ¶
func (m *UserDeleteRequest) String() string
func (*UserDeleteRequest) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *UserDeleteRequest) XXX_DiscardUnknown()
func (*UserDeleteRequest) XXX_Marshal ¶ added in v0.2.7
func (m *UserDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserDeleteRequest) XXX_Merge ¶ added in v0.2.7
func (dst *UserDeleteRequest) XXX_Merge(src proto.Message)
func (*UserDeleteRequest) XXX_Size ¶ added in v0.2.7
func (m *UserDeleteRequest) XXX_Size() int
func (*UserDeleteRequest) XXX_Unmarshal ¶ added in v0.2.7
func (m *UserDeleteRequest) XXX_Unmarshal(b []byte) error
type UserGenConfigRequest ¶
type UserGenConfigRequest struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserGenConfigRequest) Descriptor ¶
func (*UserGenConfigRequest) Descriptor() ([]byte, []int)
func (*UserGenConfigRequest) GetUsername ¶
func (m *UserGenConfigRequest) GetUsername() string
func (*UserGenConfigRequest) ProtoMessage ¶
func (*UserGenConfigRequest) ProtoMessage()
func (*UserGenConfigRequest) Reset ¶
func (m *UserGenConfigRequest) Reset()
func (*UserGenConfigRequest) String ¶
func (m *UserGenConfigRequest) String() string
func (*UserGenConfigRequest) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *UserGenConfigRequest) XXX_DiscardUnknown()
func (*UserGenConfigRequest) XXX_Marshal ¶ added in v0.2.7
func (m *UserGenConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserGenConfigRequest) XXX_Merge ¶ added in v0.2.7
func (dst *UserGenConfigRequest) XXX_Merge(src proto.Message)
func (*UserGenConfigRequest) XXX_Size ¶ added in v0.2.7
func (m *UserGenConfigRequest) XXX_Size() int
func (*UserGenConfigRequest) XXX_Unmarshal ¶ added in v0.2.7
func (m *UserGenConfigRequest) XXX_Unmarshal(b []byte) error
type UserGenConfigResponse ¶
type UserGenConfigResponse struct { ClientConfig string `protobuf:"bytes,1,opt,name=client_config,json=clientConfig" json:"client_config,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserGenConfigResponse) Descriptor ¶
func (*UserGenConfigResponse) Descriptor() ([]byte, []int)
func (*UserGenConfigResponse) GetClientConfig ¶
func (m *UserGenConfigResponse) GetClientConfig() string
func (*UserGenConfigResponse) ProtoMessage ¶
func (*UserGenConfigResponse) ProtoMessage()
func (*UserGenConfigResponse) Reset ¶
func (m *UserGenConfigResponse) Reset()
func (*UserGenConfigResponse) String ¶
func (m *UserGenConfigResponse) String() string
func (*UserGenConfigResponse) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *UserGenConfigResponse) XXX_DiscardUnknown()
func (*UserGenConfigResponse) XXX_Marshal ¶ added in v0.2.7
func (m *UserGenConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserGenConfigResponse) XXX_Merge ¶ added in v0.2.7
func (dst *UserGenConfigResponse) XXX_Merge(src proto.Message)
func (*UserGenConfigResponse) XXX_Size ¶ added in v0.2.7
func (m *UserGenConfigResponse) XXX_Size() int
func (*UserGenConfigResponse) XXX_Unmarshal ¶ added in v0.2.7
func (m *UserGenConfigResponse) XXX_Unmarshal(b []byte) error
type UserListRequest ¶
type UserListRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserListRequest) Descriptor ¶
func (*UserListRequest) Descriptor() ([]byte, []int)
func (*UserListRequest) ProtoMessage ¶
func (*UserListRequest) ProtoMessage()
func (*UserListRequest) Reset ¶
func (m *UserListRequest) Reset()
func (*UserListRequest) String ¶
func (m *UserListRequest) String() string
func (*UserListRequest) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *UserListRequest) XXX_DiscardUnknown()
func (*UserListRequest) XXX_Marshal ¶ added in v0.2.7
func (m *UserListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserListRequest) XXX_Merge ¶ added in v0.2.7
func (dst *UserListRequest) XXX_Merge(src proto.Message)
func (*UserListRequest) XXX_Size ¶ added in v0.2.7
func (m *UserListRequest) XXX_Size() int
func (*UserListRequest) XXX_Unmarshal ¶ added in v0.2.7
func (m *UserListRequest) XXX_Unmarshal(b []byte) error
type UserRenewRequest ¶
type UserRenewRequest struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserRenewRequest) Descriptor ¶
func (*UserRenewRequest) Descriptor() ([]byte, []int)
func (*UserRenewRequest) GetUsername ¶
func (m *UserRenewRequest) GetUsername() string
func (*UserRenewRequest) ProtoMessage ¶
func (*UserRenewRequest) ProtoMessage()
func (*UserRenewRequest) Reset ¶
func (m *UserRenewRequest) Reset()
func (*UserRenewRequest) String ¶
func (m *UserRenewRequest) String() string
func (*UserRenewRequest) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *UserRenewRequest) XXX_DiscardUnknown()
func (*UserRenewRequest) XXX_Marshal ¶ added in v0.2.7
func (m *UserRenewRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserRenewRequest) XXX_Merge ¶ added in v0.2.7
func (dst *UserRenewRequest) XXX_Merge(src proto.Message)
func (*UserRenewRequest) XXX_Size ¶ added in v0.2.7
func (m *UserRenewRequest) XXX_Size() int
func (*UserRenewRequest) XXX_Unmarshal ¶ added in v0.2.7
func (m *UserRenewRequest) XXX_Unmarshal(b []byte) error
type UserResponse ¶
type UserResponse struct { Users []*UserResponse_User `protobuf:"bytes,1,rep,name=users" json:"users,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserResponse) Descriptor ¶
func (*UserResponse) Descriptor() ([]byte, []int)
func (*UserResponse) GetUsers ¶
func (m *UserResponse) GetUsers() []*UserResponse_User
func (*UserResponse) ProtoMessage ¶
func (*UserResponse) ProtoMessage()
func (*UserResponse) Reset ¶
func (m *UserResponse) Reset()
func (*UserResponse) String ¶
func (m *UserResponse) String() string
func (*UserResponse) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *UserResponse) XXX_DiscardUnknown()
func (*UserResponse) XXX_Marshal ¶ added in v0.2.7
func (m *UserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserResponse) XXX_Merge ¶ added in v0.2.7
func (dst *UserResponse) XXX_Merge(src proto.Message)
func (*UserResponse) XXX_Size ¶ added in v0.2.7
func (m *UserResponse) XXX_Size() int
func (*UserResponse) XXX_Unmarshal ¶ added in v0.2.7
func (m *UserResponse) XXX_Unmarshal(b []byte) error
type UserResponse_User ¶
type UserResponse_User struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` ServerSerialNumber string `protobuf:"bytes,2,opt,name=server_serial_number,json=serverSerialNumber" json:"server_serial_number,omitempty"` Cert string `protobuf:"bytes,3,opt,name=cert" json:"cert,omitempty"` CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt" json:"created_at,omitempty"` IpNet string `protobuf:"bytes,5,opt,name=ip_net,json=ipNet" json:"ip_net,omitempty"` NoGw bool `protobuf:"varint,6,opt,name=no_gw,json=noGw" json:"no_gw,omitempty"` HostId uint32 `protobuf:"varint,7,opt,name=host_id,json=hostId" json:"host_id,omitempty"` IsAdmin bool `protobuf:"varint,8,opt,name=is_admin,json=isAdmin" json:"is_admin,omitempty"` IsConnected bool `protobuf:"varint,9,opt,name=is_connected,json=isConnected" json:"is_connected,omitempty"` ConnectedSince string `protobuf:"bytes,10,opt,name=connected_since,json=connectedSince" json:"connected_since,omitempty"` BytesSent uint64 `protobuf:"varint,11,opt,name=bytes_sent,json=bytesSent" json:"bytes_sent,omitempty"` BytesReceived uint64 `protobuf:"varint,12,opt,name=bytes_received,json=bytesReceived" json:"bytes_received,omitempty"` ExpiresAt string `protobuf:"bytes,13,opt,name=expires_at,json=expiresAt" json:"expires_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserResponse_User) Descriptor ¶
func (*UserResponse_User) Descriptor() ([]byte, []int)
func (*UserResponse_User) GetBytesReceived ¶ added in v0.2.7
func (m *UserResponse_User) GetBytesReceived() uint64
func (*UserResponse_User) GetBytesSent ¶ added in v0.2.7
func (m *UserResponse_User) GetBytesSent() uint64
func (*UserResponse_User) GetCert ¶
func (m *UserResponse_User) GetCert() string
func (*UserResponse_User) GetConnectedSince ¶ added in v0.2.7
func (m *UserResponse_User) GetConnectedSince() string
func (*UserResponse_User) GetCreatedAt ¶
func (m *UserResponse_User) GetCreatedAt() string
func (*UserResponse_User) GetExpiresAt ¶ added in v0.2.7
func (m *UserResponse_User) GetExpiresAt() string
func (*UserResponse_User) GetHostId ¶
func (m *UserResponse_User) GetHostId() uint32
func (*UserResponse_User) GetIpNet ¶
func (m *UserResponse_User) GetIpNet() string
func (*UserResponse_User) GetIsAdmin ¶
func (m *UserResponse_User) GetIsAdmin() bool
func (*UserResponse_User) GetIsConnected ¶ added in v0.2.7
func (m *UserResponse_User) GetIsConnected() bool
func (*UserResponse_User) GetNoGw ¶
func (m *UserResponse_User) GetNoGw() bool
func (*UserResponse_User) GetServerSerialNumber ¶
func (m *UserResponse_User) GetServerSerialNumber() string
func (*UserResponse_User) GetUsername ¶
func (m *UserResponse_User) GetUsername() string
func (*UserResponse_User) ProtoMessage ¶
func (*UserResponse_User) ProtoMessage()
func (*UserResponse_User) Reset ¶
func (m *UserResponse_User) Reset()
func (*UserResponse_User) String ¶
func (m *UserResponse_User) String() string
func (*UserResponse_User) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *UserResponse_User) XXX_DiscardUnknown()
func (*UserResponse_User) XXX_Marshal ¶ added in v0.2.7
func (m *UserResponse_User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserResponse_User) XXX_Merge ¶ added in v0.2.7
func (dst *UserResponse_User) XXX_Merge(src proto.Message)
func (*UserResponse_User) XXX_Size ¶ added in v0.2.7
func (m *UserResponse_User) XXX_Size() int
func (*UserResponse_User) XXX_Unmarshal ¶ added in v0.2.7
func (m *UserResponse_User) XXX_Unmarshal(b []byte) error
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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUserServiceClient ¶
func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { List(context.Context, *UserListRequest) (*UserResponse, error) Create(context.Context, *UserCreateRequest) (*UserResponse, error) Update(context.Context, *UserUpdateRequest) (*UserResponse, error) Delete(context.Context, *UserDeleteRequest) (*UserResponse, error) Renew(context.Context, *UserRenewRequest) (*UserResponse, error) GenConfig(context.Context, *UserGenConfigRequest) (*UserGenConfigResponse, error) }
UserServiceServer is the server API for UserService service.
type UserUpdateRequest ¶
type UserUpdateRequest struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"` Gwpref UserUpdateRequest_GWPref `protobuf:"varint,3,opt,name=gwpref,enum=pb.UserUpdateRequest_GWPref" json:"gwpref,omitempty"` HostId uint32 `protobuf:"varint,4,opt,name=host_id,json=hostId" json:"host_id,omitempty"` StaticPref UserUpdateRequest_StaticPref `protobuf:"varint,5,opt,name=static_pref,json=staticPref,enum=pb.UserUpdateRequest_StaticPref" json:"static_pref,omitempty"` AdminPref UserUpdateRequest_AdminPref `protobuf:"varint,6,opt,name=admin_pref,json=adminPref,enum=pb.UserUpdateRequest_AdminPref" json:"admin_pref,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserUpdateRequest) Descriptor ¶
func (*UserUpdateRequest) Descriptor() ([]byte, []int)
func (*UserUpdateRequest) GetAdminPref ¶
func (m *UserUpdateRequest) GetAdminPref() UserUpdateRequest_AdminPref
func (*UserUpdateRequest) GetGwpref ¶
func (m *UserUpdateRequest) GetGwpref() UserUpdateRequest_GWPref
func (*UserUpdateRequest) GetHostId ¶
func (m *UserUpdateRequest) GetHostId() uint32
func (*UserUpdateRequest) GetPassword ¶
func (m *UserUpdateRequest) GetPassword() string
func (*UserUpdateRequest) GetStaticPref ¶
func (m *UserUpdateRequest) GetStaticPref() UserUpdateRequest_StaticPref
func (*UserUpdateRequest) GetUsername ¶
func (m *UserUpdateRequest) GetUsername() string
func (*UserUpdateRequest) ProtoMessage ¶
func (*UserUpdateRequest) ProtoMessage()
func (*UserUpdateRequest) Reset ¶
func (m *UserUpdateRequest) Reset()
func (*UserUpdateRequest) String ¶
func (m *UserUpdateRequest) String() string
func (*UserUpdateRequest) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *UserUpdateRequest) XXX_DiscardUnknown()
func (*UserUpdateRequest) XXX_Marshal ¶ added in v0.2.7
func (m *UserUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserUpdateRequest) XXX_Merge ¶ added in v0.2.7
func (dst *UserUpdateRequest) XXX_Merge(src proto.Message)
func (*UserUpdateRequest) XXX_Size ¶ added in v0.2.7
func (m *UserUpdateRequest) XXX_Size() int
func (*UserUpdateRequest) XXX_Unmarshal ¶ added in v0.2.7
func (m *UserUpdateRequest) XXX_Unmarshal(b []byte) error
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) EnumDescriptor ¶
func (UserUpdateRequest_AdminPref) EnumDescriptor() ([]byte, []int)
func (UserUpdateRequest_AdminPref) String ¶
func (x UserUpdateRequest_AdminPref) String() string
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) EnumDescriptor ¶
func (UserUpdateRequest_GWPref) EnumDescriptor() ([]byte, []int)
func (UserUpdateRequest_GWPref) String ¶
func (x UserUpdateRequest_GWPref) String() string
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) EnumDescriptor ¶
func (UserUpdateRequest_StaticPref) EnumDescriptor() ([]byte, []int)
func (UserUpdateRequest_StaticPref) String ¶
func (x UserUpdateRequest_StaticPref) String() string
type VPNInitRequest ¶
type VPNInitRequest struct { Hostname string `protobuf:"bytes,1,opt,name=hostname" json:"hostname,omitempty"` Port string `protobuf:"bytes,2,opt,name=port" json:"port,omitempty"` ProtoPref VPNProto `protobuf:"varint,3,opt,name=proto_pref,json=protoPref,enum=pb.VPNProto" json:"proto_pref,omitempty"` IpBlock string `protobuf:"bytes,4,opt,name=ip_block,json=ipBlock" json:"ip_block,omitempty"` Dns string `protobuf:"bytes,5,opt,name=dns" json:"dns,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VPNInitRequest) Descriptor ¶
func (*VPNInitRequest) Descriptor() ([]byte, []int)
func (*VPNInitRequest) GetDns ¶
func (m *VPNInitRequest) GetDns() string
func (*VPNInitRequest) GetHostname ¶
func (m *VPNInitRequest) GetHostname() string
func (*VPNInitRequest) GetIpBlock ¶
func (m *VPNInitRequest) GetIpBlock() string
func (*VPNInitRequest) GetPort ¶
func (m *VPNInitRequest) GetPort() string
func (*VPNInitRequest) GetProtoPref ¶
func (m *VPNInitRequest) GetProtoPref() VPNProto
func (*VPNInitRequest) ProtoMessage ¶
func (*VPNInitRequest) ProtoMessage()
func (*VPNInitRequest) Reset ¶
func (m *VPNInitRequest) Reset()
func (*VPNInitRequest) String ¶
func (m *VPNInitRequest) String() string
func (*VPNInitRequest) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *VPNInitRequest) XXX_DiscardUnknown()
func (*VPNInitRequest) XXX_Marshal ¶ added in v0.2.7
func (m *VPNInitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VPNInitRequest) XXX_Merge ¶ added in v0.2.7
func (dst *VPNInitRequest) XXX_Merge(src proto.Message)
func (*VPNInitRequest) XXX_Size ¶ added in v0.2.7
func (m *VPNInitRequest) XXX_Size() int
func (*VPNInitRequest) XXX_Unmarshal ¶ added in v0.2.7
func (m *VPNInitRequest) XXX_Unmarshal(b []byte) error
type VPNInitResponse ¶
type VPNInitResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VPNInitResponse) Descriptor ¶
func (*VPNInitResponse) Descriptor() ([]byte, []int)
func (*VPNInitResponse) ProtoMessage ¶
func (*VPNInitResponse) ProtoMessage()
func (*VPNInitResponse) Reset ¶
func (m *VPNInitResponse) Reset()
func (*VPNInitResponse) String ¶
func (m *VPNInitResponse) String() string
func (*VPNInitResponse) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *VPNInitResponse) XXX_DiscardUnknown()
func (*VPNInitResponse) XXX_Marshal ¶ added in v0.2.7
func (m *VPNInitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VPNInitResponse) XXX_Merge ¶ added in v0.2.7
func (dst *VPNInitResponse) XXX_Merge(src proto.Message)
func (*VPNInitResponse) XXX_Size ¶ added in v0.2.7
func (m *VPNInitResponse) XXX_Size() int
func (*VPNInitResponse) XXX_Unmarshal ¶ added in v0.2.7
func (m *VPNInitResponse) XXX_Unmarshal(b []byte) error
type VPNRestartRequest ¶ added in v0.2.5
type VPNRestartRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VPNRestartRequest) Descriptor ¶ added in v0.2.5
func (*VPNRestartRequest) Descriptor() ([]byte, []int)
func (*VPNRestartRequest) ProtoMessage ¶ added in v0.2.5
func (*VPNRestartRequest) ProtoMessage()
func (*VPNRestartRequest) Reset ¶ added in v0.2.5
func (m *VPNRestartRequest) Reset()
func (*VPNRestartRequest) String ¶ added in v0.2.5
func (m *VPNRestartRequest) String() string
func (*VPNRestartRequest) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *VPNRestartRequest) XXX_DiscardUnknown()
func (*VPNRestartRequest) XXX_Marshal ¶ added in v0.2.7
func (m *VPNRestartRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VPNRestartRequest) XXX_Merge ¶ added in v0.2.7
func (dst *VPNRestartRequest) XXX_Merge(src proto.Message)
func (*VPNRestartRequest) XXX_Size ¶ added in v0.2.7
func (m *VPNRestartRequest) XXX_Size() int
func (*VPNRestartRequest) XXX_Unmarshal ¶ added in v0.2.7
func (m *VPNRestartRequest) XXX_Unmarshal(b []byte) error
type VPNRestartResponse ¶ added in v0.2.5
type VPNRestartResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VPNRestartResponse) Descriptor ¶ added in v0.2.5
func (*VPNRestartResponse) Descriptor() ([]byte, []int)
func (*VPNRestartResponse) ProtoMessage ¶ added in v0.2.5
func (*VPNRestartResponse) ProtoMessage()
func (*VPNRestartResponse) Reset ¶ added in v0.2.5
func (m *VPNRestartResponse) Reset()
func (*VPNRestartResponse) String ¶ added in v0.2.5
func (m *VPNRestartResponse) String() string
func (*VPNRestartResponse) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *VPNRestartResponse) XXX_DiscardUnknown()
func (*VPNRestartResponse) XXX_Marshal ¶ added in v0.2.7
func (m *VPNRestartResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VPNRestartResponse) XXX_Merge ¶ added in v0.2.7
func (dst *VPNRestartResponse) XXX_Merge(src proto.Message)
func (*VPNRestartResponse) XXX_Size ¶ added in v0.2.7
func (m *VPNRestartResponse) XXX_Size() int
func (*VPNRestartResponse) XXX_Unmarshal ¶ added in v0.2.7
func (m *VPNRestartResponse) XXX_Unmarshal(b []byte) error
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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewVPNServiceClient ¶
func NewVPNServiceClient(cc *grpc.ClientConn) 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) }
VPNServiceServer is the server API for VPNService service.
type VPNStatusRequest ¶
type VPNStatusRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VPNStatusRequest) Descriptor ¶
func (*VPNStatusRequest) Descriptor() ([]byte, []int)
func (*VPNStatusRequest) ProtoMessage ¶
func (*VPNStatusRequest) ProtoMessage()
func (*VPNStatusRequest) Reset ¶
func (m *VPNStatusRequest) Reset()
func (*VPNStatusRequest) String ¶
func (m *VPNStatusRequest) String() string
func (*VPNStatusRequest) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *VPNStatusRequest) XXX_DiscardUnknown()
func (*VPNStatusRequest) XXX_Marshal ¶ added in v0.2.7
func (m *VPNStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VPNStatusRequest) XXX_Merge ¶ added in v0.2.7
func (dst *VPNStatusRequest) XXX_Merge(src proto.Message)
func (*VPNStatusRequest) XXX_Size ¶ added in v0.2.7
func (m *VPNStatusRequest) XXX_Size() int
func (*VPNStatusRequest) XXX_Unmarshal ¶ added in v0.2.7
func (m *VPNStatusRequest) XXX_Unmarshal(b []byte) error
type VPNStatusResponse ¶
type VPNStatusResponse struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` SerialNumber string `protobuf:"bytes,2,opt,name=serial_number,json=serialNumber" json:"serial_number,omitempty"` Hostname string `protobuf:"bytes,3,opt,name=hostname" json:"hostname,omitempty"` Port string `protobuf:"bytes,4,opt,name=port" json:"port,omitempty"` Cert string `protobuf:"bytes,5,opt,name=cert" json:"cert,omitempty"` CaCert string `protobuf:"bytes,6,opt,name=ca_cert,json=caCert" json:"ca_cert,omitempty"` Net string `protobuf:"bytes,7,opt,name=net" json:"net,omitempty"` Mask string `protobuf:"bytes,8,opt,name=mask" json:"mask,omitempty"` CreatedAt string `protobuf:"bytes,9,opt,name=created_at,json=createdAt" json:"created_at,omitempty"` Proto string `protobuf:"bytes,10,opt,name=proto" json:"proto,omitempty"` Dns string `protobuf:"bytes,11,opt,name=dns" json:"dns,omitempty"` ExpiresAt string `protobuf:"bytes,12,opt,name=expires_at,json=expiresAt" json:"expires_at,omitempty"` CaExpiresAt string `protobuf:"bytes,13,opt,name=ca_expires_at,json=caExpiresAt" json:"ca_expires_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VPNStatusResponse) Descriptor ¶
func (*VPNStatusResponse) Descriptor() ([]byte, []int)
func (*VPNStatusResponse) GetCaCert ¶
func (m *VPNStatusResponse) GetCaCert() string
func (*VPNStatusResponse) GetCaExpiresAt ¶ added in v0.2.7
func (m *VPNStatusResponse) GetCaExpiresAt() string
func (*VPNStatusResponse) GetCert ¶
func (m *VPNStatusResponse) GetCert() string
func (*VPNStatusResponse) GetCreatedAt ¶
func (m *VPNStatusResponse) GetCreatedAt() string
func (*VPNStatusResponse) GetDns ¶
func (m *VPNStatusResponse) GetDns() string
func (*VPNStatusResponse) GetExpiresAt ¶ added in v0.2.7
func (m *VPNStatusResponse) GetExpiresAt() string
func (*VPNStatusResponse) GetHostname ¶
func (m *VPNStatusResponse) GetHostname() string
func (*VPNStatusResponse) GetMask ¶
func (m *VPNStatusResponse) GetMask() string
func (*VPNStatusResponse) GetName ¶
func (m *VPNStatusResponse) GetName() string
func (*VPNStatusResponse) GetNet ¶
func (m *VPNStatusResponse) GetNet() string
func (*VPNStatusResponse) GetPort ¶
func (m *VPNStatusResponse) GetPort() string
func (*VPNStatusResponse) GetProto ¶
func (m *VPNStatusResponse) GetProto() string
func (*VPNStatusResponse) GetSerialNumber ¶
func (m *VPNStatusResponse) GetSerialNumber() string
func (*VPNStatusResponse) ProtoMessage ¶
func (*VPNStatusResponse) ProtoMessage()
func (*VPNStatusResponse) Reset ¶
func (m *VPNStatusResponse) Reset()
func (*VPNStatusResponse) String ¶
func (m *VPNStatusResponse) String() string
func (*VPNStatusResponse) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *VPNStatusResponse) XXX_DiscardUnknown()
func (*VPNStatusResponse) XXX_Marshal ¶ added in v0.2.7
func (m *VPNStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VPNStatusResponse) XXX_Merge ¶ added in v0.2.7
func (dst *VPNStatusResponse) XXX_Merge(src proto.Message)
func (*VPNStatusResponse) XXX_Size ¶ added in v0.2.7
func (m *VPNStatusResponse) XXX_Size() int
func (*VPNStatusResponse) XXX_Unmarshal ¶ added in v0.2.7
func (m *VPNStatusResponse) XXX_Unmarshal(b []byte) error
type VPNUpdateRequest ¶
type VPNUpdateRequest struct { IpBlock string `protobuf:"bytes,1,opt,name=ip_block,json=ipBlock" json:"ip_block,omitempty"` Dns string `protobuf:"bytes,2,opt,name=dns" json:"dns,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VPNUpdateRequest) Descriptor ¶
func (*VPNUpdateRequest) Descriptor() ([]byte, []int)
func (*VPNUpdateRequest) GetDns ¶
func (m *VPNUpdateRequest) GetDns() string
func (*VPNUpdateRequest) GetIpBlock ¶
func (m *VPNUpdateRequest) GetIpBlock() string
func (*VPNUpdateRequest) ProtoMessage ¶
func (*VPNUpdateRequest) ProtoMessage()
func (*VPNUpdateRequest) Reset ¶
func (m *VPNUpdateRequest) Reset()
func (*VPNUpdateRequest) String ¶
func (m *VPNUpdateRequest) String() string
func (*VPNUpdateRequest) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *VPNUpdateRequest) XXX_DiscardUnknown()
func (*VPNUpdateRequest) XXX_Marshal ¶ added in v0.2.7
func (m *VPNUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VPNUpdateRequest) XXX_Merge ¶ added in v0.2.7
func (dst *VPNUpdateRequest) XXX_Merge(src proto.Message)
func (*VPNUpdateRequest) XXX_Size ¶ added in v0.2.7
func (m *VPNUpdateRequest) XXX_Size() int
func (*VPNUpdateRequest) XXX_Unmarshal ¶ added in v0.2.7
func (m *VPNUpdateRequest) XXX_Unmarshal(b []byte) error
type VPNUpdateResponse ¶
type VPNUpdateResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VPNUpdateResponse) Descriptor ¶
func (*VPNUpdateResponse) Descriptor() ([]byte, []int)
func (*VPNUpdateResponse) ProtoMessage ¶
func (*VPNUpdateResponse) ProtoMessage()
func (*VPNUpdateResponse) Reset ¶
func (m *VPNUpdateResponse) Reset()
func (*VPNUpdateResponse) String ¶
func (m *VPNUpdateResponse) String() string
func (*VPNUpdateResponse) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *VPNUpdateResponse) XXX_DiscardUnknown()
func (*VPNUpdateResponse) XXX_Marshal ¶ added in v0.2.7
func (m *VPNUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VPNUpdateResponse) XXX_Merge ¶ added in v0.2.7
func (dst *VPNUpdateResponse) XXX_Merge(src proto.Message)
func (*VPNUpdateResponse) XXX_Size ¶ added in v0.2.7
func (m *VPNUpdateResponse) XXX_Size() int
func (*VPNUpdateResponse) XXX_Unmarshal ¶ added in v0.2.7
func (m *VPNUpdateResponse) XXX_Unmarshal(b []byte) error