// GetContainerInfo gets container info by container name or id
GetContainerInfo gets container info by container name or id
// GetContainerInfo gets container info by container name or id
func (c *Client) GetContainerInfo(container string) (*types.ContainerInfo, error) {
	ctx, cancel := getContextWithTimeout(hyperContextTimeout)
	defer cancel()
	req := types.ContainerInfoRequest{
		Container: container,
	}
	cinfo, err := c.client.ContainerInfo(ctx, &req)
	if err != nil {
		return nil, err
	}
	return cinfo.ContainerInfo, nil
}
func ( c * Client ) GetContainerInfo ( container string ) ( * types . ContainerInfo , error ) { ctx , cancel := getContextWithTimeout ( hyperContextTimeout ) defer cancel ( ) req := types . ContainerInfoRequest { Container : container , } cinfo , err := c . client . ContainerInfo ( ctx , & req ) if err != nil { return nil , err } return cinfo . ContainerInfo , nil }
GetContainerInfo gets container info by container name or id
GetContainerInfo gets container info by container name or id