Documentation
¶
Index ¶
- func AddCert(cert *Cert) bool
- func AddSite(site *Site) bool
- func DeleteCert(cert *Cert) bool
- func DeleteSite(site *Site) bool
- func InitAdapter()
- func InitConfig()
- func InitSiteMap()
- func UpdateCert(id string, cert *Cert) bool
- func UpdateSite(id string, site *Site) bool
- func UpdateSiteNoRefresh(id string, site *Site) bool
- type Adapter
- type Cert
- type Site
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteCert ¶
func DeleteSite ¶
func InitAdapter ¶
func InitAdapter()
func InitConfig ¶
func InitConfig()
func InitSiteMap ¶
func InitSiteMap()
func UpdateCert ¶
func UpdateSite ¶
func UpdateSiteNoRefresh ¶
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter represents the MySQL adapter for policy storage.
func NewAdapter ¶
NewAdapter is the constructor for Adapter.
type Cert ¶
type Cert struct { Owner string `xorm:"varchar(100) notnull pk" json:"owner"` Name string `xorm:"varchar(100) notnull pk" json:"name"` CreatedTime string `xorm:"varchar(100)" json:"createdTime"` DisplayName string `xorm:"varchar(100)" json:"displayName"` Type string `xorm:"varchar(100)" json:"type"` CryptoAlgorithm string `xorm:"varchar(100)" json:"cryptoAlgorithm"` ExpireTime string `xorm:"varchar(100)" json:"expireTime"` Certificate string `xorm:"mediumtext" json:"certificate"` PrivateKey string `xorm:"mediumtext" json:"privateKey"` }
func GetGlobalCerts ¶
func GetGlobalCerts() []*Cert
type Site ¶
type Site struct { Owner string `xorm:"varchar(100) notnull pk" json:"owner"` Name string `xorm:"varchar(100) notnull pk" json:"name"` CreatedTime string `xorm:"varchar(100)" json:"createdTime"` DisplayName string `xorm:"varchar(100)" json:"displayName"` Domain string `xorm:"varchar(100)" json:"domain"` Host string `xorm:"varchar(100)" json:"host"` SslMode string `xorm:"varchar(100)" json:"sslMode"` SslCert string `xorm:"varchar(100)" json:"sslCert"` PublicIp string `xorm:"varchar(100)" json:"publicIp"` Node string `xorm:"varchar(100)" json:"node"` IsSelf bool `json:"isSelf"` CasdoorApplication string `xorm:"varchar(100)" json:"casdoorApplication"` SslCertObj *Cert `xorm:"-" json:"sslCertObj"` ApplicationObj *casdoorsdk.Application `xorm:"-" json:"applicationObj"` }
func GetGlobalSites ¶
func GetGlobalSites() []*Site
func GetMaskedSite ¶
func GetMaskedSites ¶
func GetSiteByDomain ¶
Click to show internal directories.
Click to hide internal directories.