Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider(ctx context.Context, params ProviderParams) (*provider, error)
Types ¶
type Provider ¶
type Provider interface { // Returns a list of all fleets // (GET /fleet) GetFleet(c *gin.Context) // Create an fleet // (POST /fleet) PostFleet(c *gin.Context) // Delete fleet with fleet id // (DELETE /fleet/{id}) DeleteFleetId(c *gin.Context, id int) // Get fleet with specific id // (GET /fleet/{id}) GetFleetId(c *gin.Context, id int) // Returns a list of all paths // (GET /path) GetPath(c *gin.Context) // Create an path // (POST /path) PostPath(c *gin.Context) // Delete Path with path id // (DELETE /path/{id}) DeletePathId(c *gin.Context, id int) // Get account with specific id // (GET /path/{id}) GetPathId(c *gin.Context, id int) // Returns a list of all rules // (GET /rule) GetRule(c *gin.Context) // Create a rule // (POST /rule) PostRule(c *gin.Context) // Delete rule with specific id // (DELETE /rule/{id}) DeleteRuleId(c *gin.Context, id int) // Get rule with specific id // (GET /rule/{id}) GetRuleId(c *gin.Context, id int) // Returns a list of all tlsconfig // (GET /tlsconfig) GetTlsconfig(c *gin.Context) // Create an tlsconfig // (POST /tlsconfig) PostTlsconfig(c *gin.Context) // Delete tlsconfig with tlsconfig id // (DELETE /tlsconfig/{id}) DeleteTlsconfigId(c *gin.Context, id int) // Get tlsconfig with specific id // (GET /tlsconfig/{id}) GetTlsconfigId(c *gin.Context, id int) }
type ProviderParams ¶
type ProviderParams struct {
DatabaseUrl string
}
Click to show internal directories.
Click to hide internal directories.