code: func EndpointFromContext(metadata store.Metadata) (EndpointMeta, error) {
  	ep, ok := metadata.Endpoints[DockerEndpoint]
  	if !ok {
  		return EndpointMeta{}, errors.New("cannot find docker endpoint in context")
  	}
  	typed, ok := ep.(EndpointMeta)
  	if !ok {
  		return EndpointMeta{}, errors.Errorf("endpoint %q is not of type EndpointMeta", DockerEndpoint)
  	}
  	return typed, nil
  }
docs: // EndpointFromContext parses a context docker endpoint metadata into a typed EndpointMeta structure