Documentation
¶
Overview ¶
Copyright (c) 2021 Cisco Systems, Inc and its affiliates All Rights reserved
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
Cache represents a cache for storing token permissions locally to speed up RBAC actions.
type MSXRBAC ¶
type MSXRBAC struct {
Cfg MSXRBACConfig
Cache *bigcache.BigCache
Client *http.Client
}
func NewMsxRbac ¶
func NewMsxRbac(cfg MSXRBACConfig) *MSXRBAC
NewMsxRbac returns an MSXRBAC with default config set.
type MSXRBACConfig ¶
type MSXRBACConfig struct {
RbacURL string // URL to User Management Service in your MSX environment.
Cache Cache // Cache to use for local caching.
TLS *tls.Config // TLS config to use on outgoing client.
ClientID string // Credential to use when speaking to MSX.
ClientSecret string // Credential to use when speaking to MSX.
}
MSXRBACConfig represents the config for performing RBAC on the targeted MSX environment.
func DefaultMsxRbacConfig ¶
func DefaultMsxRbacConfig() MSXRBACConfig
DefaultMsxRbacConfig returns a default config. Note this default is not secure and should not be used in a production environment.
Click to show internal directories.
Click to hide internal directories.