Skip to content

Commit

Permalink
package: rename schema api to author api (#248)
Browse files Browse the repository at this point in the history
Schema API is unclear, Author API is more clear the API is intended for
component authors.
  • Loading branch information
jeffmccune committed Sep 19, 2024
1 parent 57dedc6 commit 6ad24a6
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 16 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion doc/md/api/schema.md → doc/md/api/author.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import DocCardList from '@theme/DocCardList';

# Schema API
# Author API

<DocCardList />
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# v1alpha3

```go
import "github.com/holos-run/holos/api/schema/v1alpha3"
import "github.com/holos-run/holos/api/author/v1alpha3"
```

Package v1alpha3 contains CUE definitions intended as convenience wrappers around the core data types defined in package core. The purpose of these wrappers is to make life easier for platform engineers by reducing boiler plate code and generating component build plans in a consistent manner.
Expand Down
6 changes: 3 additions & 3 deletions doc/website/sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ const sidebars: SidebarsConfig = {
link: { type: 'doc', id: 'api' },
items: [
{
label: 'Schema API',
label: 'Author API',
type: 'category',
link: { type: 'doc', id: 'api/schema' },
link: { type: 'doc', id: 'api/author' },
collapsed: true,
items: [
{
type: 'autogenerated',
dirName: 'api/schema',
dirName: 'api/author',
},
]
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Code generated by cue get go. DO NOT EDIT.

//cue:generate cue get go github.com/holos-run/holos/api/schema/v1alpha3
//cue:generate cue get go github.com/holos-run/holos/api/author/v1alpha3

// Package v1alpha3 contains CUE definitions intended as convenience wrappers
// around the core data types defined in package core. The purpose of these
Expand Down
4 changes: 2 additions & 2 deletions internal/generate/platforms/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ package platforms
//go generate rm -rf cue.mod/gen/github.com/holos-run/holos/api/meta
//go:generate cue get go github.com/holos-run/holos/api/meta/...

//go generate rm -rf cue.mod/gen/github.com/holos-run/holos/api/schema
//go:generate cue get go github.com/holos-run/holos/api/schema/...
//go generate rm -rf cue.mod/gen/github.com/holos-run/holos/api/author
//go:generate cue get go github.com/holos-run/holos/api/author/...

//go generate rm -rf cue.mod/gen/github.com/holos-run/holos/service/gen/holos/object
//go:generate cue import ../../../service/holos/object/v1alpha1/object.proto -o cue.mod/gen/github.com/holos-run/holos/service/gen/holos/object/v1alpha1/object.proto_gen.cue -I ../../../proto -f
Expand Down
1 change: 1 addition & 0 deletions internal/generate/platforms/guide/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
ehthumbs.db
Thumbs.db
vendor/
node_modules/
File renamed without changes.
14 changes: 7 additions & 7 deletions internal/generate/platforms/guide/schema.gen.cue
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
package holos

import schema "github.com/holos-run/holos/api/schema/v1alpha3"
import api "github.com/holos-run/holos/api/author/v1alpha3"

#Platform: schema.#Platform
#Fleets: schema.#StandardFleets
#Platform: api.#Platform
#Fleets: api.#StandardFleets

_ComponentConfig: {
Resources: #Resources
ArgoConfig: #ArgoConfig
}

#Helm: schema.#Helm & _ComponentConfig
#Kustomize: schema.#Kustomize & _ComponentConfig
#Kubernetes: schema.#Kubernetes & _ComponentConfig
#Helm: api.#Helm & _ComponentConfig
#Kustomize: api.#Kustomize & _ComponentConfig
#Kubernetes: api.#Kubernetes & _ComponentConfig

#ArgoConfig: schema.#ArgoConfig & {
#ArgoConfig: api.#ArgoConfig & {
ClusterName: _ClusterName
}
2 changes: 1 addition & 1 deletion version/embedded/patch
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1
2

0 comments on commit 6ad24a6

Please sign in to comment.