dfaa12b800
* Provisioning: Jobs: Define repository name field * Provisioning: Jobs: Separate options per job type * Provisioning: Define a sanitised settings resource * Provisioning: Jobs: Define a job summary * Provisioning: Remove linting * Provisioning: Update docs for a few fields * Provisioning: Remove HelloWorld * Provisioning: Replace Repository with Message in job info * Provisioning: Remove YAML support * Provisioning: Remove custom folder specification * Provisioning: Support read-only repositories * Provisioning: Remove edit options * Provisioning: Add sync options for repositories * Provisioning: Add resource statistics * Provisioning: Make slices atomic lists * Provisioning: Message list needs to exist even if empty If we don't do this, we can't clear the messages field, leading to buggy UX. * Provisioning: Support incremental syncing * Provisioning: Remove the 'items' subresource workaround * Provisioning: Add resource list * Provisioning: Reformat * Provisioning: Declare new types * OpenAPI: Generate openapi JSON spec from generated code * Codegen: Generate OpenAPI spec * Provisioning: Support generating frontend API * Codegen: Generate Go code * Provisioning: Define the base API * Codegen: Generate frontend endpoints for provisioning * Refactor: yarn prettier:write * Provisioning: Tiger team takes ownership * Chore: Remove dir we haven't added yet * Provisioning: Remove frontend * Test: Update example repositories
32 lines
740 B
Go
32 lines
740 B
Go
package v0alpha1
|
|
|
|
import (
|
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
)
|
|
|
|
// Summary shows a view of the configuration that is sanitized and is OK for logged in users to see
|
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
|
type RepositoryViewList struct {
|
|
metav1.TypeMeta `json:",inline"`
|
|
|
|
// +mapType=atomic
|
|
Items []RepositoryView `json:"items"`
|
|
}
|
|
|
|
type RepositoryView struct {
|
|
// The k8s name for this repository
|
|
Name string `json:"name"`
|
|
|
|
// Repository display
|
|
Title string `json:"title"`
|
|
|
|
// Edit options within the repository
|
|
ReadOnly bool `json:"readOnly"`
|
|
|
|
// The repository type
|
|
Type RepositoryType `json:"type"`
|
|
|
|
// When syncing, where values are saved
|
|
Target SyncTargetType `json:"target"`
|
|
}
|