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 xbus.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 xbus.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