httpbasic

package
v0.14.0 Latest Latest
Warning

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

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

Documentation

Overview

Package httpbasic provides support for http_basic bare metal introspection endpoints.

Example of obtaining and using a client:

client, err := httpbasic.NewBareMetalIntrospectionHTTPBasic(httpbasic.EndpointOpts{
	IronicInspectorEndpoint:     "http://localhost:5050/v1/",
	IronicInspectorUser:         "myUser",
	IronicInspectorUserPassword: "myPassword",
})
if err != nil {
	panic(err)
}

introspection.GetIntrospectionStatus(client, "a62b8495-52e2-407b-b3cb-62775d04c2b8")

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBareMetalIntrospectionHTTPBasic

func NewBareMetalIntrospectionHTTPBasic(eo EndpointOpts) (*gophercloud.ServiceClient, error)

NewBareMetalIntrospectionHTTPBasic creates a ServiceClient that may be used to access a "http_basic" bare metal introspection service.

Types

type EndpointOpts

type EndpointOpts struct {
	IronicInspectorEndpoint     string
	IronicInspectorUser         string
	IronicInspectorUserPassword string
}

EndpointOpts specifies a "http_basic" Ironic Inspector Endpoint.

Jump to

Keyboard shortcuts

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