zone

package
v0.0.0-...-4d64e5c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetLocationResponse

type GetLocationResponse struct {
	Name    string `json:"name"`
	Enabled bool   `json:"enabled"`
}

type GetRecordSetResponse

type GetRecordSetResponse struct {
	Value   types.RRSet `json:"value"`
	Enabled bool        `json:"enabled"`
}

type GetZoneResponse

type GetZoneResponse struct {
	Name            string          `json:"name"`
	Enabled         bool            `json:"enabled"`
	Dnssec          bool            `json:"dnssec"`
	CNameFlattening bool            `json:"cname_flattening"`
	SOA             types.SOA_RRSet `json:"soa"`
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(db storage, redis *hiredis.Redis) *Handler

func (*Handler) RegisterHandlers

func (h *Handler) RegisterHandlers(group *gin.RouterGroup)

type ListRequest

type ListRequest struct {
	Start int    `form:"start,default=0"`
	Count int    `form:"count,default=100"`
	Q     string `form:"q,default="`
}

type ListResponse

type ListResponse []ListResponseItem

type ListResponseItem

type ListResponseItem struct {
	Name string `json:"id"`
}

type NewLocationRequest

type NewLocationRequest struct {
	Name    string `json:"name" binding:"required"`
	Enabled bool   `json:"enabled,default:true"`
}

type NewRecordSetRequest

type NewRecordSetRequest struct {
	Type    string      `json:"type" binding:"required"`
	Value   types.RRSet `json:"value" binding:"required"`
	Enabled bool        `json:"enabled,default=true"`
}

func (*NewRecordSetRequest) UnmarshalJSON

func (r *NewRecordSetRequest) UnmarshalJSON(data []byte) error

type NewZoneRequest

type NewZoneRequest struct {
	Name            string          `json:"name" binding:"required"`
	Enabled         bool            `json:"enabled,default:true"`
	Dnssec          bool            `json:"dnssec,default:false"`
	CNameFlattening bool            `json:"cname_flattening,default:false"`
	SOA             types.SOA_RRSet `json:"soa"`
	NS              types.NS_RRSet  `json:"ns"`
}

type UpdateLocationRequest

type UpdateLocationRequest struct {
	Enabled bool `json:"enabled,default=true"`
}

type UpdateRecordSetRequest

type UpdateRecordSetRequest struct {
	Value   types.RRSet `json:"value" binding:"required"`
	Enabled bool        `json:"enabled,default=true"`
}

type UpdateZoneRequest

type UpdateZoneRequest struct {
	Enabled         bool            `json:"enabled,default:true"`
	Dnssec          bool            `json:"dnssec,default:false"`
	CNameFlattening bool            `json:"cname_flattening,default:false"`
	SOA             types.SOA_RRSet `json:"soa"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL