...

Source file src/edge-infra.dev/pkg/edge/iam/profile/storage.go

Documentation: edge-infra.dev/pkg/edge/iam/profile

     1  package profile
     2  
     3  import "context"
     4  
     5  type Storage interface {
     6  	CreateIdentityProfile(ctx context.Context, profile Profile) (err error)
     7  	// CreateDeviceLogin(ctx context.Context, deviceLogin, subject string) (err error)
     8  	// GetSubjectFromDeviceLogin(ctx context.Context, deviceLogin string) (subject string, err error)
     9  	GetIdentityProfile(ctx context.Context, subject string) (profile *Profile, err error)
    10  	ExpireIdentityProfile(ctx context.Context, subject string) (err error)
    11  	CreateAlias(ctx context.Context, alias, subject string) (err error)
    12  	GetSubjectFromAlias(ctx context.Context, alias string) (subject string, err error)
    13  	AddAliasToProfile(c context.Context, userProfile *Profile) (err error)
    14  	IsOffline() bool
    15  }
    16  

View as plain text