func (c *Client) HostEndpoints() HostEndpointInterface {
	return newHostEndpoints(c)
}
HostEndpoints returns an interface for managing host endpoint resources.
package client
import (
	"context"
	goerrors "errors"
	"fmt"
	"io/ioutil"
	"reflect"
	"github.com/kelseyhightower/envconfig"
	log "github.com/sirupsen/logrus"
	"github.com/projectcalico/go-yaml-wrapper"
	"github.com/projectcalico/libcalico-go/lib/apiconfig"
	api "github.com/projectcalico/libcalico-go/lib/apis/v1"
	"github.com/projectcalico/libcalico-go/lib/apis/v1/unversioned"
	"github.com/projectcalico/libcalico-go/lib/backend"
	bapi "github.com/projectcalico/libcalico-go/lib/backend/api"
	"github.com/projectcalico/libcalico-go/lib/backend/model"
	validator "github.com/projectcalico/libcalico-go/lib/validator/v1"
)
type Client struct {
	Backend bapi.Client
}
func New(config apiconfig.CalicoAPIConfig) (*Client, error) {
	var err error
	cc := Client{}
	if cc.Backend, err = backend.NewClient(config); err != nil {
		return nil, err
	}
	return &cc, err
}
func NewFromEnv() (*Client, error) {
	config, err := apiconfig.LoadClientConfigFromEnvironment()
	if err != nil {
		return nil, err
	}
	return New(*config)
}
func (c *Client) Nodes() NodeInterface {
	return newNodes(c)
}
func (c *Client) Policies() PolicyInterface {
	return newPolicies(c)
}
func (c *Client) IPPools() IPPoolInterface {
	return newIPPools(c)
}
func (c *Client) Profiles() ProfileInterface {
	return newProfiles(c)
}