Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API implements the DirectoryConnector inferface. It uses an HTTP API to communicate with the WordPress Directory SVN Repositories.
func (*API) GetFullExtensionsList ¶
GetFullExtensionsList gets the fill list of all Extensions.
func (API) GetLatestRevision ¶
GetLatestRevision gets the latest revision of the target directory.
type DirectoryConnector ¶
type DirectoryConnector interface { GetLatestRevision(ctx *context.Context) (int, error) GetFullExtensionsList(ctx *context.Context) ([]string, error) GetUpdatedExtensionsList(ctx *context.Context) ([]string, error) }
DirectoryConnector implements the methods required to interact with the WordPress Directories Implemented via external HTTP API and local SVN client
func Init ¶
func Init(cType string) DirectoryConnector
Init returns a connector used to communicate with the WordPress Directory SVN repositories. Implemented via an external HTTP API or local SVN client
type SVN ¶
type SVN struct {
// contains filtered or unexported fields
}
SVN implements the DirectoryConnector inferface. It uses a local SVN client to communicate with the WordPress Directory SVN Repositories.
func (*SVN) GetFullExtensionsList ¶
GetFullExtensionsList gets the fill list of all Extensions.
func (*SVN) GetLatestRevision ¶
GetLatestRevision gets the latest revision of the target directory.