Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Organization Template API 초기 구현 #307

Merged
merged 2 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ require (
gorm.io/gorm v1.25.7
goyave.dev/goyave/v4 v4.4.11
k8s.io/api v0.26.1
k8s.io/apiextensions-apiserver v0.26.1
k8s.io/apimachinery v0.26.4
k8s.io/client-go v0.26.1
k8s.io/utils v0.0.0-20221128185143-99ec85e7a448
Expand Down Expand Up @@ -138,7 +139,6 @@ require (
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gorm.io/driver/mysql v1.5.0 // indirect
k8s.io/apiextensions-apiserver v0.26.1 // indirect
k8s.io/component-base v0.26.1 // indirect
k8s.io/klog/v2 v2.80.1 // indirect
k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 // indirect
Expand Down
26 changes: 13 additions & 13 deletions internal/delivery/api/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,19 +243,19 @@ const (
ExistsPolicyName

// OrganizationPolicyTemplate
ListOrganizationPolicyTemplate
CreateOrganizationPolicyTemplate
DeleteOrganizationPolicyTemplate
GetOrganizationPolicyTemplate
UpdateOrganizationPolicyTemplate
GetOrganizationPolicyTemplateDeploy
ListOrganizationPolicyTemplateStatistics
ListOrganizationPolicyTemplateVersions
CreateOrganizationPolicyTemplateVersion
DeleteOrganizationPolicyTemplateVersion
GetOrganizationPolicyTemplateVersion
ExistsOrganizationPolicyTemplateKind
ExistsOrganizationPolicyTemplateName
ListPolicyTemplate
CreatePolicyTemplate
DeletePolicyTemplate
GetPolicyTemplate
UpdatePolicyTemplate
GetPolicyTemplateDeploy
ListPolicyTemplateStatistics
ListPolicyTemplateVersions
CreatePolicyTemplateVersion
DeletePolicyTemplateVersion
GetPolicyTemplateVersion
ExistsPolicyTemplateKind
ExistsPolicyTemplateName

// PolicyTemplateExample
ListPolicyTemplateExample
Expand Down
156 changes: 78 additions & 78 deletions internal/delivery/api/generated_endpoints.go.go
Original file line number Diff line number Diff line change
Expand Up @@ -739,56 +739,56 @@ var ApiMap = map[Endpoint]EndpointInfo{
Name: "ExistsPolicyName",
Group: "Policy",
},
ListOrganizationPolicyTemplate: {
Name: "ListOrganizationPolicyTemplate",
ListPolicyTemplate: {
Name: "ListPolicyTemplate",
Group: "OrganizationPolicyTemplate",
},
CreateOrganizationPolicyTemplate: {
Name: "CreateOrganizationPolicyTemplate",
CreatePolicyTemplate: {
Name: "CreatePolicyTemplate",
Group: "OrganizationPolicyTemplate",
},
DeleteOrganizationPolicyTemplate: {
Name: "DeleteOrganizationPolicyTemplate",
DeletePolicyTemplate: {
Name: "DeletePolicyTemplate",
Group: "OrganizationPolicyTemplate",
},
GetOrganizationPolicyTemplate: {
Name: "GetOrganizationPolicyTemplate",
GetPolicyTemplate: {
Name: "GetPolicyTemplate",
Group: "OrganizationPolicyTemplate",
},
UpdateOrganizationPolicyTemplate: {
Name: "UpdateOrganizationPolicyTemplate",
UpdatePolicyTemplate: {
Name: "UpdatePolicyTemplate",
Group: "OrganizationPolicyTemplate",
},
GetOrganizationPolicyTemplateDeploy: {
Name: "GetOrganizationPolicyTemplateDeploy",
GetPolicyTemplateDeploy: {
Name: "GetPolicyTemplateDeploy",
Group: "OrganizationPolicyTemplate",
},
ListOrganizationPolicyTemplateStatistics: {
Name: "ListOrganizationPolicyTemplateStatistics",
ListPolicyTemplateStatistics: {
Name: "ListPolicyTemplateStatistics",
Group: "OrganizationPolicyTemplate",
},
ListOrganizationPolicyTemplateVersions: {
Name: "ListOrganizationPolicyTemplateVersions",
ListPolicyTemplateVersions: {
Name: "ListPolicyTemplateVersions",
Group: "OrganizationPolicyTemplate",
},
CreateOrganizationPolicyTemplateVersion: {
Name: "CreateOrganizationPolicyTemplateVersion",
CreatePolicyTemplateVersion: {
Name: "CreatePolicyTemplateVersion",
Group: "OrganizationPolicyTemplate",
},
DeleteOrganizationPolicyTemplateVersion: {
Name: "DeleteOrganizationPolicyTemplateVersion",
DeletePolicyTemplateVersion: {
Name: "DeletePolicyTemplateVersion",
Group: "OrganizationPolicyTemplate",
},
GetOrganizationPolicyTemplateVersion: {
Name: "GetOrganizationPolicyTemplateVersion",
GetPolicyTemplateVersion: {
Name: "GetPolicyTemplateVersion",
Group: "OrganizationPolicyTemplate",
},
ExistsOrganizationPolicyTemplateKind: {
Name: "ExistsOrganizationPolicyTemplateKind",
ExistsPolicyTemplateKind: {
Name: "ExistsPolicyTemplateKind",
Group: "OrganizationPolicyTemplate",
},
ExistsOrganizationPolicyTemplateName: {
Name: "ExistsOrganizationPolicyTemplateName",
ExistsPolicyTemplateName: {
Name: "ExistsPolicyTemplateName",
Group: "OrganizationPolicyTemplate",
},
ListPolicyTemplateExample: {
Expand Down Expand Up @@ -1182,32 +1182,32 @@ func (e Endpoint) String() string {
return "UpdatePolicyTargetClusters"
case ExistsPolicyName:
return "ExistsPolicyName"
case ListOrganizationPolicyTemplate:
return "ListOrganizationPolicyTemplate"
case CreateOrganizationPolicyTemplate:
return "CreateOrganizationPolicyTemplate"
case DeleteOrganizationPolicyTemplate:
return "DeleteOrganizationPolicyTemplate"
case GetOrganizationPolicyTemplate:
return "GetOrganizationPolicyTemplate"
case UpdateOrganizationPolicyTemplate:
return "UpdateOrganizationPolicyTemplate"
case GetOrganizationPolicyTemplateDeploy:
return "GetOrganizationPolicyTemplateDeploy"
case ListOrganizationPolicyTemplateStatistics:
return "ListOrganizationPolicyTemplateStatistics"
case ListOrganizationPolicyTemplateVersions:
return "ListOrganizationPolicyTemplateVersions"
case CreateOrganizationPolicyTemplateVersion:
return "CreateOrganizationPolicyTemplateVersion"
case DeleteOrganizationPolicyTemplateVersion:
return "DeleteOrganizationPolicyTemplateVersion"
case GetOrganizationPolicyTemplateVersion:
return "GetOrganizationPolicyTemplateVersion"
case ExistsOrganizationPolicyTemplateKind:
return "ExistsOrganizationPolicyTemplateKind"
case ExistsOrganizationPolicyTemplateName:
return "ExistsOrganizationPolicyTemplateName"
case ListPolicyTemplate:
return "ListPolicyTemplate"
case CreatePolicyTemplate:
return "CreatePolicyTemplate"
case DeletePolicyTemplate:
return "DeletePolicyTemplate"
case GetPolicyTemplate:
return "GetPolicyTemplate"
case UpdatePolicyTemplate:
return "UpdatePolicyTemplate"
case GetPolicyTemplateDeploy:
return "GetPolicyTemplateDeploy"
case ListPolicyTemplateStatistics:
return "ListPolicyTemplateStatistics"
case ListPolicyTemplateVersions:
return "ListPolicyTemplateVersions"
case CreatePolicyTemplateVersion:
return "CreatePolicyTemplateVersion"
case DeletePolicyTemplateVersion:
return "DeletePolicyTemplateVersion"
case GetPolicyTemplateVersion:
return "GetPolicyTemplateVersion"
case ExistsPolicyTemplateKind:
return "ExistsPolicyTemplateKind"
case ExistsPolicyTemplateName:
return "ExistsPolicyTemplateName"
case ListPolicyTemplateExample:
return "ListPolicyTemplateExample"
case GetPolicyTemplateExample:
Expand Down Expand Up @@ -1592,32 +1592,32 @@ func GetEndpoint(name string) Endpoint {
return UpdatePolicyTargetClusters
case "ExistsPolicyName":
return ExistsPolicyName
case "ListOrganizationPolicyTemplate":
return ListOrganizationPolicyTemplate
case "CreateOrganizationPolicyTemplate":
return CreateOrganizationPolicyTemplate
case "DeleteOrganizationPolicyTemplate":
return DeleteOrganizationPolicyTemplate
case "GetOrganizationPolicyTemplate":
return GetOrganizationPolicyTemplate
case "UpdateOrganizationPolicyTemplate":
return UpdateOrganizationPolicyTemplate
case "GetOrganizationPolicyTemplateDeploy":
return GetOrganizationPolicyTemplateDeploy
case "ListOrganizationPolicyTemplateStatistics":
return ListOrganizationPolicyTemplateStatistics
case "ListOrganizationPolicyTemplateVersions":
return ListOrganizationPolicyTemplateVersions
case "CreateOrganizationPolicyTemplateVersion":
return CreateOrganizationPolicyTemplateVersion
case "DeleteOrganizationPolicyTemplateVersion":
return DeleteOrganizationPolicyTemplateVersion
case "GetOrganizationPolicyTemplateVersion":
return GetOrganizationPolicyTemplateVersion
case "ExistsOrganizationPolicyTemplateKind":
return ExistsOrganizationPolicyTemplateKind
case "ExistsOrganizationPolicyTemplateName":
return ExistsOrganizationPolicyTemplateName
case "ListPolicyTemplate":
return ListPolicyTemplate
case "CreatePolicyTemplate":
return CreatePolicyTemplate
case "DeletePolicyTemplate":
return DeletePolicyTemplate
case "GetPolicyTemplate":
return GetPolicyTemplate
case "UpdatePolicyTemplate":
return UpdatePolicyTemplate
case "GetPolicyTemplateDeploy":
return GetPolicyTemplateDeploy
case "ListPolicyTemplateStatistics":
return ListPolicyTemplateStatistics
case "ListPolicyTemplateVersions":
return ListPolicyTemplateVersions
case "CreatePolicyTemplateVersion":
return CreatePolicyTemplateVersion
case "DeletePolicyTemplateVersion":
return DeletePolicyTemplateVersion
case "GetPolicyTemplateVersion":
return GetPolicyTemplateVersion
case "ExistsPolicyTemplateKind":
return ExistsPolicyTemplateKind
case "ExistsPolicyTemplateName":
return ExistsPolicyTemplateName
case "ListPolicyTemplateExample":
return ListPolicyTemplateExample
case "GetPolicyTemplateExample":
Expand Down
Loading
Loading