allmulti

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiAllStorage

type MultiAllStorage struct {
	// contains filtered or unexported fields
}

MultiAllStorage dispatches to multiple AllStorage instances. It returns results and errors from the first store and simply logs errors, if any, for the remaining.

func New

func New(logger log.Logger, stores ...storage.AllStorage) *MultiAllStorage

New creates a new MultiAllStorage dispatcher.

func (*MultiAllStorage) AssociateCertHash

func (ms *MultiAllStorage) AssociateCertHash(r *mdm.Request, hash string) error

func (*MultiAllStorage) ClearQueue

func (ms *MultiAllStorage) ClearQueue(r *mdm.Request) error

func (*MultiAllStorage) Disable

func (ms *MultiAllStorage) Disable(r *mdm.Request) error

func (*MultiAllStorage) EnqueueCommand

func (ms *MultiAllStorage) EnqueueCommand(ctx context.Context, id []string, cmd *mdm.Command) (map[string]error, error)

func (*MultiAllStorage) EnrollmentFromHash added in v0.6.0

func (ms *MultiAllStorage) EnrollmentFromHash(ctx context.Context, hash string) (string, error)

func (*MultiAllStorage) EnrollmentHasCertHash

func (ms *MultiAllStorage) EnrollmentHasCertHash(r *mdm.Request, hash string) (bool, error)

func (*MultiAllStorage) HasCertHash

func (ms *MultiAllStorage) HasCertHash(r *mdm.Request, hash string) (bool, error)

func (*MultiAllStorage) IsCertHashAssociated

func (ms *MultiAllStorage) IsCertHashAssociated(r *mdm.Request, hash string) (bool, error)

func (*MultiAllStorage) IsPushCertStale

func (ms *MultiAllStorage) IsPushCertStale(ctx context.Context, topic string, staleToken string) (bool, error)

func (*MultiAllStorage) RetrieveBootstrapToken

func (ms *MultiAllStorage) RetrieveBootstrapToken(r *mdm.Request, msg *mdm.GetBootstrapToken) (*mdm.BootstrapToken, error)

func (*MultiAllStorage) RetrieveMigrationCheckins

func (ms *MultiAllStorage) RetrieveMigrationCheckins(ctx context.Context, c chan<- interface{}) error

func (*MultiAllStorage) RetrieveNextCommand

func (ms *MultiAllStorage) RetrieveNextCommand(r *mdm.Request, skipNotNow bool) (*mdm.Command, error)

func (*MultiAllStorage) RetrievePushCert

func (ms *MultiAllStorage) RetrievePushCert(ctx context.Context, topic string) (cert *tls.Certificate, staleToken string, err error)

func (*MultiAllStorage) RetrievePushInfo

func (ms *MultiAllStorage) RetrievePushInfo(ctx context.Context, ids []string) (map[string]*mdm.Push, error)

func (*MultiAllStorage) RetrieveTokenUpdateTally

func (ms *MultiAllStorage) RetrieveTokenUpdateTally(ctx context.Context, id string) (int, error)

func (*MultiAllStorage) StoreAuthenticate

func (ms *MultiAllStorage) StoreAuthenticate(r *mdm.Request, msg *mdm.Authenticate) error

func (*MultiAllStorage) StoreBootstrapToken

func (ms *MultiAllStorage) StoreBootstrapToken(r *mdm.Request, msg *mdm.SetBootstrapToken) error

func (*MultiAllStorage) StoreCommandReport

func (ms *MultiAllStorage) StoreCommandReport(r *mdm.Request, report *mdm.CommandResults) error

func (*MultiAllStorage) StorePushCert

func (ms *MultiAllStorage) StorePushCert(ctx context.Context, pemCert, pemKey []byte) error

func (*MultiAllStorage) StoreTokenUpdate

func (ms *MultiAllStorage) StoreTokenUpdate(r *mdm.Request, msg *mdm.TokenUpdate) error

func (*MultiAllStorage) StoreUserAuthenticate

func (ms *MultiAllStorage) StoreUserAuthenticate(r *mdm.Request, msg *mdm.UserAuthenticate) error

Jump to

Keyboard shortcuts

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