client

package
v0.0.0-...-a1a1beb Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConcourseClient

func NewConcourseClient(
	url string,
	team string,
	username string, password string,
) (concourse.Client, error)

NewConcourseClient gives you an authenticated Concourse client using local user username and password authentication. Separate from Basic Auth.

Types

type AuthenticatedTransport

type AuthenticatedTransport struct {
	AccessToken string
	TokenType   string
}

AuthenticatedTransport is a transport which adds the Authorization header

func (AuthenticatedTransport) RoundTrip

func (t AuthenticatedTransport) RoundTrip(r *http.Request) (*http.Response, error)

RoundTrip represents a single authorized request/response cycle

Jump to

Keyboard shortcuts

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