-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.0.39 multi-org lcl; misc fixes and refinements
- Loading branch information
Showing
84 changed files
with
5,122 additions
and
882 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package api | ||
|
||
import "slices" | ||
|
||
func (o Organization) Key() string { return o.Apid } | ||
func (o Organization) String() string { return o.Name } | ||
func (o Organization) Plural() string { return "organizations" } | ||
func (o Organization) Singular() string { return "organization" } | ||
|
||
func (r Realm) Key() string { return r.Apid } | ||
func (r Realm) String() string { return r.Name } | ||
func (r Realm) Plural() string { return "realms" } | ||
func (r Realm) Singular() string { return "realm" } | ||
|
||
func (s Service) Key() string { return s.Slug } | ||
func (s Service) String() string { return s.Name } | ||
func (s Service) Plural() string { return "services" } | ||
func (s Service) Singular() string { return "service" } | ||
|
||
func NonDiagnosticServices(s []Service) []Service { | ||
return slices.DeleteFunc(s, func(svc Service) bool { | ||
return svc.ServerType == ServiceServerTypeDiagnostic | ||
}) | ||
} | ||
|
||
var _ Filter[Service] = NonDiagnosticServices |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
─── SignOutHeader ────────────────────────────────────────────────────────────── | ||
|
||
# Signout from Anchor.dev `anchor auth signout` | ||
─── SignOutSignedOut ─────────────────────────────────────────────────────────── | ||
|
||
# Signout from Anchor.dev `anchor auth signout` | ||
- Not signed in. | ||
| Run `anchor auth signin` to sign in. |
Oops, something went wrong.