Documentation ¶
Index ¶
- func CreateEndpoint(projectProvider provider.ProjectProvider, ...) endpoint.Endpoint
- func CreateTokenEndpoint(projectProvider provider.ProjectProvider, ...) endpoint.Endpoint
- func DecodeAddReq(c context.Context, r *http.Request) (interface{}, error)
- func DecodeAddTokenReq(c context.Context, r *http.Request) (interface{}, error)
- func DecodeDeleteReq(c context.Context, r *http.Request) (interface{}, error)
- func DecodeDeleteTokenReq(c context.Context, r *http.Request) (interface{}, error)
- func DecodePatchTokenReq(c context.Context, r *http.Request) (interface{}, error)
- func DecodeTokenReq(c context.Context, r *http.Request) (interface{}, error)
- func DecodeUpdateReq(c context.Context, r *http.Request) (interface{}, error)
- func DecodeUpdateTokenReq(c context.Context, r *http.Request) (interface{}, error)
- func DeleteEndpoint(serviceAccountProvider provider.ServiceAccountProvider, ...) endpoint.Endpoint
- func DeleteTokenEndpoint(projectProvider provider.ProjectProvider, ...) endpoint.Endpoint
- func ListEndpoint(projectProvider provider.ProjectProvider, ...) endpoint.Endpoint
- func ListTokenEndpoint(projectProvider provider.ProjectProvider, ...) endpoint.Endpoint
- func PatchTokenEndpoint(projectProvider provider.ProjectProvider, ...) endpoint.Endpoint
- func UpdateEndpoint(projectProvider provider.ProjectProvider, ...) endpoint.Endpoint
- func UpdateTokenEndpoint(projectProvider provider.ProjectProvider, ...) endpoint.Endpoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEndpoint ¶
func CreateEndpoint(projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, serviceAccountProvider provider.ServiceAccountProvider, privilegedServiceAccount provider.PrivilegedServiceAccountProvider, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
CreateEndpoint adds the given service account to the given project
func CreateTokenEndpoint ¶
func CreateTokenEndpoint(projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, serviceAccountProvider provider.ServiceAccountProvider, privilegedServiceAccount provider.PrivilegedServiceAccountProvider, serviceAccountTokenProvider provider.ServiceAccountTokenProvider, privilegedServiceAccountTokenProvider provider.PrivilegedServiceAccountTokenProvider, tokenAuthenticator serviceaccount.TokenAuthenticator, tokenGenerator serviceaccount.TokenGenerator, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
CreateTokenEndpoint creates a token for the given service account
func DecodeAddReq ¶
DecodeAddReq decodes an HTTP request into addReq
func DecodeAddTokenReq ¶
DecodeAddReq decodes an HTTP request into addReq
func DecodeDeleteReq ¶
DecodeDeleteeReq decodes an HTTP request into deleteReq
func DecodeDeleteTokenReq ¶
DecodeDeleteTokenReq decodes an HTTP request into deleteTokenReq
func DecodePatchTokenReq ¶
DecodePatchTokenReq decodes an HTTP request into patchTokenReq
func DecodeTokenReq ¶
DecodeTokenReq decodes an HTTP request into addReq
func DecodeUpdateReq ¶
DecodeUpdateReq decodes an HTTP request into updateReq
func DecodeUpdateTokenReq ¶
DecodeUpdateTokenReq decodes an HTTP request into updateTokenReq
func DeleteEndpoint ¶
func DeleteEndpoint(serviceAccountProvider provider.ServiceAccountProvider, privilegedServiceAccount provider.PrivilegedServiceAccountProvider, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
DeleteEndpoint deletes the service account for the given project
func DeleteTokenEndpoint ¶
func DeleteTokenEndpoint(projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, serviceAccountProvider provider.ServiceAccountProvider, privilegedServiceAccount provider.PrivilegedServiceAccountProvider, serviceAccountTokenProvider provider.ServiceAccountTokenProvider, privilegedServiceAccountTokenProvider provider.PrivilegedServiceAccountTokenProvider, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
DeleteTokenEndpoint deletes the token from service account
func ListEndpoint ¶
func ListEndpoint(projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, serviceAccountProvider provider.ServiceAccountProvider, privilegedServiceAccount provider.PrivilegedServiceAccountProvider, memberMapper provider.ProjectMemberMapper, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
ListEndpoint returns service accounts of the given project
func ListTokenEndpoint ¶
func ListTokenEndpoint(projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, serviceAccountProvider provider.ServiceAccountProvider, privilegedServiceAccount provider.PrivilegedServiceAccountProvider, serviceAccountTokenProvider provider.ServiceAccountTokenProvider, privilegedServiceAccountTokenProvider provider.PrivilegedServiceAccountTokenProvider, tokenAuthenticator serviceaccount.TokenAuthenticator, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
ListTokenEndpoint gets token for the service account
func PatchTokenEndpoint ¶
func PatchTokenEndpoint(projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, serviceAccountProvider provider.ServiceAccountProvider, privilegedServiceAccount provider.PrivilegedServiceAccountProvider, serviceAccountTokenProvider provider.ServiceAccountTokenProvider, privilegedServiceAccountTokenProvider provider.PrivilegedServiceAccountTokenProvider, tokenAuthenticator serviceaccount.TokenAuthenticator, tokenGenerator serviceaccount.TokenGenerator, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
PatchTokenEndpoint patches the token name
func UpdateEndpoint ¶
func UpdateEndpoint(projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, serviceAccountProvider provider.ServiceAccountProvider, privilegedServiceAccount provider.PrivilegedServiceAccountProvider, memberMapper provider.ProjectMemberMapper, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
UpdateEndpoint changes the service account group and/or name in the given project
func UpdateTokenEndpoint ¶
func UpdateTokenEndpoint(projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, serviceAccountProvider provider.ServiceAccountProvider, privilegedServiceAccount provider.PrivilegedServiceAccountProvider, serviceAccountTokenProvider provider.ServiceAccountTokenProvider, privilegedServiceAccountTokenProvider provider.PrivilegedServiceAccountTokenProvider, tokenAuthenticator serviceaccount.TokenAuthenticator, tokenGenerator serviceaccount.TokenGenerator, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
UpdateTokenEndpoint updates and regenerates the token for the given service account
Types ¶
This section is empty.