identity

package
v0.0.0-...-99fe3a6 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Identity

type Identity interface {
	CheckEnrollment() (*domain.Enrollment, error)
}

type Service

type Service struct {
	Settings *config.Settings
	Snapd    snapdapi.SnapdClient
	// contains filtered or unexported fields
}

Service implements the identity service use cases

func NewService

func NewService(settings *config.Settings, snapd snapdapi.SnapdClient) *Service

NewService creates a new identity service connection

func (*Service) CheckEnrollment

func (srv *Service) CheckEnrollment() (*domain.Enrollment, error)

CheckEnrollment verifies that the device is enrolled with the identity service

type UseCase

type UseCase interface {
	CheckEnrollment() (*domain.Enrollment, error)
}

UseCase is the interface for the identity service use cases

Jump to

Keyboard shortcuts

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