Documentation ¶
Overview ¶
Package kubepkg GENERATED BY gengo:enum DON'T EDIT THIS FILE
Package kubepkg GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Package kubepkg GENERATED BY gengo:table DON'T EDIT THIS FILE
Index ¶
- Constants
- Variables
- type Channel
- func (Channel) EnumValues() []any
- func (v Channel) Label() string
- func (v Channel) MarshalText() ([]byte, error)
- func (Channel) RuntimeDoc(names ...string) ([]string, bool)
- func (v *Channel) Scan(src any) error
- func (v Channel) String() string
- func (v *Channel) UnmarshalText(data []byte) error
- func (v Channel) Value() (database_sql_driver.Value, error)
- type ID
- type Kubepkg
- type KubepkgQueryParams
- type Ref
- type Revision
- type RevisionID
- type Version
- type VersionInfo
Constants ¶
const ( AnnotationName = specutil.AnnotationName AnnotationChannel = specutil.AnnotationChannel AnnotationRevision = specutil.AnnotationRevision AnnotationDeploymentID = specutil.AnnotationDeploymentID AnnotationDeploymentSettingID = specutil.AnnotationDeploymentSettingID AnnotationOverwrites = specutil.AnnotationOverwrites )
Variables ¶
var InvalidChannel = github_com_pkg_errors.New("invalid Channel")
var KubepkgT = &tableKubepkg{ ID: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[ID](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Kubepkg{}).F("ID")), Group: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[string](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Kubepkg{}).F("Group")), Name: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[string](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Kubepkg{}).F("Name")), CreatedAt: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Kubepkg{}).F("CreatedAt")), UpdatedAt: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Kubepkg{}).F("UpdatedAt")), DeletedAt: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Kubepkg{}).F("DeletedAt")), I: indexNameOfKubepkg{ Primary: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Kubepkg{}).Cols([]string{ "ID", "DeletedAt", }...), IName: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Kubepkg{}).Cols([]string{ "Group", "Name", }...), }, table: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Kubepkg{}), }
var RevisionT = &tableRevision{ ID: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[RevisionID](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Revision{}).F("ID")), KubepkgID: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[ID](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Revision{}).F("KubepkgID")), Digest: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[string](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Revision{}).F("Digest")), Spec: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[[]uint8](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Revision{}).F("Spec")), CreatedAt: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Revision{}).F("CreatedAt")), I: indexNameOfRevision{ Primary: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Revision{}).Cols([]string{ "ID", }...), IDigest: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Revision{}).Cols([]string{ "KubepkgID", "Digest", }...), }, table: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Revision{}), }
var T = &sqlbuilder.Tables{}
var VersionT = &tableVersion{ ID: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.SFID](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Version{}).F("ID")), KubepkgID: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[ID](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Version{}).F("KubepkgID")), Version: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[string](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Version{}).F("Version")), Major: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[int](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Version{}).F("Major")), Minor: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[int](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Version{}).F("Minor")), Patch: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[int](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Version{}).F("Patch")), Channel: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[Channel](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Version{}).F("Channel")), RevisionID: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[RevisionID](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Version{}).F("RevisionID")), CreatedAt: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Version{}).F("CreatedAt")), I: indexNameOfVersion{ Primary: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Version{}).Cols([]string{ "ID", }...), IVersion: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Version{}).Cols([]string{ "KubepkgID", "Channel", "Version", }...), }, table: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Version{}), }
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel uint8
+gengo:enum
func ParseChannelFromString ¶
func ParseChannelLabelString ¶
func (Channel) EnumValues ¶
func (Channel) MarshalText ¶
func (*Channel) UnmarshalText ¶
type Kubepkg ¶
type Kubepkg struct { // Kubepkg ID ID ID `db:"f_kubepkg_id" json:"kubepkgID"` // Kubepkg Group Group string `db:"f_group" json:"group"` // Kubepkg 名称 Name string `db:"f_name" json:"name"` datatypes.CreationUpdationDeletionTime }
+gengo:table:register=T +gengo:table:group=kubepkg @def primary ID DeletedAt @def unique_index i_name Group Name @def index i_created_at CreatedAt @def index i_updated_at UpdatedAt
func (Kubepkg) Indexes ¶
func (Kubepkg) Indexes() github_com_octohelm_storage_pkg_sqlbuilder.Indexes
func (Kubepkg) UniqueIndexes ¶
func (Kubepkg) UniqueIndexes() github_com_octohelm_storage_pkg_sqlbuilder.Indexes
type KubepkgQueryParams ¶
type KubepkgQueryParams struct { Names []string `name:"name,omitempty" in:"query"` datatypes.Pager }
func (KubepkgQueryParams) RuntimeDoc ¶
func (v KubepkgQueryParams) RuntimeDoc(names ...string) ([]string, bool)
type Ref ¶
type Ref struct { KubepkgID ID KubepkgRevisionID RevisionID SettingID uint64 Overwrites map[string]any DefaultsOverwrites map[string]any }
func (Ref) WithSettingID ¶
type Revision ¶
type Revision struct { // Kubepkg Revision ID ID RevisionID `db:"f_revision_id" json:"0"` KubepkgID ID `db:"f_kubepkg_id" json:"-"` // hash of spec Digest string `db:"f_digest" json:"-"` // spec Spec []byte `db:"f_spec" json:"-"` datatypes.CreationTime }
+gengo:table:register=T +gengo:table:group=kubepkg @def primary ID @def unique_index i_digest KubepkgID Digest @def index i_created_at CreatedAt
func (Revision) Indexes ¶
func (Revision) Indexes() github_com_octohelm_storage_pkg_sqlbuilder.Indexes
func (Revision) UniqueIndexes ¶
func (Revision) UniqueIndexes() github_com_octohelm_storage_pkg_sqlbuilder.Indexes
type RevisionID ¶
type RevisionID uint64
func (RevisionID) MarshalText ¶
func (id RevisionID) MarshalText() (text []byte, err error)
func (RevisionID) RuntimeDoc ¶
func (RevisionID) RuntimeDoc(names ...string) ([]string, bool)
func (RevisionID) String ¶
func (id RevisionID) String() string
func (*RevisionID) UnmarshalText ¶
func (id *RevisionID) UnmarshalText(text []byte) error
type Version ¶
type Version struct { ID datatypes.SFID `db:"f_id" json:"-"` KubepkgID ID `db:"f_kubepkg_id" json:"kubepkgID"` // 版本号 Version string `db:"f_version" json:"version"` Major int `db:"major,default=0" json:"-"` Minor int `db:"minor,default=0" json:"-"` Patch int `db:"patch,default=0" json:"-"` // 版本分支 Channel Channel `db:"f_channel,default=1" json:"channel"` RevisionID RevisionID `db:"f_kubepkg_revision_id" json:"revisionID"` datatypes.CreationTime }
+gengo:table:register=T +gengo:table:group=kubepkg @def primary ID @def unique_index i_version KubepkgID Channel Version @def index i_semver Major Minor Patch @def index i_created_at CreatedAt
func (Version) Indexes ¶
func (Version) Indexes() github_com_octohelm_storage_pkg_sqlbuilder.Indexes
func (Version) UniqueIndexes ¶
func (Version) UniqueIndexes() github_com_octohelm_storage_pkg_sqlbuilder.Indexes
type VersionInfo ¶
type VersionInfo struct { RevisionID RevisionID `json:"revisionID"` Version string `json:"version"` }
func (VersionInfo) RuntimeDoc ¶
func (v VersionInfo) RuntimeDoc(names ...string) ([]string, bool)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package repository GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
|
Package repository GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE |