Documentation ¶
Index ¶
- type Iterator
- type Wrapper
- func (s Wrapper) AppendUpdateLog(updateLog string) error
- func (s Wrapper) GetActivations(marbleType string) (uint, error)
- func (s Wrapper) GetCertificate(certType string) (*x509.Certificate, error)
- func (s Wrapper) GetInfrastructure(infraName string) (quote.InfrastructureProperties, error)
- func (s Wrapper) GetIterator(prefix string) (Iterator, error)
- func (s Wrapper) GetManifest() (manifest.Manifest, error)
- func (s Wrapper) GetManifestSignature() ([]byte, error)
- func (s Wrapper) GetMarble(marbleName string) (manifest.Marble, error)
- func (s Wrapper) GetPackage(pkgName string) (quote.PackageProperties, error)
- func (s Wrapper) GetPrivateKey(keyType string) (*ecdsa.PrivateKey, error)
- func (s Wrapper) GetRawManifest() ([]byte, error)
- func (s Wrapper) GetSecret(secretName string) (manifest.Secret, error)
- func (s Wrapper) GetSecretMap() (map[string]manifest.Secret, error)
- func (s Wrapper) GetState() (state.State, error)
- func (s Wrapper) GetTLS(tagName string) (manifest.TLStag, error)
- func (s Wrapper) GetUpdateLog() (string, error)
- func (s Wrapper) GetUser(userName string) (*user.User, error)
- func (s Wrapper) IncrementActivations(marbleType string) error
- func (s Wrapper) PutCertificate(certType string, cert *x509.Certificate) error
- func (s Wrapper) PutInfrastructure(infraName string, infra quote.InfrastructureProperties) error
- func (s Wrapper) PutManifestSignature(manifestSignature []byte) error
- func (s Wrapper) PutMarble(marbleName string, marble manifest.Marble) error
- func (s Wrapper) PutPackage(pkgName string, pkg quote.PackageProperties) error
- func (s Wrapper) PutPrivateKey(keyType string, privK *ecdsa.PrivateKey) error
- func (s Wrapper) PutRawManifest(manifest []byte) error
- func (s Wrapper) PutSecret(secretName string, secret manifest.Secret) error
- func (s Wrapper) PutState(currState state.State) error
- func (s Wrapper) PutTLS(tagName string, tag manifest.TLStag) error
- func (s Wrapper) PutUpdateLog(updateLog string) error
- func (s Wrapper) PutUser(newUser *user.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
Iterator is a wrapper for the Iterator interface.
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}
Wrapper wraps store functions to provide a more convenient interface, and provides a type-safe way to access the store.
func WrapTransaction ¶ added in v1.2.0
func WrapTransaction(ctx context.Context, txHandle transactionHandle, ) (wrapper Wrapper, rollback func(), commit func(context.Context) error, err error)
WrapTransaction initializes a transaction using the given handle, and returns a wrapper for the transaction, as well as rollback and commit functions.
func (Wrapper) AppendUpdateLog ¶
AppendUpdateLog appends new entries to the log and saves it to store.
func (Wrapper) GetActivations ¶
GetActivations returns activations for a given Marble from store.
func (Wrapper) GetCertificate ¶
func (s Wrapper) GetCertificate(certType string) (*x509.Certificate, error)
GetCertificate returns a certificate from store.
func (Wrapper) GetInfrastructure ¶
func (s Wrapper) GetInfrastructure(infraName string) (quote.InfrastructureProperties, error)
GetInfrastructure returns infrastructure information from store.
func (Wrapper) GetIterator ¶
GetIterator returns a wrapped iterator from store.
func (Wrapper) GetManifest ¶
GetManifest loads the manifest and marshalls it to manifest.Manifest.
func (Wrapper) GetManifestSignature ¶
GetManifestSignature returns the ecdsa signature of the original manifest from store.
func (Wrapper) GetPackage ¶
func (s Wrapper) GetPackage(pkgName string) (quote.PackageProperties, error)
GetPackage returns a Package from store.
func (Wrapper) GetPrivateKey ¶
func (s Wrapper) GetPrivateKey(keyType string) (*ecdsa.PrivateKey, error)
GetPrivateKey returns a private key from store.
func (Wrapper) GetRawManifest ¶
GetRawManifest returns the raw manifest from store.
func (Wrapper) GetSecretMap ¶
GetSecretMap returns a map of all secrets.
func (Wrapper) GetUpdateLog ¶
GetUpdateLog returns the update log from store.
func (Wrapper) IncrementActivations ¶
IncrementActivations is a wrapper for get/put activations to increment the value for one marble.
func (Wrapper) PutCertificate ¶
func (s Wrapper) PutCertificate(certType string, cert *x509.Certificate) error
PutCertificate saves a certificate to store.
func (Wrapper) PutInfrastructure ¶
func (s Wrapper) PutInfrastructure(infraName string, infra quote.InfrastructureProperties) error
PutInfrastructure saves infrastructure information to store.
func (Wrapper) PutManifestSignature ¶
PutManifestSignature saves the manifests signature to store.
func (Wrapper) PutPackage ¶
func (s Wrapper) PutPackage(pkgName string, pkg quote.PackageProperties) error
PutPackage saves a Package to store.
func (Wrapper) PutPrivateKey ¶
func (s Wrapper) PutPrivateKey(keyType string, privK *ecdsa.PrivateKey) error
PutPrivateKey saves a private key to store.
func (Wrapper) PutRawManifest ¶
PutRawManifest saves the raw manifest to store.
func (Wrapper) PutUpdateLog ¶
PutUpdateLog saves the update log to store.