Documentation ¶
Index ¶
- Constants
- Variables
- func AddInMap(item string, m map[string]SubMap)
- func DecodeRRDPBase64(value string) ([]byte, error)
- func ExtractFilePathFromRsyncURL(url string) (string, error)
- func ExtractFoldersPathFromRsyncURL(url string) (string, error)
- func ExtractRsyncDomainModule(rsync string) (string, string, error)
- func FetchFile(path string, derEncoding bool) ([]byte, []byte, error)
- func FilterMatch(line string) (string, bool, error)
- func GetLocalPath(pathRep string, replace map[string]string) string
- func ParseMapDirectory(mapdir string) map[string]string
- func ParseNode(data string) ([]Cert, []Cert, error)
- func ReduceMap(m map[string]SubMap) []string
- func ReplacePath(file *pki.PKIFile, replace map[string]string) string
- type Cert
- type Delta
- type ElNode
- type FileStat
- type Frame
- type HTTPFetcher
- type LocalFetch
- func (s *LocalFetch) GetFile(file *pki.PKIFile) (*pki.SeekFile, error)
- func (s *LocalFetch) GetFileConv(file *pki.PKIFile, derEncoding bool) (*pki.SeekFile, error)
- func (s *LocalFetch) GetRepository(file *pki.PKIFile, callback pki.CallbackExplore) error
- func (s *LocalFetch) SetRepositories(repositories map[string]time.Time)
- type Logger
- type Notification
- type RRDPError
- type RRDPFetcher
- type RRDPFile
- type RRDPSystem
- type RootNode
- type Snapshot
- type SubMap
Constants ¶
View Source
const ( ERROR_RRDP_UNKNOWN = iota ERROR_RRDP_FETCH )
View Source
const ResponseLimit int64 = 1000000000 // (5Gb)
View Source
const (
RsyncProtoPrefix = "rsync://"
)
Variables ¶
View Source
var ( ErrorTypeToName = map[int]string{ ERROR_RRDP_UNKNOWN: "unknown", ERROR_RRDP_FETCH: "fetch", } )
Functions ¶
func DecodeRRDPBase64 ¶
func ExtractFilePathFromRsyncURL ¶ added in v1.4.4
func ExtractFoldersPathFromRsyncURL ¶ added in v1.4.4
func ExtractRsyncDomainModule ¶ added in v1.2.0
func FilterMatch ¶
Determines if file has been deleted
func GetLocalPath ¶ added in v1.4.3
func ParseMapDirectory ¶
Types ¶
type Frame ¶ added in v1.2.0
type Frame uintptr
func StackTrace ¶ added in v1.2.0
func StackTrace(s *stack) []Frame
This function returns the Stacktrace of the error. The naming scheme corresponds to what Sentry fetches https://github.com/getsentry/sentry-go/blob/master/stacktrace.go#L49
type HTTPFetcher ¶
func NewHTTPFetcher ¶ added in v1.4.4
func NewHTTPFetcher(userAgent string) *HTTPFetcher
type LocalFetch ¶
type LocalFetch struct { Basepath string MapDirectory map[string]string // contains filtered or unexported fields }
func NewLocalFetch ¶ added in v1.2.0
func NewLocalFetch(basepath string) *LocalFetch
func (*LocalFetch) GetFileConv ¶
func (*LocalFetch) GetRepository ¶
func (s *LocalFetch) GetRepository(file *pki.PKIFile, callback pki.CallbackExplore) error
func (*LocalFetch) SetRepositories ¶ added in v1.2.0
func (s *LocalFetch) SetRepositories(repositories map[string]time.Time)
type Notification ¶
type Notification struct { RootNode XMLName xml.Name `xml:"notification"` Snapshot ElNode `xml:"snapshot"` Deltas []ElNode `xml:"delta"` }
func ParseRoot ¶
func ParseRoot(data string) (Notification, error)
type RRDPError ¶ added in v1.2.0
type RRDPError struct { EType int InnerErr error Message string Request *http.Request URL, Rsync string Stack *stack }
func NewRRDPErrorFetch ¶ added in v1.2.0
func (*RRDPError) SetSentryScope ¶ added in v1.2.0
func (e *RRDPError) SetSentryScope(scope *sentry.Scope)
func (*RRDPError) StackTrace ¶ added in v1.2.0
type RRDPFetcher ¶
type RRDPSystem ¶
type RRDPSystem struct { Log Logger Fetcher RRDPFetcher Callback RRDPFile Path string SessionID string Serial int64 // contains filtered or unexported fields }
func (*RRDPSystem) FetchRRDP ¶
func (s *RRDPSystem) FetchRRDP(cbArgs ...interface{}) error
func (*RRDPSystem) SetSentryScope ¶ added in v1.2.0
func (s *RRDPSystem) SetSentryScope(scope *sentry.Scope)
Click to show internal directories.
Click to hide internal directories.