cmd

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Overview

Copyright © 2020 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Functions

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 GetData added in v0.0.5

func GetData(r *http.Response, v interface{}) error

func NewClientError added in v0.0.5

func NewClientError(err error, detail string) error

Types

type AppUser added in v0.0.5

type AppUser struct {
	Application string `json:"application"`
	Username    string `json:"username"`
	Password    string `json:"password"`
}

type ClientError added in v0.0.5

type ClientError struct {
	Cause   error
	Details string
}

func (*ClientError) Error added in v0.0.5

func (c *ClientError) Error() string

type MasterPass added in v0.0.5

type MasterPass struct {
	Password string `json:"master_password"`
}

type Request added in v0.0.5

type Request struct {
	Method   string
	URL      string
	Username string
	Password string
	Query    map[string]string
	Body     io.Reader
}

func (*Request) CreateRequest added in v0.0.5

func (r *Request) CreateRequest() (*http.Request, error)

Jump to

Keyboard shortcuts

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