Documentation
¶
Index ¶
- type C
- type K
- type O
- type OU
- type P
- type PU
- type Store
- func (c *Store) GetAPIKeyBySecret(secret string) (*K, bool)
- func (c *Store) GetClusterByRegistrationKey(key string) (*C, bool)
- func (c *Store) GetClustersByTenantID(tenantID string) []C
- func (c *Store) GetOrganizationByID(organizationID string) (*O, bool)
- func (c *Store) GetOrganizationsByUserID(userID string) []OU
- func (c *Store) GetProjectByID(projectID string) (*P, bool)
- func (c *Store) GetProjectsByOrganizationID(organizationID string) []P
- func (c *Store) GetProjectsByUserID(userID string) []PU
- func (c *Store) GetUserByID(userID string) (*U, bool)
- func (c *Store) Sync(ctx context.Context, interval time.Duration) error
- type U
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OU ¶
type OU struct { Role uv1.OrganizationRole OrganizationID string }
OU represents a role associated with a organization user.
type PU ¶
type PU struct { Role uv1.ProjectRole ProjectID string OrganizationID string }
PU represents a role associated with a project user.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a cache for API keys and organization users.
func NewStore ¶
func NewStore( userInfoLister userInfoLister, clusterInfoLister clusterInfoLister, debug *config.DebugConfig, ) *Store
NewStore creates a new cache store.
func (*Store) GetAPIKeyBySecret ¶
GetAPIKeyBySecret returns an API key by its secret.
func (*Store) GetClusterByRegistrationKey ¶
GetClusterByRegistrationKey returns a cluster by its registration key.
func (*Store) GetClustersByTenantID ¶
GetClustersByTenantID returns clusters by its tenant ID.
func (*Store) GetOrganizationByID ¶
GetOrganizationByID returns an organization by its ID.
func (*Store) GetOrganizationsByUserID ¶
GetOrganizationsByUserID returns organization users by its user ID.
func (*Store) GetProjectByID ¶
GetProjectByID returns a project by its ID.
func (*Store) GetProjectsByOrganizationID ¶
GetProjectsByOrganizationID returns projects by its organization ID.
func (*Store) GetProjectsByUserID ¶
GetProjectsByUserID returns project users by its user ID.
func (*Store) GetUserByID ¶
GetUserByID returns a user by its ID.