rclone: github.com/ncw/rclone/cmd/info/internal Index | Files | Directories

package internal

import "github.com/ncw/rclone/cmd/info/internal"


Package Files



var PositionList = []Position{PositionMiddle, PositionLeft, PositionRight}

PositionList contains all valid positions

type ControlResult Uses

type ControlResult struct {
    Text       string `json:"-"`
    WriteError map[Position]string
    GetError   map[Position]string
    InList     map[Position]Presence

ControlResult contains the result of a single character test

type InfoReport Uses

type InfoReport struct {
    Remote               string
    ControlCharacters    *map[string]ControlResult
    MaxFileLength        *int
    CanStream            *bool
    CanWriteUnnormalized *bool
    CanReadUnnormalized  *bool
    CanReadRenormalized  *bool

InfoReport is the structure of the JSON output

type Position Uses

type Position int

Position is the placement of the test character in the filename

const (
    PositionMiddle Position = 1 << iota
    PositionNone Position = 0
    PositionAll  Position = PositionRight<<1 - 1

Predefined positions

func (Position) MarshalText Uses

func (e Position) MarshalText() ([]byte, error)

MarshalText encodes the position when used as a map key

func (Position) String Uses

func (e Position) String() string

func (*Position) UnmarshalText Uses

func (e *Position) UnmarshalText(text []byte) error

UnmarshalText decodes a position when used as a map key

type Presence Uses

type Presence int

Presence describes the presence of a filename in file listing

const (
    Absent Presence = iota

Possible Presence states

func (Presence) MarshalJSON Uses

func (e Presence) MarshalJSON() ([]byte, error)

MarshalJSON encodes the presence when used as a JSON value

func (Presence) String Uses

func (e Presence) String() string

func (*Presence) UnmarshalJSON Uses

func (e *Presence) UnmarshalJSON(text []byte) error

UnmarshalJSON decodes a presence when used as a JSON value



Package internal imports 4 packages (graph). Updated 2020-08-03. Refresh now. Tools for package owners.