Documentation ¶
Index ¶
- Constants
- type Bucket
- type BucketRepository
- type Buckets
- type CloudFile
- type CloudFiles
- type CloudPath
- type CloudPaths
- type CloudStorage
- type Existence
- type File
- func (f *File) AllFullParsedPath() string
- func (f *File) AllParsedPath() string
- func (f *File) ContentsJson() string
- func (f *File) Exists() bool
- func (f *File) FormatJson() (newContents string, err error)
- func (f *File) FullHostPath(cloudDir string) string
- func (f *File) FullLocalPath() string
- func (f *File) FullParsedFileName(i int) string
- func (f *File) FullPath() string
- func (f *File) HostPath(cloudDir string) string
- func (f *File) LocalParsedPath() string
- func (f *File) LocalPath() string
- func (f *File) NameOnly() string
- func (f *File) Parse(fileBytes []byte) (logFiles *[]LogFile, err error)
- func (f *File) Path() string
- func (f *File) Read() (bytes []byte, err error)
- func (f *File) ReadLogFiles() (logFiles []LogFile, multiStatus MultiStatus, err error)
- func (f *File) ToJson() string
- func (f *File) Write(bytes []byte) (err error)
- type FileRepository
- type FlowType
- type HostProvider
- type LocalRepository
- type LogFile
- type MultiStatus
- type Outcome
- type OutcomeAndMsg
- type User
Constants ¶
View Source
const ( GoogleCloudBucket HostProvider = iota SourceFlow FlowType = iota SinkFlow )
View Source
const NormalMode = 0666
View Source
const Parsed = "parsed"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BucketRepository ¶
type CloudFiles ¶
type CloudFiles struct {
Names []CloudFile
}
type CloudPaths ¶
type CloudPaths struct {
Paths []CloudPath
}
type CloudStorage ¶
type CloudStorage struct { HostProvider HostProvider //Host location for log files, e.g., google cloud bucket ProjectId string //Project Id for this GCP storage account FlowType FlowType //source or sink }
type File ¶
type File struct { Id int Name string `json:"name"` ErrorMsg string `json:"error"` Contents LogFile `json:"logFile"` Bytes []byte `json:"bytes"` }
func (*File) AllFullParsedPath ¶
Path returns the file's full path with filename (less parent directory)
func (*File) AllParsedPath ¶
Path returns the file's parsed path (less parent directory)
func (*File) ContentsJson ¶
ContentsJson returns the file's Contents in json
func (*File) Exists ¶
Exists returns true if the file exists locally and is visible to the current user.
func (*File) FormatJson ¶
FormatJson creates parsed directory and creates a proper .json file from the contents of the .jsonl file
func (*File) FullHostPath ¶
Path returns the file's full absolute path with filename.
func (*File) FullLocalPath ¶
Path returns the file's full absolute path with filename.
func (*File) FullParsedFileName ¶
func (*File) LocalParsedPath ¶
Path returns the file's full path (less parent directory)
func (*File) ReadLogFiles ¶
func (f *File) ReadLogFiles() (logFiles []LogFile, multiStatus MultiStatus, err error)
Read grabs the parsed data-packet json objects associated with the file
type FileRepository ¶
type HostProvider ¶
type HostProvider int
type LocalRepository ¶
type LogFile ¶
type LogFile struct { EventId int `json:"eventId"` Timestamp int64 `json:"timestamp"` Description string `json:"description"` User }
func NewLogFile ¶
type MultiStatus ¶
type MultiStatus struct {
OutcomeAndMsgs []OutcomeAndMsg
}
type OutcomeAndMsg ¶
Click to show internal directories.
Click to hide internal directories.