rancher

package
v0.1.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangePassword

func ChangePassword(host, token string, input *ChangePasswordInput) error

func IsUnauthorized

func IsUnauthorized(err error) bool

func Login

func Login(host string, creds *LoginCredentials) (token string, err error)

func Ping

func Ping(host string) error

Types

type ChangePasswordInput

type ChangePasswordInput struct {
	CurrentPassword string `json:"currentPassword"`
	NewPassword     string `json:"newPassword"`
}

type LoginCredentials

type LoginCredentials struct {
	Username string
	Password string
}

Jump to

Keyboard shortcuts

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