Documentation ¶
Overview ¶
Code generated by rice embed-go; DO NOT EDIT.
Index ¶
- Constants
- func ActivateAndGetAccessToken(productID, activationCode, seatID, seatName string) (string, string, error)
- func AddTrailingSlash(in string) string
- func After(input, substr string) string
- func AfterLast(input, substr string) string
- func Before(input, substr string) string
- func Check(err error)
- func CheckExpiryDate(dateString string) bool
- func CheckNumOfAgentSeats(currentAgentNum int, maxAgentNum string) bool
- func DeactivateEntitlementDatasance(activationCode string, seatID string, seatName string)
- func DeactivateLicense(accessToken, nonce string)
- func ElapsedRFC(from, to string) (diff string, err error)
- func ElapsedUTC(from, to string) (diff string, err error)
- func Exec(env, cmdName string, args ...string) (stdout bytes.Buffer, err error)
- func FPrint(obj interface{}, filename string) error
- func FirstToUpper(in string) (out string)
- func FormatDuration(duration time.Duration) string
- func FormatPath(input string) (string, error)
- func FromIntUTC(sec int64) string
- func GetAgentImage() string
- func GetAgentVersion() string
- func GetBaseURL(controllerEndpoint string) (*url.URL, error)
- func GetControllerEndpoint(host string) (endpoint string, err error)
- func GetControllerImage() string
- func GetControllerVersion() string
- func GetEntitlementDatasance(activationCode string, seatID string, seatName string) (string, string, error)
- func GetKubeletImage() string
- func GetOperatorImage() string
- func GetPortManagerImage() string
- func GetProxyARMImage() string
- func GetProxyImage() string
- func GetRouterARMImage() string
- func GetRouterImage() string
- func GetStaticFile(filename string) (string, error)
- func IsDebug() bool
- func IsLocalHost(host string) bool
- func IsLowerAlphanumeric(resourceType, name string) error
- func IsNotFoundError(err error) bool
- func IsSystemMsvc(msvc *client.MicroserviceInfo) bool
- func IsUnsupportedAPIError(err error) bool
- func JoinAgentPath(elem ...string) string
- func Log(callback func() error)
- func NowRFC() string
- func NowUTC() string
- func Print(obj interface{}) error
- func PrintError(message string)
- func PrintInfo(message string)
- func PrintNotify(message string)
- func PrintSuccess(message string)
- func RandomString(size int, chars string) string
- func SSHVerbose(msg string)
- func SetDebug(value bool)
- func SpinEnable(isEnabled bool)
- func SpinPause() bool
- func SpinStart(msg string)
- func SpinStop()
- func SpinUnpause()
- func UnmarshalYAML(filename string, object interface{}) error
- type ActivationAttribute
- type ActivationResponse
- type ConflictError
- type EntitlementDuration
- type EntitlementPeriod
- type EntitlementPlan
- type EntitlementResponse
- type Error
- type HTTPError
- type InputError
- type InternalError
- type NotFoundError
- type SecureShellClient
- func (cl *SecureShellClient) Connect() (err error)
- func (cl *SecureShellClient) CopyFolderTo(srcPath, destPath, permissions string, recurse bool) error
- func (cl *SecureShellClient) CopyTo(reader io.Reader, destPath, destFilename, permissions string, size int64) error
- func (cl *SecureShellClient) CreateFolder(path string) error
- func (cl *SecureShellClient) Disconnect() error
- func (cl *SecureShellClient) Run(cmd string) (stdout bytes.Buffer, err error)
- func (cl *SecureShellClient) RunUntil(condition *regexp.Regexp, cmd string, ignoredErrors []string) (err error)
- func (cl *SecureShellClient) SetPort(port int)
- type UnmarshalError
- type UnsupportedAPIError
- type Version
Constants ¶
View Source
const Alpha = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
View Source
const AlphaLower = "abcdefghijklmnopqrstuvwxyz"
View Source
const AlphaNum = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
View Source
const CDeepskyblue = "\033[48;5;25m"
View Source
const CSkyblue = "\033[38;5;117m"
View Source
const Green = "\033[38;5;28m"
View Source
const LastSystemCatalogItemID int = 3
View Source
const NoFormat = "\033[0m"
These are the colors we'll use in pretty printing output
View Source
const Red = "\033[38;5;1m"
Variables ¶
This section is empty.
Functions ¶
func ActivateAndGetAccessToken ¶ added in v1.1.0
func AddTrailingSlash ¶
func CheckExpiryDate ¶ added in v1.1.0
func CheckNumOfAgentSeats ¶ added in v1.1.0
func DeactivateEntitlementDatasance ¶ added in v1.1.0
func DeactivateLicense ¶ added in v1.1.0
func DeactivateLicense(accessToken, nonce string)
func ElapsedRFC ¶
func ElapsedUTC ¶
func FirstToUpper ¶
func FormatDuration ¶
func FormatPath ¶
func FromIntUTC ¶
func GetAgentImage ¶
func GetAgentImage() string
func GetAgentVersion ¶
func GetAgentVersion() string
func GetControllerEndpoint ¶
func GetControllerImage ¶
func GetControllerImage() string
func GetControllerVersion ¶
func GetControllerVersion() string
func GetEntitlementDatasance ¶ added in v1.1.0
func GetKubeletImage ¶
func GetKubeletImage() string
func GetOperatorImage ¶
func GetOperatorImage() string
func GetPortManagerImage ¶
func GetPortManagerImage() string
func GetProxyARMImage ¶
func GetProxyARMImage() string
func GetProxyImage ¶
func GetProxyImage() string
func GetRouterARMImage ¶
func GetRouterARMImage() string
func GetRouterImage ¶
func GetRouterImage() string
func GetStaticFile ¶
func IsLocalHost ¶
func IsLowerAlphanumeric ¶
func IsNotFoundError ¶
func IsSystemMsvc ¶
func IsSystemMsvc(msvc *client.MicroserviceInfo) bool
func IsUnsupportedAPIError ¶
func JoinAgentPath ¶
func PrintNotify ¶
func PrintNotify(message string)
Print 'message' with CDeepskyblue color text and background
func RandomString ¶
func SSHVerbose ¶
func SSHVerbose(msg string)
func SpinEnable ¶
func SpinEnable(isEnabled bool)
func SpinUnpause ¶
func SpinUnpause()
func UnmarshalYAML ¶
Types ¶
type ActivationAttribute ¶ added in v1.1.0
type ActivationResponse ¶ added in v1.1.0
type ActivationResponse struct { AccessToken string `json:"accessToken"` ID string `json:"id"` LeaseExpiry string `json:"leaseExpiry"` ProductID string `json:"productId"` EntitlementID string `json:"entitlementId"` EntitlementExpiryDate string `json:"entitlementExpiryDate"` SeatID string `json:"seatId"` SeatName string `json:"seatName"` Activated string `json:"activated"` LastLease string `json:"lastLease"` Attributes []ActivationAttribute `json:"attributes"` Features []string `json:"features"` }
func ActivateLicense ¶ added in v1.1.0
func ActivateLicense(accessToken, nonce string) (*ActivationResponse, error)
type ConflictError ¶
type ConflictError struct {
// contains filtered or unexported fields
}
ConflictError export
func NewConflictError ¶
func NewConflictError(message string) *ConflictError
NewConflictError export
type EntitlementDuration ¶ added in v1.1.0
type EntitlementPeriod ¶ added in v1.1.0
type EntitlementPlan ¶ added in v1.1.0
type EntitlementPlan struct { Name string `json:"name"` LicenseType string `json:"licenseType"` LicenseStartType string `json:"licenseStartType"` LicenseDuration EntitlementDuration `json:"licenseDuration"` }
type EntitlementResponse ¶ added in v1.1.0
type EntitlementResponse struct { CustomerName string `json:"customerName"` CustomerAccountRefID string `json:"customerAccountRefId"` OrderRefID string `json:"orderRefId"` OfferingName string `json:"offeringName"` SKU string `json:"sku"` ProductName string `json:"productName"` Plan EntitlementPlan `json:"plan"` GracePeriod EntitlementPeriod `json:"gracePeriod"` LingerPeriod EntitlementPeriod `json:"lingerPeriod"` LeasePeriod EntitlementPeriod `json:"leasePeriod"` OfflineLeasePeriod EntitlementPeriod `json:"offlineLeasePeriod"` }
type HTTPError ¶
type HTTPError struct { Code int // contains filtered or unexported fields }
HTTPError export
type InputError ¶
type InputError struct {
// contains filtered or unexported fields
}
InputError export
type InternalError ¶
type InternalError struct {
// contains filtered or unexported fields
}
InternalError export
func NewInternalError ¶
func NewInternalError(message string) *InternalError
NewInternalError export
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
NotFoundError export
func NewNotFoundError ¶
func NewNotFoundError(message string) *NotFoundError
NewNotFoundError export
type SecureShellClient ¶
type SecureShellClient struct {
// contains filtered or unexported fields
}
func NewSecureShellClient ¶
func NewSecureShellClient(user, host, privKeyFilename string) (*SecureShellClient, error)
func (*SecureShellClient) Connect ¶
func (cl *SecureShellClient) Connect() (err error)
func (*SecureShellClient) CopyFolderTo ¶
func (cl *SecureShellClient) CopyFolderTo(srcPath, destPath, permissions string, recurse bool) error
func (*SecureShellClient) CreateFolder ¶
func (cl *SecureShellClient) CreateFolder(path string) error
func (*SecureShellClient) Disconnect ¶
func (cl *SecureShellClient) Disconnect() error
func (*SecureShellClient) Run ¶
func (cl *SecureShellClient) Run(cmd string) (stdout bytes.Buffer, err error)
func (*SecureShellClient) SetPort ¶
func (cl *SecureShellClient) SetPort(port int)
type UnmarshalError ¶
type UnmarshalError struct {
// contains filtered or unexported fields
}
func NewUnmarshalError ¶
func NewUnmarshalError(message string) *UnmarshalError
func (*UnmarshalError) Error ¶
func (err *UnmarshalError) Error() string
type UnsupportedAPIError ¶
type UnsupportedAPIError struct {
// contains filtered or unexported fields
}
func NewUnsupportedAPIError ¶
func NewUnsupportedAPIError(message string) *UnsupportedAPIError
func (*UnsupportedAPIError) Error ¶
func (err *UnsupportedAPIError) Error() string
Click to show internal directories.
Click to hide internal directories.