cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 Abe Massry a@abemassry.com

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Index

Constants

This section is empty.

Variables

View Source
var Action string

Action is optional and is either print, download, or dump, default dump

Key is the key in the key value store

View Source
var StoreLink string

StoreLink is the link of the key value store

View Source
var StoreName string
View Source
var Type string

Type is optional and can be a string or file

UID is the access token

View Source
var Value string

Value is the value in the key value store

Functions

func DeleteFile

func DeleteFile(fileToRemove string) error

DeleteFile deletes a file that is referred to by Value

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func UploadNoFile

func UploadNoFile(uri string, params map[string]string, name string, contents []byte) (string, *http.Request, error)

UploadNoFile uploads a file without the file existing on the filesystem

Types

This section is empty.

Jump to

Keyboard shortcuts

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