Versions in this module Expand all Collapse all v1 v1.6.4 Jun 2, 2022 Changes in this version + const StrategyInvalid + const StrategyOrderedList + type AuthRemote struct + func NewAuthServer(addr string, tlsConfig *tls.Config, provider auth.Provider) *AuthRemote + func (ar *AuthRemote) Sign(req []byte) ([]byte, error) + type Remote interface + AuthSign func(req, id []byte, provider auth.Provider) ([]byte, error) + Hosts func() []string + Info func(jsonData []byte) (*info.Resp, error) + SetProxy func(func(*http.Request) (*url.URL, error)) + SetReqModifier func(func(*http.Request, []byte)) + SetRequestTimeout func(d time.Duration) + Sign func(jsonData []byte) ([]byte, error) + func NewGroup(remotes []string, tlsConfig *tls.Config, strategy Strategy) (Remote, error) + func NewServer(addr string) Remote + func NewServerTLS(addr string, tlsConfig *tls.Config) Remote + type SignResult struct + Certificate []byte + type Strategy int + func StrategyFromString(s string) Strategy