Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NetworkZone ¶
type NetworkZone interface {
// Info.
ID() int64
Project() string
Info() *api.NetworkZone
Etag() []any
UsedBy() ([]string, error)
Content() (*strings.Builder, error)
SOA() (*strings.Builder, error)
// Records.
AddRecord(req api.NetworkZoneRecordsPost) error
GetRecords() ([]api.NetworkZoneRecord, error)
GetRecord(name string) (*api.NetworkZoneRecord, error)
UpdateRecord(name string, req api.NetworkZoneRecordPut, clientType request.ClientType) error
DeleteRecord(name string) error
// Modifications.
Update(config *api.NetworkZonePut, clientType request.ClientType) error
Delete() error
// contains filtered or unexported methods
}
NetworkZone represents a Network zone.
func LoadByName ¶
func LoadByName(s *state.State, name string) (NetworkZone, error)
LoadByName loads and initialises a Network zone from the database by name.
func LoadByNameAndProject ¶
LoadByNameAndProject loads and initialises a Network zone from the database by project and name.
Click to show internal directories.
Click to hide internal directories.