Documentation ¶
Overview ¶
Package cloudmap contains code that connects to AWS Cloud Map and manages namespaces, services and instances (endpoints) inside it.
Index ¶
- type Handler
- func (h *Handler) CreateEndp(endp *sr.Endpoint) (*sr.Endpoint, error)
- func (h *Handler) CreateNs(ns *sr.Namespace) (*sr.Namespace, error)
- func (h *Handler) CreateServ(serv *sr.Service) (*sr.Service, error)
- func (h *Handler) DeleteEndp(nsName, servName, endpName string) error
- func (h *Handler) DeleteNs(name string) error
- func (h *Handler) DeleteServ(nsName, servName string) error
- func (h *Handler) ExtractData(ns *corev1.Namespace, serv *corev1.Service) (*sr.Namespace, *sr.Service, []*sr.Endpoint, error)
- func (h *Handler) GetEndp(nsName, servName, endpName string) (*sr.Endpoint, error)
- func (h *Handler) GetNs(name string) (*sr.Namespace, error)
- func (h *Handler) GetServ(nsName, servName string) (*sr.Service, error)
- func (h *Handler) ListEndp(nsName, servName string) (endpList []*sr.Endpoint, err error)
- func (h *Handler) ListNs() (nsList []*sr.Namespace, err error)
- func (h *Handler) ListServ(nsName string) (servList []*sr.Service, err error)
- func (h *Handler) UpdateEndp(endp *sr.Endpoint) (*sr.Endpoint, error)
- func (h *Handler) UpdateNs(ns *sr.Namespace) (*sr.Namespace, error)
- func (h *Handler) UpdateServ(serv *sr.Service) (*sr.Service, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { Client cloudMapClientIface // contains filtered or unexported fields }
Handler is in charge of handling all the operations that need to be performed in AWS Cloud Map.
func NewHandler ¶
NewHandler returns a new instance of the Handler.
func (*Handler) CreateEndp ¶
CreateEndp creates the endpoint.
func (*Handler) CreateServ ¶
CreateServ creates the service.
func (*Handler) DeleteEndp ¶
DeleteEndp deletes the endpoint.
func (*Handler) DeleteServ ¶
DeleteServ deletes the service.
func (*Handler) ExtractData ¶
func (*Handler) UpdateEndp ¶
UpdateEndp updates the endpoint.
Click to show internal directories.
Click to hide internal directories.