yunjiasu

package
v0.0.0-...-9d4a58f Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OPENAPI_BASE_URL string = "https://api.su.baidu.com/"
	PATH             string = "v3/yjs/custom_certificates"
)

签名算法

Variables

This section is empty.

Functions

func RefreshConfig

func RefreshConfig()

func Run

func Run()

Types

type Secret

type Secret struct {
	TlsName          string
	TlsNamespace     string
	Domain           string
	SyncNamespaces   []string
	SyncedNamespaces map[string]struct{}
	Timer            *time.Timer
	CheckInterval    time.Duration
	NotAfter         time.Time
	Cert             *bytes.Buffer
	Key              *bytes.Buffer
	// contains filtered or unexported fields
}

func (*Secret) IsStopped

func (s *Secret) IsStopped() bool

func (*Secret) SetCheckInterval

func (s *Secret) SetCheckInterval(i time.Duration)

func (*Secret) SetSyncNamespaces

func (s *Secret) SetSyncNamespaces(ns []string)

func (*Secret) StartSync

func (s *Secret) StartSync()

func (*Secret) Stop

func (s *Secret) Stop()

func (*Secret) StopSync

func (s *Secret) StopSync()

func (*Secret) Sync

func (s *Secret) Sync()

func (*Secret) Wait

func (s *Secret) Wait()

Jump to

Keyboard shortcuts

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