Documentation
¶
Index ¶
- type BootstrapCoreRepository
- type CookbookArtifactBundle
- type CookbookArtifactFileRecord
- type CookbookArtifactRecord
- type CookbookOrganizationRecord
- type CookbookRepository
- func (r *CookbookRepository) DecodeCookbookArtifact(bundle CookbookArtifactBundle) (bootstrap.CookbookArtifact, error)
- func (r *CookbookRepository) DecodeCookbookVersion(bundle CookbookVersionBundle) (bootstrap.CookbookVersion, error)
- func (r *CookbookRepository) EncodeCookbookArtifact(orgName string, artifact bootstrap.CookbookArtifact) (CookbookArtifactBundle, error)
- func (r *CookbookRepository) EncodeCookbookVersion(orgName string, version bootstrap.CookbookVersion) (CookbookVersionBundle, error)
- func (r *CookbookRepository) Migrations() []Migration
- func (r *CookbookRepository) OrganizationRecords() []CookbookOrganizationRecord
- type CookbookVersionBundle
- type CookbookVersionFileRecord
- type CookbookVersionRecord
- type CoreDataBagItemRecord
- type CoreObjectACLRecord
- type CoreObjectJSONRecord
- type CoreObjectRepository
- func (r *CoreObjectRepository) DecodeCoreObjects(rows CoreObjectRows) (bootstrap.CoreObjectState, error)
- func (r *CoreObjectRepository) EncodeCoreObjects(state bootstrap.CoreObjectState) (CoreObjectRows, error)
- func (r *CoreObjectRepository) LoadCoreObjects() (bootstrap.CoreObjectState, error)
- func (r *CoreObjectRepository) Migrations() []Migration
- func (r *CoreObjectRepository) SaveCoreObjects(state bootstrap.CoreObjectState) error
- type CoreObjectRows
- type CorePolicyRevisionRecord
- type CoreSandboxChecksumRecord
- type CoreSandboxRecord
- type Migration
- type Status
- type Store
- func (s *Store) ActivateCookbookPersistence(ctx context.Context) error
- func (s *Store) ActivateCookbookPersistenceWithDB(ctx context.Context, db *sql.DB) error
- func (s *Store) BootstrapCore() *BootstrapCoreRepository
- func (s *Store) BootstrapCorePersistenceActive() bool
- func (s *Store) Close() error
- func (s *Store) Configured() bool
- func (s *Store) CookbookPersistenceActive() bool
- func (s *Store) CookbookStore() bootstrap.CookbookStore
- func (s *Store) Cookbooks() *CookbookRepository
- func (s *Store) CoreObjectPersistenceActive() bool
- func (s *Store) CoreObjects() *CoreObjectRepository
- func (s *Store) Name() string
- func (s *Store) Status() Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BootstrapCoreRepository ¶
type BootstrapCoreRepository struct {
// contains filtered or unexported fields
}
func (*BootstrapCoreRepository) LoadBootstrapCore ¶
func (r *BootstrapCoreRepository) LoadBootstrapCore() (bootstrap.BootstrapCoreState, error)
func (*BootstrapCoreRepository) Migrations ¶
func (r *BootstrapCoreRepository) Migrations() []Migration
func (*BootstrapCoreRepository) SaveBootstrapCore ¶
func (r *BootstrapCoreRepository) SaveBootstrapCore(state bootstrap.BootstrapCoreState) error
type CookbookArtifactBundle ¶
type CookbookArtifactBundle struct {
Artifact CookbookArtifactRecord
Files []CookbookArtifactFileRecord
}
type CookbookArtifactRecord ¶
type CookbookRepository ¶
type CookbookRepository struct {
// contains filtered or unexported fields
}
func (*CookbookRepository) DecodeCookbookArtifact ¶
func (r *CookbookRepository) DecodeCookbookArtifact(bundle CookbookArtifactBundle) (bootstrap.CookbookArtifact, error)
func (*CookbookRepository) DecodeCookbookVersion ¶
func (r *CookbookRepository) DecodeCookbookVersion(bundle CookbookVersionBundle) (bootstrap.CookbookVersion, error)
func (*CookbookRepository) EncodeCookbookArtifact ¶
func (r *CookbookRepository) EncodeCookbookArtifact(orgName string, artifact bootstrap.CookbookArtifact) (CookbookArtifactBundle, error)
func (*CookbookRepository) EncodeCookbookVersion ¶
func (r *CookbookRepository) EncodeCookbookVersion(orgName string, version bootstrap.CookbookVersion) (CookbookVersionBundle, error)
func (*CookbookRepository) Migrations ¶
func (r *CookbookRepository) Migrations() []Migration
func (*CookbookRepository) OrganizationRecords ¶
func (r *CookbookRepository) OrganizationRecords() []CookbookOrganizationRecord
type CookbookVersionBundle ¶
type CookbookVersionBundle struct {
Version CookbookVersionRecord
Files []CookbookVersionFileRecord
}
type CookbookVersionRecord ¶
type CookbookVersionRecord struct {
Organization string
CookbookName string
Version string
FullName string
JSONClass string
ChefType string
Frozen bool
MetadataJSON []byte
}
func (CookbookVersionRecord) CookbookType ¶
func (r CookbookVersionRecord) CookbookType() string
type CoreDataBagItemRecord ¶
type CoreObjectACLRecord ¶
type CoreObjectJSONRecord ¶
type CoreObjectRepository ¶
type CoreObjectRepository struct {
// contains filtered or unexported fields
}
func (*CoreObjectRepository) DecodeCoreObjects ¶
func (r *CoreObjectRepository) DecodeCoreObjects(rows CoreObjectRows) (bootstrap.CoreObjectState, error)
func (*CoreObjectRepository) EncodeCoreObjects ¶
func (r *CoreObjectRepository) EncodeCoreObjects(state bootstrap.CoreObjectState) (CoreObjectRows, error)
func (*CoreObjectRepository) LoadCoreObjects ¶
func (r *CoreObjectRepository) LoadCoreObjects() (bootstrap.CoreObjectState, error)
func (*CoreObjectRepository) Migrations ¶
func (r *CoreObjectRepository) Migrations() []Migration
func (*CoreObjectRepository) SaveCoreObjects ¶
func (r *CoreObjectRepository) SaveCoreObjects(state bootstrap.CoreObjectState) error
type CoreObjectRows ¶
type CoreObjectRows struct {
Environments []CoreObjectJSONRecord
Nodes []CoreObjectJSONRecord
Roles []CoreObjectJSONRecord
DataBags []CoreObjectJSONRecord
DataBagItems []CoreDataBagItemRecord
PolicyRevisions []CorePolicyRevisionRecord
PolicyGroups []CoreObjectJSONRecord
Sandboxes []CoreSandboxRecord
SandboxChecksums []CoreSandboxChecksumRecord
ACLs []CoreObjectACLRecord
}
type CoreSandboxRecord ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) ActivateCookbookPersistence ¶
func (*Store) ActivateCookbookPersistenceWithDB ¶
func (*Store) BootstrapCore ¶
func (s *Store) BootstrapCore() *BootstrapCoreRepository
func (*Store) BootstrapCorePersistenceActive ¶
func (*Store) Configured ¶
func (*Store) CookbookPersistenceActive ¶
func (*Store) CookbookStore ¶
func (s *Store) CookbookStore() bootstrap.CookbookStore
func (*Store) Cookbooks ¶
func (s *Store) Cookbooks() *CookbookRepository
func (*Store) CoreObjectPersistenceActive ¶
func (*Store) CoreObjects ¶
func (s *Store) CoreObjects() *CoreObjectRepository
Source Files
¶
Click to show internal directories.
Click to hide internal directories.