Skip to content

Commit

Permalink
doc: minor doc updates
Browse files Browse the repository at this point in the history
Signed-off-by: angabini <494150+angabini@users.noreply.github.com>
  • Loading branch information
angabini committed Aug 12, 2024
1 parent 51299b0 commit e829df2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions v2/bundle/jwtbundle/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
//
// You can create a new bundle for a specific trust domain:
//
// td := spiffeid.RequireTrustDomain("example.org")
// td := spiffeid.RequireTrustDomainFromString("example.org")
// bundle := jwtbundle.New(td)
//
// Or you can load it from disk:
//
// td := spiffeid.RequireTrustDomain("example.org")
// td := spiffeid.RequireTrustDomainFromString("example.org")
// bundle := jwtbundle.Load(td, "bundle.jwks")
//
// The bundle can be initialized with JWT authorities:
//
// td := spiffeid.RequireTrustDomain("example.org")
// td := spiffeid.RequireTrustDomainFromString("example.org")
// var jwtAuthorities map[string]crypto.PublicKey = ...
// bundle := jwtbundle.FromJWTAuthorities(td, jwtAuthorities)
//
Expand Down
6 changes: 3 additions & 3 deletions v2/bundle/spiffebundle/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
//
// You can create a new bundle for a specific trust domain:
//
// td := spiffeid.RequireTrustDomain("example.org")
// td := spiffeid.RequireTrustDomainFromString("example.org")
// bundle := spiffebundle.New(td)
//
// Or you can load it from disk:
//
// td := spiffeid.RequireTrustDomain("example.org")
// td := spiffeid.RequireTrustDomainFromString("example.org")
// bundle := spiffebundle.Load(td, "bundle.json")
//
// The bundle can be initialized with X.509 or JWT authorities:
//
// td := spiffeid.RequireTrustDomain("example.org")
// td := spiffeid.RequireTrustDomainFromString("example.org")
//
// var x509Authorities []*x509.Certificate = ...
// bundle := spiffebundle.FromX509Authorities(td, x509Authorities)
Expand Down
6 changes: 3 additions & 3 deletions v2/bundle/x509bundle/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
//
// You can create a new bundle for a specific trust domain:
//
// td := spiffeid.RequireTrustDomain("example.org")
// td := spiffeid.RequireTrustDomainFromString("example.org")
// bundle := x509bundle.New(td)
//
// Or you can load it from disk:
//
// td := spiffeid.RequireTrustDomain("example.org")
// td := spiffeid.RequireTrustDomainFromString("example.org")
// bundle := x509bundle.Load(td, "bundle.pem")
//
// The bundle can be initialized with X.509 authorities:
//
// td := spiffeid.RequireTrustDomain("example.org")
// td := spiffeid.RequireTrustDomainFromString("example.org")
// var x509Authorities []*x509.Certificate = ...
// bundle := x509bundle.FromX509Authorities(td, x509Authorities)
//
Expand Down

0 comments on commit e829df2

Please sign in to comment.