cloudflare

package
v0.0.0-...-42c9c5b Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: ISC Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	URL        string `json:"url"`
	Username   string `json:"username"`
	Credential string `json:"credential"`
	Lifetime   int    `json:"lifetime"`
}

type CredentialsClient

type CredentialsClient struct {
	HasFetchedFirstCredentials bool
	// contains filtered or unexported fields
}

func NewCredentialsClient

func NewCredentialsClient(appID, key string, lifetime time.Duration) *CredentialsClient

func (*CredentialsClient) GetCredentials

func (c *CredentialsClient) GetCredentials(ctx context.Context) (*Credentials, error)

func (*CredentialsClient) Run

func (c *CredentialsClient) Run(ctx context.Context)

Jump to

Keyboard shortcuts

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