license

package
Version: v0.0.0-...-821bb50 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayLicenseOnStart

func DisplayLicenseOnStart() bool

DisplayLicenseOnStart display the license at program start returns true if the binary has a usage license

func License

func License() string

License returns the binary license if any

func SendExpirationError

func SendExpirationError(logger zerolog.Logger)

SendExpirationError send an error to the logger if the license has expired

func SetupCmd

func SetupCmd(rootCmd *cobra.Command)

SetupCmd adds a 'license' command if applicable

func SetupLicenseWatcher

func SetupLicenseWatcher(logger zerolog.Logger)

SetupLicenseWatcher spawn a routine that will emit an error every 15 minutes if the license has expired

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL