| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- package types
- type Project struct {
- ID uint `json:"id"`
- Name string `json:"name"`
- Roles []*Role `json:"roles"`
- }
- type CreateProjectRequest struct {
- Name string `json:"name" form:"required"`
- }
- type CreateProjectResponse Project
- type CreateProjectRoleRequest struct {
- Kind string `json:"kind" form:"required"`
- UserID uint `json:"user_id" form:"required"`
- }
- type ReadProjectResponse Project
- type ListProjectsRequest struct{}
- type ListProjectsResponse []Project
- type DeleteProjectRequest struct {
- Name string `json:"name" form:"required"`
- }
- type DeleteProjectResponse Project
- type ListProjectInfraResponse []*Infra
- type GetProjectPolicyResponse []*PolicyDocument
- type ListProjectRolesResponse []RoleKind
- type Collaborator struct {
- ID uint `json:"id"`
- Kind string `json:"kind"`
- UserID uint `json:"user_id"`
- Email string `json:"email"`
- ProjectID uint `json:"project_id"`
- }
- type ListCollaboratorsResponse []*Collaborator
- type UpdateRoleRequest struct {
- UserID uint `json:"user_id,required"`
- Kind string `json:"kind,required"`
- }
- type UpdateRoleResponse struct {
- *Role
- }
- type DeleteRoleRequest struct {
- UserID uint `schema:"user_id,required"`
- }
- type DeleteRoleResponse struct {
- *Role
- }
- type GetBillingTokenResponse struct {
- Token string `json:"token"`
- }
- type GetProjectBillingResponse struct {
- HasBilling bool `json:"has_billing"`
- }
- type StepEnum string
- const (
- StepGithub StepEnum = "github"
- StepTwo StepEnum = "step_two"
- )
- type ConnectedSourceType string
- const (
- ConnectedSourceTypeGithub = "github"
- ConnectedSourceTypeDocker = "docker"
- )
- type OnboardingData struct {
- CurrentStep StepEnum `json:"current_step"`
- ConnectedSource ConnectedSourceType `json:"connected_source"`
- SkipRegistryConnection bool `json:"skip_registry_connection"`
- SkipResourceProvision bool `json:"skip_resource_provision"`
- RegistryConnectionID uint `json:"registry_connection_id"`
- RegistryInfraID uint `json:"registry_infra_id"`
- ClusterInfraID uint `json:"cluster_infra_id"`
- }
- type UpdateOnboardingRequest OnboardingData
|