handler

package
v0.0.0-...-073edfd Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2016 License: Apache-2.0 Imports: 15 Imported by: 14

Documentation

Overview

** Copyright [2013-2015] [Megam Systems] ** ** 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.

** Copyright [2013-2015] [Megam Systems] ** ** 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

View Source
const (
	HOST     = "Host"
	USERNAME = "Username"
	PASSWORD = "Password"
	PLATFORM = "platform"
)
View Source

Variables

This section is empty.

Functions

func FunSpin

func FunSpin(vers string, logo string, task string)

Show a spinner until our services start.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(w *WrappedParms) (*Handler, error)

func (*Handler) Run

func (h *Handler) Run(w io.Writer, inputs map[string]string) error

func (*Handler) SetTemplates

func (h *Handler) SetTemplates(w *WrappedParms)

type WrappedParms

type WrappedParms struct {
	Packages map[string]string
	Options  map[string]string
	Maps     map[string][]string
}

func NewWrap

func NewWrap(c interface{}) *WrappedParms

func (*WrappedParms) Empty

func (w *WrappedParms) Empty() bool

func (*WrappedParms) GetHost

func (w *WrappedParms) GetHost() (string, bool)

func (*WrappedParms) GetPassword

func (w *WrappedParms) GetPassword() (string, bool)

func (*WrappedParms) GetUserName

func (w *WrappedParms) GetUserName() (string, bool)

func (*WrappedParms) IfNoneAddPackages

func (w *WrappedParms) IfNoneAddPackages(p []string)

func (*WrappedParms) String

func (w *WrappedParms) String() string

Jump to

Keyboard shortcuts

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