Documentation
¶
Index ¶
- type MultiAllStorage
- func (ms *MultiAllStorage) AssociateCertHash(r *mdm.Request, hash string) error
- func (ms *MultiAllStorage) ClearQueue(r *mdm.Request) error
- func (ms *MultiAllStorage) Disable(r *mdm.Request) error
- func (ms *MultiAllStorage) EnqueueCommand(ctx context.Context, id []string, cmd *mdm.Command) (map[string]error, error)
- func (ms *MultiAllStorage) EnrollmentFromHash(ctx context.Context, hash string) (string, error)
- func (ms *MultiAllStorage) EnrollmentHasCertHash(r *mdm.Request, hash string) (bool, error)
- func (ms *MultiAllStorage) HasCertHash(r *mdm.Request, hash string) (bool, error)
- func (ms *MultiAllStorage) IsCertHashAssociated(r *mdm.Request, hash string) (bool, error)
- func (ms *MultiAllStorage) IsPushCertStale(ctx context.Context, topic string, staleToken string) (bool, error)
- func (ms *MultiAllStorage) RetrieveBootstrapToken(r *mdm.Request, msg *mdm.GetBootstrapToken) (*mdm.BootstrapToken, error)
- func (ms *MultiAllStorage) RetrieveMigrationCheckins(ctx context.Context, c chan<- interface{}) error
- func (ms *MultiAllStorage) RetrieveNextCommand(r *mdm.Request, skipNotNow bool) (*mdm.Command, error)
- func (ms *MultiAllStorage) RetrievePushCert(ctx context.Context, topic string) (cert *tls.Certificate, staleToken string, err error)
- func (ms *MultiAllStorage) RetrievePushInfo(ctx context.Context, ids []string) (map[string]*mdm.Push, error)
- func (ms *MultiAllStorage) RetrieveTokenUpdateTally(ctx context.Context, id string) (int, error)
- func (ms *MultiAllStorage) StoreAuthenticate(r *mdm.Request, msg *mdm.Authenticate) error
- func (ms *MultiAllStorage) StoreBootstrapToken(r *mdm.Request, msg *mdm.SetBootstrapToken) error
- func (ms *MultiAllStorage) StoreCommandReport(r *mdm.Request, report *mdm.CommandResults) error
- func (ms *MultiAllStorage) StorePushCert(ctx context.Context, pemCert, pemKey []byte) error
- func (ms *MultiAllStorage) StoreTokenUpdate(r *mdm.Request, msg *mdm.TokenUpdate) error
- func (ms *MultiAllStorage) StoreUserAuthenticate(r *mdm.Request, msg *mdm.UserAuthenticate) error
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) EnqueueCommand ¶
func (*MultiAllStorage) EnrollmentFromHash ¶ added in v0.6.0
func (*MultiAllStorage) EnrollmentHasCertHash ¶
func (*MultiAllStorage) HasCertHash ¶
func (*MultiAllStorage) IsCertHashAssociated ¶
func (*MultiAllStorage) IsPushCertStale ¶
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 (*MultiAllStorage) RetrievePushCert ¶
func (ms *MultiAllStorage) RetrievePushCert(ctx context.Context, topic string) (cert *tls.Certificate, staleToken string, err error)
func (*MultiAllStorage) RetrievePushInfo ¶
func (*MultiAllStorage) RetrieveTokenUpdateTally ¶
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
Click to show internal directories.
Click to hide internal directories.