Documentation ¶
Index ¶
- func HasFeature(license types.LicenseManagerLicenseInfo, key string) bool
- type AssignmentManager
- func (m AssignmentManager) QueryAssigned(ctx context.Context, id string) ([]types.LicenseAssignmentManagerLicenseAssignment, error)
- func (m AssignmentManager) Remove(ctx context.Context, id string) error
- func (m AssignmentManager) Update(ctx context.Context, id string, key string, name string) (*types.LicenseManagerLicenseInfo, error)
- type InfoList
- type Manager
- func (m Manager) Add(ctx context.Context, key string, labels map[string]string) (types.LicenseManagerLicenseInfo, error)
- func (m Manager) AssignmentManager(ctx context.Context) (*AssignmentManager, error)
- func (m Manager) Decode(ctx context.Context, key string) (types.LicenseManagerLicenseInfo, error)
- func (m Manager) List(ctx context.Context) (InfoList, error)
- func (m Manager) Remove(ctx context.Context, key string) error
- func (m Manager) Update(ctx context.Context, key string, labels map[string]string) (types.LicenseManagerLicenseInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasFeature ¶
func HasFeature(license types.LicenseManagerLicenseInfo, key string) bool
Types ¶
type AssignmentManager ¶
func (AssignmentManager) QueryAssigned ¶
func (m AssignmentManager) QueryAssigned(ctx context.Context, id string) ([]types.LicenseAssignmentManagerLicenseAssignment, error)
type InfoList ¶
type InfoList []types.LicenseManagerLicenseInfo
InfoList provides helper methods for []types.LicenseManagerLicenseInfo
func (InfoList) WithFeature ¶
type Manager ¶
func NewManager ¶
func (Manager) AssignmentManager ¶
func (m Manager) AssignmentManager(ctx context.Context) (*AssignmentManager, error)
Click to show internal directories.
Click to hide internal directories.