// Automatically generated by mockimpl. DO NOT EDIT!

package mock

import "github.com/kolide/kolide/server/kolide"

var _ kolide.LicenseStore = (*LicenseStore)(nil)

type SaveLicenseFunc func(tokenString string, publicKey string) (*kolide.License, error)

type LicenseFunc func() (*kolide.License, error)

type LicensePublicKeyFunc func(tokenString string) (string, error)

type RevokeLicenseFunc func(revoked bool) error

type LicenseStore struct {
	SaveLicenseFunc        SaveLicenseFunc
	SaveLicenseFuncInvoked bool

	LicenseFunc        LicenseFunc
	LicenseFuncInvoked bool

	LicensePublicKeyFunc        LicensePublicKeyFunc
	LicensePublicKeyFuncInvoked bool

	RevokeLicenseFunc        RevokeLicenseFunc
	RevokeLicenseFuncInvoked bool
}

func (s *LicenseStore) SaveLicense(tokenString string, publicKey string) (*kolide.License, error) {
	s.SaveLicenseFuncInvoked = true
	return s.SaveLicenseFunc(tokenString, publicKey)
}

func (s *LicenseStore) License() (*kolide.License, error) {
	s.LicenseFuncInvoked = true
	return s.LicenseFunc()
}

func (s *LicenseStore) LicensePublicKey(tokenString string) (string, error) {
	s.LicensePublicKeyFuncInvoked = true
	return s.LicensePublicKeyFunc(tokenString)
}

func (s *LicenseStore) RevokeLicense(revoked bool) error {
	s.RevokeLicenseFuncInvoked = true
	return s.RevokeLicenseFunc(revoked)
}
