client

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertResultMessage

type CertResultMessage struct {
	Cert *tls.Certificate

	CA *x509.Certificate
}

type Client

type Client struct {
	*http.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(baseURL string, certPool *x509.CertPool) *Client

func (*Client) CreateCert

func (c *Client) CreateCert(token string, param *cert.CreateStruct) (*CertResultMessage, error)

func (*Client) CreateToken

func (c *Client) CreateToken(parentToken string, param *token.CreateStruct) (string, error)

func (*Client) GetCA

func (c *Client) GetCA() (*x509.CertPool, error)

func (*Client) GetToken

func (c *Client) GetToken(t string) (*token.Token, error)

Jump to

Keyboard shortcuts

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