Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Certificate ¶
type Certificate struct { ID string `json:"id"` Name string `json:"name"` Domains []string `json:"domains"` Cluster string `json:"cluster"` NotBefore time.Time `gorm:"type:timestamp;NOT NULL;DEFAULT:CURRENT_TIMESTAMP;column:not_before;comment:生效时间"` NotAfter time.Time `gorm:"type:timestamp;NOT NULL;DEFAULT:CURRENT_TIMESTAMP;column:not_after;comment:失效时间"` Updater string `json:"updater"` UpdateTime time.Time `json:"update_time"` }
type ICertificateService ¶
type ICertificateService interface { Get(ctx context.Context, id string) (*Certificate, *File, error) List(ctx context.Context, clusterId string) ([]*Certificate, error) Save(ctx context.Context, id, clusterId string, key, cert []byte) (*Certificate, error) Delete(ctx context.Context, id string) error }
Click to show internal directories.
Click to hide internal directories.