Versions in this module Expand all Collapse all v0 v0.22.0 Jun 6, 2023 Changes in this version + const CHECK_VERSION_INTERVAL + const CONFIG_FILE_DIR + const CONFIG_FILE_NAME + const DEF_CHUNK_SIZE + const ENV_PREFIX + const HISTORY_FILE_NAME + const MAX_NAME_COL_LEN + const RELEASE_CHECK_URL + const URN_PREFIX + const VERSION_CHECK_FILE_NAME + var ACCESS_TOKEN_ENV = ENV_PREFIX + "_ACCESS_TOKEN" + func CreateAdapter(requiresAuth bool) (adapter *adpt.Adapter) + func CreateAdapterWithTimeout(requiresAuth bool, timeoutSec int) (adapter *adpt.Adapter) + func Execute(version string) + func GetConfigDir(createIfNoExist bool) (configDir string) + func GetConfigFilePath() (path string) + func GetHistory(token string) (value string) + func GetServiceNameForId(serviceID *string) string + func IsAuthorised() bool + func Logger() *log.Logger + func MakeHistory(urn *string) string + func MakeMaybeHistory(sp *string) string + func NewAdapter(url string, accessToken string, timeoutSec int, headers *map[string]string) (*adpt.Adapter, error) + func NewTimeoutContext() (ctxt context.Context) + func ParseIDToken(tokenResponse *deviceTokenResponse, ctxt *Context, jwksURL string) + func SetContext(ctxt *Context, failIfNotExist bool) + func SetLogger(l *log.Logger) + func WriteConfigFile(config *Config) + type AppError struct + func (e *AppError) Error() string + type ArtifactPostResponse struct + ID string + MimeType string + Name string + Size int64 + Status string + type AuthInfo struct + ProviderList AuthProviderInfo + Version int + type AuthProvider struct + ClientID string + CodeURL string + ID string + JwksURL string + LoginURL string + TokenURL string + type AuthProviderInfo struct + AuthProviders map[string]AuthProvider + DefaultProviderId string + type CaddyFaultResponse struct + Fault bool + Id string + Message string + Name string + Temporary bool + Timeout bool + type Config struct + ActiveContext string + Contexts []Context + Version string + func ReadConfigFile(createIfNoConfig bool) (config *Config, configFile string) + type Context struct + AccessToken string + AccessTokenExpiry time.Time + AccountID string + AccountName string + AccountNickName string + ApiVersion int + Email string + Host string + Name string + ProviderID string + RefreshToken string + URL string + func GetActiveContext() (ctxt *Context) + func GetContext(name string, defaultToActiveContext bool) (ctxt *Context) + type CustomIdClaims struct + AccountID string + Avatar string + Email string + EmailVerified bool + GroupIDs []string + Name string + Nickname string + ProviderID string + type DeviceCode struct + DeviceCode string + ExpiresIn int64 + Interval int64 + UserCode string + VerificationURL string + VerificationURLComplete string