appclient

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package appclient provides a TLS enabled HTTP client for use with splice requests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(server string, username string) (*http.Client, error)

Connect performs an OAuth 2.0 authorization for the user, and returns an OAuth enabled http.Client for use in subsequent API calls.

func TLSClient

func TLSClient(rawCert []byte, decrypter crypto.Decrypter) (*http.Client, error)

TLSClient returns a TLS enabled http client without SSO credentials for use in unauthenticated requests. It requires a raw x509 certificate and its associated crypto.Decrypter in order to generate the required TLS configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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