api

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	mindnspb.UnimplementedMindnsServiceServer
	// contains filtered or unexported fields
}

Server implements the MindnsService gRPC server.

func NewServer

func NewServer(mgr *zone.Manager, authStore *auth.Store) *Server

NewServer creates a new gRPC API server.

func (*Server) CreateAPIKey added in v0.6.0

CreateAPIKey creates a new API key.

func (*Server) CreateZone

func (s *Server) CreateZone(ctx context.Context, req *mindnspb.CreateZoneRequest) (*mindnspb.Zone, error)

CreateZone creates a new zone.

func (*Server) DeleteRRset

func (s *Server) DeleteRRset(ctx context.Context, req *mindnspb.DeleteRRsetRequest) (*emptypb.Empty, error)

DeleteRRset deletes an RRset.

func (*Server) DeleteZone

func (s *Server) DeleteZone(ctx context.Context, req *mindnspb.DeleteZoneRequest) (*emptypb.Empty, error)

DeleteZone deletes a zone.

func (*Server) GetAPIKey added in v0.6.0

GetAPIKey returns an API key by ID.

func (*Server) GetRRset

func (s *Server) GetRRset(ctx context.Context, req *mindnspb.GetRRsetRequest) (*mindnspb.RRset, error)

GetRRset returns an RRset.

func (*Server) GetZone

func (s *Server) GetZone(ctx context.Context, req *mindnspb.GetZoneRequest) (*mindnspb.Zone, error)

GetZone returns a zone by name.

func (*Server) ListAPIKeys added in v0.6.0

ListAPIKeys returns all API keys.

func (*Server) ListRRsets

ListRRsets lists RRsets in a zone.

func (*Server) ListZones

ListZones returns all zones.

func (*Server) RevokeAPIKey added in v0.6.0

func (s *Server) RevokeAPIKey(ctx context.Context, req *mindnspb.RevokeAPIKeyRequest) (*mindnspb.APIKeyInfo, error)

RevokeAPIKey revokes an API key (soft delete).

func (*Server) RotateAPIKey added in v0.6.0

RotateAPIKey generates a new token for an existing API key.

func (*Server) SetRRset

func (s *Server) SetRRset(ctx context.Context, req *mindnspb.SetRRsetRequest) (*mindnspb.RRset, error)

SetRRset creates or replaces an RRset.

func (*Server) UpdateAPIKey added in v0.6.0

func (s *Server) UpdateAPIKey(ctx context.Context, req *mindnspb.UpdateAPIKeyRequest) (*mindnspb.APIKeyInfo, error)

UpdateAPIKey updates an API key's metadata (not the token).

Jump to

Keyboard shortcuts

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