Documentation ¶
Index ¶
- func Can(db *gorm.DB, identity uid.PolymorphicID, privilege, resource string) (bool, error)
- func CreateAccessKey(c *gin.Context, accessKey *models.AccessKey, machineID uid.ID) (body string, err error)
- func CreateDestination(c *gin.Context, destination *models.Destination) error
- func CreateGrant(c *gin.Context, grant *models.Grant) error
- func CreateGroup(c *gin.Context, group *models.Group) error
- func CreateMachine(c *gin.Context, machine *models.Machine) error
- func CreateMachineToken(c *gin.Context) (token *models.Token, err error)
- func CreateProvider(c *gin.Context, provider *models.Provider) error
- func CreateUser(c *gin.Context, user *models.User) error
- func CreateUserToken(c *gin.Context) (token *models.Token, err error)
- func CurrentMachine(c *gin.Context) *models.Machine
- func CurrentUser(c *gin.Context) *models.User
- func DeleteAccessKey(c *gin.Context, id uid.ID) error
- func DeleteAllUserAccessKeys(c *gin.Context) error
- func DeleteDestination(c *gin.Context, id uid.ID) error
- func DeleteGrant(c *gin.Context, id uid.ID) error
- func DeleteMachine(c *gin.Context, id uid.ID) error
- func DeleteProvider(c *gin.Context, id uid.ID) error
- func DeleteRequestAccessKey(c *gin.Context) error
- func ExchangeAccessKey(c *gin.Context, requestingAccessKey string, expiry time.Time) (string, *models.Machine, error)
- func ExchangeAuthCodeForAccessKey(c *gin.Context, code string, provider *models.Provider, oidc authn.OIDC, ...) (*models.User, string, error)
- func GetDestination(c *gin.Context, id uid.ID) (*models.Destination, error)
- func GetGrant(c *gin.Context, id uid.ID) (*models.Grant, error)
- func GetGroup(c *gin.Context, id uid.ID) (*models.Group, error)
- func GetMachine(c *gin.Context, id uid.ID) (*models.Machine, error)
- func GetProvider(c *gin.Context, id uid.ID) (*models.Provider, error)
- func GetUser(c *gin.Context, id uid.ID) (*models.User, error)
- func ListAccessKeys(c *gin.Context, machineID uid.ID, name string) ([]models.AccessKey, error)
- func ListDestinations(c *gin.Context, uniqueID, name string) ([]models.Destination, error)
- func ListGrants(c *gin.Context, identity uid.PolymorphicID, resource string, privilege string) ([]models.Grant, error)
- func ListGroupGrants(c *gin.Context, groupID uid.ID) ([]models.Grant, error)
- func ListGroups(c *gin.Context, name string, providerID uid.ID) ([]models.Group, error)
- func ListMachineGrants(c *gin.Context, machineID uid.ID) ([]models.Grant, error)
- func ListMachines(c *gin.Context, name string) ([]models.Machine, error)
- func ListProviders(c *gin.Context, name string) ([]models.Provider, error)
- func ListUserGrants(c *gin.Context, userID uid.ID) ([]models.Grant, error)
- func ListUserGroups(c *gin.Context, userID uid.ID) ([]models.Group, error)
- func ListUsers(c *gin.Context, email string, providerID uid.ID) ([]models.User, error)
- func RetrieveUserProviderTokens(c *gin.Context) (*models.ProviderToken, error)
- func SaveDestination(c *gin.Context, destination *models.Destination) error
- func SaveProvider(c *gin.Context, provider *models.Provider) error
- func Setup(c *gin.Context) (string, *models.AccessKey, error)
- func SetupRequired(c *gin.Context) (bool, error)
- func UpdateProviderToken(c *gin.Context, providerToken *models.ProviderToken) error
- func UpdateUserInfo(c *gin.Context, info *authn.UserInfo, user *models.User, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Can ¶ added in v0.5.9
Can checks if an identity has a privilege that means it can perform an action on a resource
func CreateAccessKey ¶ added in v0.5.4
func CreateDestination ¶
func CreateDestination(c *gin.Context, destination *models.Destination) error
func CreateMachine ¶ added in v0.5.4
func CreateMachineToken ¶ added in v0.5.8
func DeleteAllUserAccessKeys ¶ added in v0.5.4
func DeleteRequestAccessKey ¶ added in v0.5.9
func ExchangeAccessKey ¶ added in v0.5.9
func ExchangeAccessKey(c *gin.Context, requestingAccessKey string, expiry time.Time) (string, *models.Machine, error)
ExchangeAccessKey allows a key exchange to get a new key with a shorter lifetime
func ExchangeAuthCodeForAccessKey ¶ added in v0.5.4
func GetDestination ¶
func GetMachine ¶ added in v0.5.8
func ListAccessKeys ¶ added in v0.5.4
func ListDestinations ¶
func ListGrants ¶
func ListGroups ¶
func ListMachineGrants ¶ added in v0.5.8
func ListMachines ¶ added in v0.5.4
func RetrieveUserProviderTokens ¶
func RetrieveUserProviderTokens(c *gin.Context) (*models.ProviderToken, error)
RetrieveUserProviderTokens gets the provider tokens that the current session token was created for
func SaveDestination ¶
func SaveDestination(c *gin.Context, destination *models.Destination) error
func UpdateProviderToken ¶
func UpdateProviderToken(c *gin.Context, providerToken *models.ProviderToken) error
UpdateProviderToken overwrites an existing set of provider tokens
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.