Documentation ¶
Index ¶
- Constants
- func NewOperation(sess postsql.Factory, cipher Cipher) *operations
- func NewOrchestrations(sess postsql.Factory) *orchestrations
- func NewRuntimeStates(sess postsql.Factory, cipher Cipher) *runtimeState
- type Cipher
- type Instance
- func (s *Instance) Delete(instanceID string) error
- func (s *Instance) FindAllInstancesForRuntimes(runtimeIdList []string) ([]internal.Instance, error)
- func (s *Instance) FindAllInstancesForSubAccounts(subAccountslist []string) ([]internal.Instance, error)
- func (s *Instance) FindAllJoinedWithOperations(prct ...predicate.Predicate) ([]internal.InstanceWithOperation, error)
- func (s *Instance) GetByID(instanceID string) (*internal.Instance, error)
- func (s *Instance) GetERSContextStats() (internal.ERSContextStats, error)
- func (s *Instance) GetInstanceStats() (internal.InstanceStats, error)
- func (s *Instance) GetNumberOfInstancesForGlobalAccountID(globalAccountID string) (int, error)
- func (s *Instance) Insert(instance internal.Instance) error
- func (s *Instance) InsertWithoutEncryption(instance internal.Instance) error
- func (s *Instance) List(filter dbmodel.InstanceFilter) ([]internal.Instance, int, int, error)
- func (s *Instance) ListWithoutDecryption(filter dbmodel.InstanceFilter) ([]internal.Instance, int, int, error)
- func (s *Instance) Update(instance internal.Instance) (*internal.Instance, error)
- func (s *Instance) UpdateWithoutEncryption(instance internal.Instance) (*internal.Instance, error)
Constants ¶
View Source
const ( Retrying = "retrying" // to signal a retry sign before marking it to pending Succeeded = "succeeded" Failed = "failed" InProgress = "in progress" )
Variables ¶
This section is empty.
Functions ¶
func NewOperation ¶
func NewOrchestrations ¶
func NewRuntimeStates ¶
Types ¶
type Cipher ¶
type Cipher interface { Encrypt(text []byte) ([]byte, error) Decrypt(text []byte) ([]byte, error) // methods used to encrypt/decrypt SM credentials EncryptSMCreds(pp *internal.ProvisioningParameters) error DecryptSMCreds(pp *internal.ProvisioningParameters) error // methods used to encrypt/decrypt kubeconfig EncryptKubeconfig(pp *internal.ProvisioningParameters) error DecryptKubeconfig(pp *internal.ProvisioningParameters) error }
type Instance ¶
func NewInstance ¶
func (*Instance) FindAllInstancesForRuntimes ¶
func (*Instance) FindAllInstancesForSubAccounts ¶
func (*Instance) FindAllJoinedWithOperations ¶
func (*Instance) GetERSContextStats ¶
func (s *Instance) GetERSContextStats() (internal.ERSContextStats, error)
func (*Instance) GetInstanceStats ¶
func (s *Instance) GetInstanceStats() (internal.InstanceStats, error)
func (*Instance) GetNumberOfInstancesForGlobalAccountID ¶
func (*Instance) InsertWithoutEncryption ¶
func (*Instance) ListWithoutDecryption ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.