gosvn

package module
v0.0.0-...-16877bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

README

GoSvn

a Subversion library for Go

License

Copyright 2017 binsheng

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(username, password, url, workDir string) *client

NewClient

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) Cat

func (client *CommonClient) Cat(file string) (string, error)

Cat ...

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) Info

func (client *CommonClient) Info() (*Info, error)

info ...

func (*CommonClient) List

func (client *CommonClient) List() (*lists, error)

List ...

func (*CommonClient) Log

func (client *CommonClient) Log() (*SvnLog, error)

Log ...

func (*CommonClient) Properties

func (client *CommonClient) Properties() ([]byte, error)

Properties ...

func (*CommonClient) Status

func (client *CommonClient) Status() (*status, error)

Status ...

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 ...

func (*LocalClient) Add

func (localClient *LocalClient) Add(file string) (string, error)

add ...

func (*LocalClient) CleanUp

func (localClient *LocalClient) CleanUp() error

CleanUp ...

func (*LocalClient) Commit

func (localClient *LocalClient) Commit(msg string) (string, error)

Commit ...

func (*LocalClient) Update

func (localClient *LocalClient) Update() (string, error)

Update ...

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 ...

type SvnLog

type SvnLog struct {
	XMLName  xml.Name   `xml:"log"`
	LogEntry []logEntry `xml:"logentry"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL