Documentation ¶
Index ¶
- Constants
- func New(engine *xorm.Engine) store.Interface
- type Certificate
- type Cluster
- type Credential
- type Machine
- type SSHKey
- type XormStore
- func (s *XormStore) Certificates(cluster string) store.CertificateStore
- func (s *XormStore) Clusters() store.ClusterStore
- func (s *XormStore) Credentials() store.CredentialStore
- func (s *XormStore) Machine(cluster string) store.MachineStore
- func (s *XormStore) MachineSet(cluster string) store.MachineSetStore
- func (s *XormStore) Operations() store.OperationStore
- func (s *XormStore) Owner(id int64) store.ResourceInterface
- func (s *XormStore) SSHKeys(cluster string) store.SSHKeyStore
Constants ¶
View Source
const (
UID = "xorm"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Certificate ¶
type Certificate struct { Id int64 Name string `xorm:"text not null 'name'"` ClusterName string `xorm:"text not null 'cluster_name'"` UID string `xorm:"text not null 'uid'"` Cert string `xorm:"text NOT NULL 'cert'"` Key string `xorm:"text NOT NULL 'key'"` CreationTimestamp time.Time `xorm:"bigint created 'created_unix'"` DateModified time.Time `xorm:"bigint updated 'updated_unix'"` DeletionTimestamp *time.Time `xorm:"bigint null 'deleted_unix'"` ClusterId int64 `xorm:"bigint not null 'cluster_id'"` }
func (Certificate) TableName ¶
func (Certificate) TableName() string
type Cluster ¶
type Cluster struct { Id int64 Name string `xorm:"text not null 'name'"` Data string `xorm:"text not null 'data'"` CreationTimestamp time.Time `xorm:"bigint created 'created_unix'"` DateModified time.Time `xorm:"bigint updated 'updated_unix'"` DeletionTimestamp *time.Time `xorm:"bigint null 'deleted_unix'"` OwnerId int64 `xorm:"bigint null 'owner_id'"` IsPrivate bool `xorm:"boolean 'is_private'"` }
type Credential ¶
type Credential struct { Id int64 Name string `xorm:"text not null 'name'"` UID string `xorm:"text not null 'uid'"` Data string `xorm:"text not null 'data'"` CreationTimestamp time.Time `xorm:"bigint created 'created_unix'"` DateModified time.Time `xorm:"bigint updated 'updated_unix'"` DeletionTimestamp *time.Time `xorm:"bigint null 'deleted_unix'"` OwnerId int64 `xorm:"bigint null 'owner_id'"` }
func (Credential) TableName ¶
func (Credential) TableName() string
type Machine ¶
type Machine struct { Id int64 Name string `xorm:"text not null 'name'"` Data string `xorm:"text not null 'data'"` CreationTimestamp time.Time `xorm:"bigint created 'created_unix'"` DateModified time.Time `xorm:"bigint updated 'updated_unix'"` DeletionTimestamp *time.Time `xorm:"bigint null 'deleted_unix'"` ClusterId int64 `xorm:"bigint not null 'cluster_id'"` }
type SSHKey ¶
type SSHKey struct { Id int64 Name string `xorm:"text not null 'name'"` ClusterName string `xorm:"text not null 'cluster_name'"` UID string `xorm:"text not null 'uid'"` PublicKey string `xorm:"string not null 'public_key'"` PrivateKey string `xorm:"string not null 'private_key'"` CreationTimestamp time.Time `xorm:"bigint created 'created_unix'"` DateModified time.Time `xorm:"bigint updated 'updated_unix'"` DeletionTimestamp *time.Time `xorm:"bigint null 'deleted_unix'"` ClusterId int64 `xorm:"bigint not null 'cluster_id'"` }
type XormStore ¶
type XormStore struct {
// contains filtered or unexported fields
}
func (*XormStore) Certificates ¶
func (s *XormStore) Certificates(cluster string) store.CertificateStore
func (*XormStore) Clusters ¶
func (s *XormStore) Clusters() store.ClusterStore
func (*XormStore) Credentials ¶
func (s *XormStore) Credentials() store.CredentialStore
func (*XormStore) MachineSet ¶
func (s *XormStore) MachineSet(cluster string) store.MachineSetStore
func (*XormStore) Operations ¶
func (s *XormStore) Operations() store.OperationStore
Click to show internal directories.
Click to hide internal directories.