Documentation
¶
Overview ¶
Package relayprofile describes application relay selection and saved service credentials.
Index ¶
Constants ¶
View Source
const MaxAccessKeyBytes = senderrelay.MaxAccessKeyBytes
View Source
const MaximumEndpoints = relayset.MaximumEndpoints
Variables ¶
View Source
var ErrCandidatesRequired = errors.New("relay intent excludes the built-in network but has no candidates")
Functions ¶
func PublicURLs ¶
func RegistrationURLs ¶
func RegistrationURLs(candidates []Registration) ([]string, error)
Types ¶
type AuthorizationSource ¶
type AuthorizationSource interface {
RegistrationAuthorization() serviceauthority.RegistrationAuthorization
}
type Candidate ¶
type Candidate struct {
PublicURL string
ConsoleURL string `json:"-"`
OfferedFrontend string `json:"-"`
AccessKey string `json:"-"`
}
func (Candidate) Registration ¶
func (candidate Candidate) Registration() Registration
type Intent ¶
type Intent struct {
// contains filtered or unexported fields
}
Intent separates a user's complete explicit set from configured candidates supplemented by the application network. The zero value requests planning.
func OnlyConfigured ¶
func UseExplicit ¶
func (Intent) Candidates ¶
func (Intent) Mode ¶
func (i Intent) Mode() IntentMode
type Registration ¶
type Registration struct {
PublicURL string
Authorization AuthorizationSource `json:"-"`
}
func Registrations ¶
func Registrations(profiles []Candidate) []Registration
type StaticKey ¶
type StaticKey string
func (StaticKey) RegistrationAuthorization ¶
func (key StaticKey) RegistrationAuthorization() serviceauthority.RegistrationAuthorization
Click to show internal directories.
Click to hide internal directories.