Skip to content

Commit

Permalink
Added documentation to Operator fields. (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
aricart authored Sep 20, 2019
1 parent c2e662a commit 09b136b
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions operator_claims.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,19 @@ import (

// Operator specific claims
type Operator struct {
Identities []Identity `json:"identity,omitempty"`
SigningKeys StringList `json:"signing_keys,omitempty"`
AccountServerURL string `json:"account_server_url,omitempty"`
// Slice of real identies (like websites) that can be used to identify the operator.
Identities []Identity `json:"identity,omitempty"`
// Slice of other operator NKeys that can be used to sign on behalf of the main
// operator identity.
SigningKeys StringList `json:"signing_keys,omitempty"`
// AccountServerURL is a partial URL like "https://host.domain.org:<port>/jwt/v1"
// tools will use the prefix and build queries by appending /accounts/<account_id>
// or /operator to the path provided. Note this assumes that the account server
// can handle requests in a nats-account-server compatible way. See
// https://github.com/nats-io/nats-account-server.
AccountServerURL string `json:"account_server_url,omitempty"`
// A list of NATS urls (tls://host:port) where tools can connect to the server
// using proper credentials.
OperatorServiceURLs StringList `json:"operator_service_urls,omitempty"`
}

Expand Down

0 comments on commit 09b136b

Please sign in to comment.