pro

package
v0.0.0-...-9621b1e Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package pro implements the Pro gRPC service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Service) error

Option is a functional option to set the DBus objects in tests.

type Service

type Service struct {
	pb.UnimplementedProServiceServer
	// contains filtered or unexported fields
}

Service is the implementation of the Pro service.

func New

func New(opts ...Option) (*Service, error)

New returns a new instance of the Pro service.

func (*Service) ProAttach

func (s *Service) ProAttach(ctx context.Context, req *pb.ProAttachRequest) (*pb.ProAttachResponse, error)

ProAttach attaches a contract token to the system.

func (*Service) ProMagicAttach

func (s *Service) ProMagicAttach(req *emptypb.Empty, stream pb.ProService_ProMagicAttachServer) error

ProMagicAttach streams a user code and waits on a contract token from the pro server to preform a magic attach.

func (*Service) ProStatus

func (s *Service) ProStatus(ctx context.Context, _ *emptypb.Empty) (*wrapperspb.BoolValue, error)

ProStatus returns if the machine is currently pro attached.

Jump to

Keyboard shortcuts

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