{"modulePath":"github.com/hyperhq/hypercli","version":"v1.10.16","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package api\n\n## Constants\n\n```go\nconst (\n\t// Version of Current REST API\n\tDefaultVersion version.Version = \"1.23\"\n\n\t// MinVersion represents Minimum REST API version supported\n\tMinVersion version.Version = \"1.12\"\n\n\t// DefaultDockerfileName is the Default filename with Docker commands, read by docker build\n\tDefaultDockerfileName string = \"Dockerfile\"\n\n\t// NoBaseImageSpecifier is the symbol used by the FROM\n\t// command to specify that no base image is to be used.\n\tNoBaseImageSpecifier string = \"scratch\"\n)\n```\nCommon constants for daemon and client.\n\n## Functions\n\n```go\nfunc DisplayablePorts(ports []types.Port) string\n```\nDisplayablePorts returns formatted string representing open ports of container e.g. \"0.0.0.0:80-\u003e9090/tcp, 9988/tcp\" it's used by command 'docker ps'\n\n```go\nfunc LoadOrCreateTrustKey(trustKeyPath string) (libtrust.PrivateKey, error)\n```\nLoadOrCreateTrustKey attempts to load the libtrust key at the given path, otherwise generates a new one\n\n```go\nfunc MatchesContentType(contentType, expectedType string) bool\n```\nMatchesContentType validates the content type against the expected one\n\n","path":"github.com/hyperhq/hypercli/api","name":"api","synopsis":"","isRedistributable":true}
