hub

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupFile

type BackupFile struct {
	Name string
	Size int
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(log logr.Logger, httpClient *http.Client, baseURL *url.URL) *Client

func (*Client) BaseURL

func (c *Client) BaseURL() *url.URL

func (*Client) Do

func (c *Client) Do(req *http.Request) (*http.Response, error)

func (*Client) DownloadBackupFile

func (c *Client) DownloadBackupFile(ctx context.Context, name string) (BackupFile, io.ReadCloser, error)

func (*Client) Login

func (c *Client) Login(ctx context.Context, username, password string) error

func (*Client) Reboot

func (c *Client) Reboot(ctx context.Context) error

func (*Client) UpdateAdvancedCertificates

func (c *Client) UpdateAdvancedCertificates(ctx context.Context, certificate, privateKey []byte) error

Jump to

Keyboard shortcuts

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