Documentation ¶
Index ¶
- func AddFlags(cmd *cobra.Command, cfg *config.Config)
- func NewDynamoDB(cfg *config.Config) (provider.Provider, error)
- type Domain
- type DomainList
- type DynamoConnection
- type DynamoDB
- func (d *DynamoDB) AllowHostPolicy(ctx context.Context, host string) error
- func (d *DynamoDB) Bootstrap(ctx context.Context) error
- func (d *DynamoDB) CreateDomain(ctx context.Context, domain *pb.Domain) (*pb.Domain, error)
- func (d *DynamoDB) Delete(ctx context.Context, key string) error
- func (d *DynamoDB) DeleteDomain(ctx context.Context, domain *pb.Domain) (bool, error)
- func (d *DynamoDB) Get(ctx context.Context, key string) ([]byte, error)
- func (d *DynamoDB) GetDomain(ctx context.Context, domain *pb.Domain) (*pb.Domain, error)
- func (d *DynamoDB) ListDomains(ctx context.Context) ([]*pb.Domain, error)
- func (d *DynamoDB) Name() string
- func (d *DynamoDB) Put(ctx context.Context, key string, data []byte) error
- func (d *DynamoDB) UpdateDomain(ctx context.Context, domain *pb.Domain) (*pb.Domain, error)
- type ExportDomains
- type PathList
- type PathMappingEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Domain ¶
type Domain struct { ID string `json:"id"` Name string `json:"domain"` PathMapping *PathList `json:"path"` Redirect string `json:"redirect"` Promotable bool `json:"promotable"` Wildcard bool `json:"wildcard"` Certificate string `json:"certificate"` RedirectCode int `json:"code"` Description string `json:"description"` Created string `json:"created"` Modified string `json:"modified"` }
Domain db entry
type DynamoConnection ¶
type DynamoConnection struct { Endpoint string Key string Secret string TableName string Region string }
DynamoConnection model
type DynamoDB ¶
type DynamoDB struct {
// contains filtered or unexported fields
}
DynamoDB model
func (*DynamoDB) AllowHostPolicy ¶
func (*DynamoDB) CreateDomain ¶
CreateDomain creates a domain in DynamoDB.
func (*DynamoDB) DeleteDomain ¶
func (*DynamoDB) ListDomains ¶
type ExportDomains ¶
type ExportDomains struct {
Domains []Domain `json:"domains"`
}
ExportDomains model
type PathMappingEntry ¶
PathMappingEntry model
Click to show internal directories.
Click to hide internal directories.