Documentation ¶
Index ¶
- Constants
- func New(engine *xorm.Engine) store.Interface
- type Certificate
- type Cluster
- type Credential
- type NodeGroup
- 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) NodeGroups(cluster string) store.NodeGroupStore
- 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 'clusterName'"` 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 'creationTimestamp'"` DateModified time.Time `xorm:"bigint updated 'dateModified'"` DeletionTimestamp *time.Time `xorm:"bigint null 'deletionTimestamp'"` }
func (Certificate) TableName ¶
func (Certificate) TableName() string
type Cluster ¶
type Cluster struct { Id int64 Kind string `xorm:"text not null 'kind'"` APIVersion string `xorm:"text not null 'apiVersion'"` Name string `xorm:"text not null 'name'"` UID string `xorm:"text not null 'uid'"` ResourceVersion string `xorm:"text not null 'resourceVersion'"` Generation int64 `xorm:"bigint not null 'generation'"` Labels string `xorm:"jsonb not null default '{}' 'labels'"` Data string `xorm:"text not null 'data'"` CreationTimestamp time.Time `xorm:"bigint created 'creationTimestamp'"` DateModified time.Time `xorm:"bigint updated 'dateModified'"` DeletionTimestamp *time.Time `xorm:"bigint null 'deletionTimestamp'"` }
type Credential ¶
type Credential struct { Id int64 Kind string `xorm:"text not null 'kind'"` APIVersion string `xorm:"text not null 'apiVersion'"` Name string `xorm:"text not null 'name'"` UID string `xorm:"text not null 'uid'"` ResourceVersion string `xorm:"text not null 'resourceVersion'"` Generation int64 `xorm:"bigint not null 'generation'"` Labels string `xorm:"jsonb not null default '{}' 'labels'"` Data string `xorm:"text not null 'data'"` CreationTimestamp time.Time `xorm:"bigint created 'creationTimestamp'"` DateModified time.Time `xorm:"bigint updated 'dateModified'"` DeletionTimestamp *time.Time `xorm:"bigint null 'deletionTimestamp'"` }
func (Credential) TableName ¶
func (Credential) TableName() string
type NodeGroup ¶
type NodeGroup struct { Id int64 Kind string `xorm:"text not null 'kind'"` APIVersion string `xorm:"text not null 'apiVersion'"` Name string `xorm:"text not null 'name'"` ClusterName string `xorm:"text not null 'clusterName'"` UID string `xorm:"text not null 'uid'"` ResourceVersion string `xorm:"text not null 'resourceVersion'"` Generation int64 `xorm:"bigint not null 'generation'"` Labels string `xorm:"jsonb not null default '{}' 'labels'"` Data string `xorm:"text not null 'data'"` CreationTimestamp time.Time `xorm:"bigint created 'creationTimestamp'"` DateModified time.Time `xorm:"bigint updated 'dateModified'"` DeletionTimestamp *time.Time `xorm:"bigint null 'deletionTimestamp'"` }
type SSHKey ¶
type SSHKey struct { Id int64 Name string `xorm:"text not null 'name'"` ClusterName string `xorm:"text not null 'clusterName'"` UID string `xorm:"text not null 'uid'"` PublicKey string `xorm:"string not null 'publicKey'"` PrivateKey string `xorm:"string not null 'privateKey'"` CreationTimestamp time.Time `xorm:"bigint created 'creationTimestamp'"` DateModified time.Time `xorm:"bigint updated 'dateModified'"` DeletionTimestamp *time.Time `xorm:"bigint null 'deletionTimestamp'"` }
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) NodeGroups ¶
func (s *XormStore) NodeGroups(cluster string) store.NodeGroupStore
Click to show internal directories.
Click to hide internal directories.