api

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 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

func (s *Server) CreateAPIKey(ctx context.Context, req *mindnspb.CreateAPIKeyRequest) (*mindnspb.CreateAPIKeyResponse, error)

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

func (s *Server) GetAPIKey(ctx context.Context, req *mindnspb.GetAPIKeyRequest) (*mindnspb.APIKeyInfo, error)

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

func (s *Server) ListAPIKeys(ctx context.Context, req *mindnspb.ListAPIKeysRequest) (*mindnspb.ListAPIKeysResponse, error)

ListAPIKeys returns all API keys.

func (*Server) ListRRsets

func (s *Server) ListRRsets(ctx context.Context, req *mindnspb.ListRRsetsRequest) (*mindnspb.ListRRsetsResponse, error)

ListRRsets lists RRsets in a zone.

func (*Server) ListZones

func (s *Server) ListZones(ctx context.Context, req *mindnspb.ListZonesRequest) (*mindnspb.ListZonesResponse, error)

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

func (s *Server) RotateAPIKey(ctx context.Context, req *mindnspb.RotateAPIKeyRequest) (*mindnspb.RotateAPIKeyResponse, error)

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