project

package
v2.14.4+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

func DecodeCreate(c context.Context, r *http.Request) (interface{}, error)

DecodeCreate decodes an HTTP request into projectReq

func DecodeDelete

func DecodeDelete(c context.Context, r *http.Request) (interface{}, error)

DecodeDelete decodes an HTTP request into deleteRq

func DecodeList

func DecodeList(c context.Context, r *http.Request) (interface{}, error)

func DecodeUpdateRq

func DecodeUpdateRq(c context.Context, r *http.Request) (interface{}, error)

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

type ListReq

type ListReq struct {
	// in: query
	DisplayAll bool `json:"displayAll,omitempty"`
}

ListReq defines HTTP request for listProjects endpoint swagger:parameters listProjects

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL