the-moby-effect
Version:
Moby/Docker API client built using effect-ts
68 lines • 2.09 kB
JavaScript
/**
* Id schemas.
*
* @since 1.0.0
*/
import * as Function from "effect/Function";
import * as Schema from "effect/Schema";
/**
* @since 1.0.0
* @category Id Schemas
*/
export const ConfigIdentifier = /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.brand("ConfigId"));
/**
* @since 1.0.0
* @category Id Schemas
*/
export const ContainerIdentifier = /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.brand("ContainerId"));
/**
* @since 1.0.0
* @category Id Schemas
*/
export const ExecIdentifier = /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.brand("ExecId"));
/**
* @since 1.0.0
* @category Id Schemas
*/
export const ImageIdentifier = /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.brand("ImageId"));
/**
* @since 1.0.0
* @category Id Schemas
*/
export const NetworkIdentifier = /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.brand("NetworkId"));
/**
* @since 1.0.0
* @category Id Schemas
*/
export const NodeIdentifier = /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.brand("NodeId"));
/**
* @since 1.0.0
* @category Id Schemas
*/
export const PluginIdentifier = /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.brand("PluginId"));
/**
* @since 1.0.0
* @category Id Schemas
*/
export const SecretIdentifier = /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.brand("SecretId"));
/**
* @since 1.0.0
* @category Id Schemas
*/
export const ServiceIdentifier = /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.brand("ServiceId"));
/**
* @since 1.0.0
* @category Id Schemas
*/
export const TaskIdentifier = /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.brand("TaskId"));
/**
* @since 1.0.0
* @category Id Schemas
*/
export const VolumeIdentifier = /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.brand("VolumeId"));
/**
* @since 1.0.0
* @category Id Schemas
*/
export const Digest = /*#__PURE__*/Function.pipe(Schema.String, /*#__PURE__*/Schema.check(/*#__PURE__*/Schema.isPattern(/^[a-z0-9]+(?:[@.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$/)), /*#__PURE__*/Schema.brand("Digest"));
//# sourceMappingURL=id.js.map