Documentation ¶
Index ¶
- func NewClient(username, password, url, workDir string) *client
- type CommonClient
- func (client *CommonClient) Cat(file string) (string, error)
- func (client *CommonClient) Diff(start, end int) (string, error)
- func (client *CommonClient) DiffSummary(start, end int) (*diffPath, error)
- func (client *CommonClient) Info() (*Info, error)
- func (client *CommonClient) List() (*lists, error)
- func (client *CommonClient) Log() (*SvnLog, error)
- func (client *CommonClient) Properties() ([]byte, error)
- func (client *CommonClient) Status() (*status, error)
- type Info
- type LocalClient
- type RemoteClient
- type SvnLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommonClient ¶
type CommonClient struct { URLOrPath string Username string Password string TrustCert bool Env []string }
func NewCommonClient ¶
func NewCommonClient(urlOrPath, username, password string, trustCert bool) *CommonClient
NewCommonClient ...
func (*CommonClient) Diff ¶
func (client *CommonClient) Diff(start, end int) (string, error)
Diff ...
func (*CommonClient) DiffSummary ¶
func (client *CommonClient) DiffSummary(start, end int) (*diffPath, error)
DiffSummary ...
func (*CommonClient) Properties ¶
func (client *CommonClient) Properties() ([]byte, error)
Properties ...
type Info ¶
type Info struct { XMLName xml.Name `xml:"info"` Url string `xml:"entry>url"` RelativeUrl string `xml:"entry>relative-url"` Root string `xml:"entry>repository>root"` UUID string `xml:"entry>repository>uuid"` WcrootAbspath string `xml:"entry>wc-info>wcroot-abspath"` Schedule string `xml:"entry>wc-info>schedule"` Depth string `xml:"entry>wc-info>depth"` Commit commit `xml:"entry>commit"` }
type LocalClient ¶
type LocalClient struct {
*CommonClient
}
func NewLocalClient ¶
func NewLocalClient(dir, username, password string) *LocalClient
NewLocalClient ...
type RemoteClient ¶
type RemoteClient struct {
*CommonClient
}
func NewRemoteClient ¶
func NewRemoteClient(url, username, password string) *RemoteClient
NewRemoteClient ...
func (*RemoteClient) CheckOut ¶
func (remoteClient *RemoteClient) CheckOut(dir string) error
CheckOut ...
func (*RemoteClient) CheckOutWithRevision ¶
func (remoteClient *RemoteClient) CheckOutWithRevision(dir string, revision int) error
CheckOutWithRevision ...
Click to show internal directories.
Click to hide internal directories.