mirror of
				https://github.com/traefik/traefik.git
				synced 2025-10-31 08:21:27 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			478 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			478 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package acme
 | |
| 
 | |
| // StoredData represents the data managed by Store.
 | |
| type StoredData struct {
 | |
| 	Account      *Account
 | |
| 	Certificates []*CertAndStore
 | |
| }
 | |
| 
 | |
| // Store is a generic interface that represents a storage.
 | |
| type Store interface {
 | |
| 	GetAccount(resolverName string) (*Account, error)
 | |
| 	SaveAccount(resolverName string, account *Account) error
 | |
| 	GetCertificates(resolverName string) ([]*CertAndStore, error)
 | |
| 	SaveCertificates(resolverName string, certificates []*CertAndStore) error
 | |
| }
 |