Versions in this module Expand all Collapse all v7 v7.0.1 Jul 27, 2022 v7.0.0 Feb 7, 2022 Changes in this version + const Admin + const BzrDigestKey + const ContentHashHeader + const EntityIdHeader + const Everyone + const IngestionComplete + const IngestionStart + const IngestionType + const LegacyDownloadStats + const LegacyStatisticsImportComplete + const LegacyStatisticsImportStart + const LegacyStatisticsType + const StatsArchiveDelete + const StatsArchiveDownload + const StatsArchiveDownloadPromulgated + const StatsArchiveFailedUpload + const StatsArchiveUpload + const StatsCharmEvent + const StatsCharmInfo + const StatsCharmMissing + var OrderedChannels = []Channel + var ValidChannels = func() map[Channel]bool { ... }() + func API2Resource(apiInfo Resource) (resource.Resource, error) + func MaybeTermsAgreementError(err error) error + func NewError(code ErrorCode, f string, a ...interface{}) error + type AllPermsResponse struct + Perms map[Channel]PermResponse + type ArchiveSizeResponse struct + Size int64 + type ArchiveUploadResponse struct + Id *charm.URL + PromulgatedId *charm.URL + type ArchiveUploadTimeResponse struct + UploadTime time.Time + type BundleCount struct + Count int + type CanIngestResponse struct + CanIngest bool + type CanWriteResponse struct + CanWrite bool + type Channel string + const BetaChannel + const CandidateChannel + const DevelopmentChannel + const EdgeChannel + const NoChannel + const StableChannel + const UnpublishedChannel + type CharmRevision struct + Err error + Revision int + Sha256 string + type DebugStatus struct + Duration time.Duration + Name string + Passed bool + Value string + type DockerInfoResponse struct + ImageName string + Password string + Username string + type DockerResourceUploadRequest struct + Digest string + ImageName string + type EntityResult struct + Id *charm.URL + Meta map[string]interface{} + type Error struct + Code ErrorCode + Info map[string]*Error + Message string + func (e *Error) Cause() error + func (e *Error) Error() string + func (e *Error) ErrorCode() string + func (e *Error) ErrorInfo() map[string]*Error + type ErrorCode string + const ErrBadRequest + const ErrDuplicateUpload + const ErrEntityIdNotAllowed + const ErrForbidden + const ErrInvalidEntity + const ErrMetadataNotFound + const ErrMethodNotAllowed + const ErrMultipleErrors + const ErrNotFound + const ErrOther + const ErrReadOnly + const ErrServiceUnavailable + const ErrUnauthorized + func (code ErrorCode) Error() string + func (code ErrorCode) ErrorCode() ErrorCode + type ExpandedId struct + Id string + type FinishUploadResponse struct + Hash string + type HashResponse struct + Sum string + type IdNameResponse struct + Name string + type IdResponse struct + Id *charm.URL + Name string + Revision int + Series string + User string + type IdRevisionResponse struct + Revision int + type IdSeriesResponse struct + Series string + type IdUserResponse struct + User string + type ListResponse struct + Results []EntityResult + type Log struct + Data *json.RawMessage + Level LogLevel + Type LogType + URLs []*charm.URL + type LogLevel string + const ErrorLevel + const InfoLevel + const WarningLevel + type LogResponse struct + Data json.RawMessage + Level LogLevel + Time time.Time + Type LogType + URLs []*charm.URL + type LogType string + type ManifestFile struct + Name string + Size int64 + type MetaAnyResponse EntityResult + type NewUploadResponse UploadInfoResponse + type Part struct + Complete bool + Hash string + Offset int64 + Size int64 + func (p Part) Valid() bool + type Parts struct + Parts []Part + type PermRequest struct + Read []string + Write []string + type PermResponse struct + Read []string + Write []string + type PromulgateRequest struct + Promulgated bool + type PromulgatedResponse struct + Promulgated bool + type PublishRequest struct + Channels []Channel + Resources map[string]int + type PublishResponse struct + Id *charm.URL + PromulgatedId *charm.URL + type Published struct + Id *charm.URL + PublishTime time.Time + type PublishedInfo struct + Channel Channel + Current bool + type PublishedResponse struct + Info []PublishedInfo + type RelatedResponse struct + Provides map[string][]EntityResult + Requires map[string][]EntityResult + type Resource struct + Description string + Fingerprint []byte + Name string + Path string + Revision int + Size int64 + Type string + func Resource2API(res resource.Resource) Resource + type ResourceUploadResponse struct + Revision int + type RevisionInfoResponse struct + Revisions []*charm.URL + type SearchResponse struct + Results []EntityResult + SearchTime time.Duration + Total int + type SetAuthCookie struct + Macaroons macaroon.Slice + type Statistic struct + Count int64 + Date string + Key string + type StatsCount struct + Day int64 + Month int64 + Total int64 + Week int64 + type StatsResponse struct + ArchiveDownload StatsCount + ArchiveDownloadAllRevisions StatsCount + ArchiveDownloadCount int64 + type StatsUpdateEntry struct + CharmReference *charm.URL + Timestamp time.Time + Type StatsUpdateType + type StatsUpdateRequest struct + Entries []StatsUpdateEntry + type StatsUpdateType string + const UpdateDeploy + const UpdateDownload + const UpdateTraffic + type SupportedSeriesResponse struct + SupportedSeries []string + type TagsResponse struct + Tags []string + type TermAgreementRequiredError struct + Terms []string + func (e *TermAgreementRequiredError) Error() string + type UploadInfoResponse struct + Expires time.Time + MaxPartSize int64 + MaxParts int + MinPartSize int64 + Parts Parts + UploadId string + type WhoAmIResponse struct + Groups []string + User string Other modules containing this package github.com/juju/charmrepo github.com/juju/charmrepo/v6