Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStore ¶
type MockStore struct { Downloads []*charm.URL DownloadsNoStats []*charm.URL Authorizations []string Metadata []string InfoRequestCount int InfoRequestCountNoStats int // contains filtered or unexported fields }
MockStore provides a mock charm store implementation useful when testing.
func NewMockStore ¶
NewMockStore creates a mock charm store containing the specified charms.
func (*MockStore) ServeHTTP ¶
func (s *MockStore) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements http.ServeHTTP
func (*MockStore) UpdateStoreRevision ¶
UpdateStoreRevision sets the revision of the specified charm to rev.
Click to show internal directories.
Click to hide internal directories.