login

package
v0.0.53 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginClient

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

func NewLoginClient

func NewLoginClient(
	pivnetClient PivnetClient,
	rcHandler RCHandler,
	eh errorhandler.ErrorHandler,
	format string,
	outputWriter io.Writer,
	printer printer.Printer,
) *LoginClient

func (*LoginClient) Login

func (c *LoginClient) Login(
	profileName string,
	apiToken string,
	host string,
) error

type PivnetClient

type PivnetClient interface {
	Auth() (bool, error)
}

type RCHandler

type RCHandler interface {
	SaveProfile(profileName string, apiToken string, host string) error
}

Directories

Path Synopsis
This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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