Documentation ¶
Index ¶
- func DeleteEnrollment(ctx context.Context, tx pgx.Tx, address string) error
- func InsertEnrollment(ctx context.Context, tx pgx.Tx, en Enrollment) error
- func SetupDB(ctx context.Context, pool *pgxpool.Pool) error
- func UpdateEnrollment(ctx context.Context, tx pgx.Tx, en Enrollment) error
- type Enrollment
- type Option
- type Server
- func (n *Server) EnrollHubNode(ctx context.Context, request *gen.EnrollHubNodeRequest) (*gen.HubNode, error)
- func (n *Server) ForgetHubNode(ctx context.Context, request *gen.ForgetHubNodeRequest) (*gen.ForgetHubNodeResponse, error)
- func (n *Server) GetHubNode(ctx context.Context, request *gen.GetHubNodeRequest) (*gen.HubNode, error)
- func (n *Server) InspectHubNode(ctx context.Context, request *gen.InspectHubNodeRequest) (*gen.HubNodeInspection, error)
- func (n *Server) ListHubNodes(ctx context.Context, request *gen.ListHubNodesRequest) (*gen.ListHubNodesResponse, error)
- func (n *Server) PullHubNodes(request *gen.PullHubNodesRequest, server gen.HubApi_PullHubNodesServer) error
- func (n *Server) RenewHubNode(ctx context.Context, request *gen.RenewHubNodeRequest) (*gen.HubNode, error)
- func (n *Server) TestHubNode(ctx context.Context, request *gen.TestHubNodeRequest) (*gen.TestHubNodeResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertEnrollment ¶
func InsertEnrollment(ctx context.Context, tx pgx.Tx, en Enrollment) error
func UpdateEnrollment ¶
func UpdateEnrollment(ctx context.Context, tx pgx.Tx, en Enrollment) error
Types ¶
type Enrollment ¶
func SelectEnrollment ¶
func SelectEnrollment(ctx context.Context, tx pgx.Tx, address string) (en Enrollment, err error)
func SelectEnrollments ¶
func SelectEnrollments(ctx context.Context, tx pgx.Tx) ([]Enrollment, error)
type Server ¶
type Server struct { gen.UnimplementedHubApiServer ManagerName string ManagerAddr string Authority pki.Source // trust authority for the cohort of smart core nodes TestTLSConfig *tls.Config // TLS config used when initiating test connections with a node // contains filtered or unexported fields }
func NewServerFromPool ¶
func (*Server) EnrollHubNode ¶
func (*Server) ForgetHubNode ¶
func (n *Server) ForgetHubNode(ctx context.Context, request *gen.ForgetHubNodeRequest) (*gen.ForgetHubNodeResponse, error)
func (*Server) GetHubNode ¶
func (*Server) InspectHubNode ¶
func (n *Server) InspectHubNode(ctx context.Context, request *gen.InspectHubNodeRequest) (*gen.HubNodeInspection, error)
func (*Server) ListHubNodes ¶
func (n *Server) ListHubNodes(ctx context.Context, request *gen.ListHubNodesRequest) (*gen.ListHubNodesResponse, error)
func (*Server) PullHubNodes ¶
func (n *Server) PullHubNodes(request *gen.PullHubNodesRequest, server gen.HubApi_PullHubNodesServer) error
func (*Server) RenewHubNode ¶
func (*Server) TestHubNode ¶
func (n *Server) TestHubNode(ctx context.Context, request *gen.TestHubNodeRequest) (*gen.TestHubNodeResponse, error)
Click to show internal directories.
Click to hide internal directories.