tie

package module
v0.0.0-...-d5c4e48 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

README

tie-client

Golang tie client package

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CurrentState State
	Config       string
	ConfigDir    string
	ConfigPath   string
)

Functions

func InitConfig

func InitConfig()

func InitKey

func InitKey() []byte

func LoadJSON

func LoadJSON(inputFile string, dest interface{}) bool

func LoadTieOutput

func LoadTieOutput(key string, value1 string, value2 string, input *TieOutput, columns *[]string)

func LoadTieOutput2

func LoadTieOutput2(key string, value1 string, value2 string, input *TieOutput2)

func PrintState

func PrintState()

func SaveJSON

func SaveJSON(outputFile string, source interface{}) bool

func SendToWebservice

func SendToWebservice(command string, body json.RawMessage, handler func(json.RawMessage))

func Tag

func Tag(path string, tags []string, options TagOptions, addHandler func(json.RawMessage))

func TieAdd

func TieAdd(Entry1, Relation, Entry2 string, addHandler func(json.RawMessage))

Types

type AuthError

type AuthError struct {
}

type AuthSuccess

type AuthSuccess struct {
}

type ByFileName

type ByFileName [][]string

func (ByFileName) Len

func (a ByFileName) Len() int

func (ByFileName) Less

func (a ByFileName) Less(i, j int) bool

func (ByFileName) Swap

func (a ByFileName) Swap(i, j int)

type State

type State struct {
	Namespace     string
	Collection    string
	Webservice    string
	ServeUrl      string
	DataHost      string
	ThumbnailHost string
	Key           []byte
	Verbose       bool
}

type TagOptions

type TagOptions struct {
	AddOriginalPath               bool
	PutlibForceGenerateThumbnails bool
}

type TieOutput

type TieOutput map[string]map[string]map[string]bool

func TieOutputToTable

func TieOutputToTable(input TieOutput, columns []string) TieOutput

func (*TieOutput) Clear

func (table *TieOutput) Clear()

func (*TieOutput) Print

func (table *TieOutput) Print(columns []string)

func (*TieOutput) ToSlices

func (table *TieOutput) ToSlices(columns []string) [][]string

type TieOutput2

type TieOutput2 struct {
	// Tripplets []Tripplet
	Columns []string
	Data    []common.ReplyGet
}

Jump to

Keyboard shortcuts

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