Documentation
¶
Index ¶
Constants ¶
View Source
const (
EXTENDER = ClientType("EXTENDER")
)
ClientType supported values
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TrustedClient ¶
type TrustedClient struct {
ID string `json:"id,omitempty"`
Type ClientType `json:"type,omitempty"`
Secret string `json:"secret,omitempty"`
Name string `json:"name,omitempty"`
Permissions []string `json:"permissions,omitempty"`
Registered bool `json:"registered,omitempty"`
Enabled bool `json:"enabled,omitempty"`
}
TrustedClient definition
type UserStore ¶
type UserStore struct {
// contains filtered or unexported fields
}
UserStore is a role-store client instance.
func (*UserStore) CreateTrustedClient ¶
func (store *UserStore) CreateTrustedClient(client TrustedClient) (string, error)
CreateTrustedClient registers new client to PrivX
func (*UserStore) DeleteTrustedClient ¶
DeleteTrustedClient removes the client
func (*UserStore) TrustedClient ¶
func (store *UserStore) TrustedClient(id string) (*TrustedClient, error)
TrustedClient returns details about the client
func (*UserStore) TrustedClients ¶
func (store *UserStore) TrustedClients() ([]TrustedClient, error)
TrustedClients fetches all known trusted clients
Click to show internal directories.
Click to hide internal directories.