Documentation ¶
Index ¶
- func CreateEndpoint(projectProvider provider.ProjectProvider) endpoint.Endpoint
- func DecodeCreate(c context.Context, r *http.Request) (interface{}, error)
- func DecodeDelete(c context.Context, r *http.Request) (interface{}, error)
- func DecodeList(c context.Context, r *http.Request) (interface{}, error)
- func DecodeUpdateRq(c context.Context, r *http.Request) (interface{}, error)
- func DeleteEndpoint(projectProvider provider.ProjectProvider, ...) endpoint.Endpoint
- func GetEndpoint(projectProvider provider.ProjectProvider, ...) endpoint.Endpoint
- func ListEndpoint(userInfoGetter provider.UserInfoGetter, ...) endpoint.Endpoint
- func UpdateEndpoint(projectProvider provider.ProjectProvider, ...) endpoint.Endpoint
- type ListReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEndpoint ¶
func CreateEndpoint(projectProvider provider.ProjectProvider) endpoint.Endpoint
CreateEndpoint defines an HTTP endpoint that creates a new project in the system
func DecodeCreate ¶
DecodeCreate decodes an HTTP request into projectReq
func DecodeDelete ¶
DecodeDelete decodes an HTTP request into deleteRq
func DecodeUpdateRq ¶
DecodeUpdateRq decodes an HTTP request into updateRq
func DeleteEndpoint ¶
func DeleteEndpoint(projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
DeleteEndpoint defines an HTTP endpoint for deleting a project
func GetEndpoint ¶
func GetEndpoint(projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, memberProvider provider.ProjectMemberProvider, userProvider provider.UserProvider, userInfoGetter provider.UserInfoGetter, clusterProviderGetter provider.ClusterProviderGetter, seedsGetter provider.SeedsGetter) endpoint.Endpoint
GeEndpoint defines an HTTP endpoint for getting a project
func ListEndpoint ¶
func ListEndpoint(userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, memberMapper provider.ProjectMemberMapper, memberProvider provider.ProjectMemberProvider, userProvider provider.UserProvider, clusterProviderGetter provider.ClusterProviderGetter, seedsGetter provider.SeedsGetter) endpoint.Endpoint
ListEndpoint defines an HTTP endpoint for listing projects
func UpdateEndpoint ¶
func UpdateEndpoint(projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, memberProvider provider.ProjectMemberProvider, userProvider provider.UserProvider, userInfoGetter provider.UserInfoGetter, clusterProviderGetter provider.ClusterProviderGetter, seedsGetter provider.SeedsGetter) endpoint.Endpoint
UpdateEndpoint defines an HTTP endpoint that updates an existing project in the system in the current implementation only project renaming is supported
Types ¶
Click to show internal directories.
Click to hide internal directories.