/* generated using openapi-typescript-codegen -- do no edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { Driver } from './Driver'; export type SecretSpec = { /** * User-defined name of the secret. */ Name?: string; /** * User-defined key/value metadata. */ Labels?: Record; /** * Data is the data to store as a secret, formatted as a Base64-url-safe-encoded * ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-5)) string. * It must be empty if the Driver field is set, in which case the data is * loaded from an external secret store. The maximum allowed size is 500KB, * as defined in [MaxSecretSize](https://pkg.go.dev/github.com/moby/swarmkit/v2@v2.0.0/api/validation#MaxSecretSize). * * This field is only used to _create_ a secret, and is not returned by * other endpoints. * */ Data?: string; /** * Name of the secrets driver used to fetch the secret's value from an * external secret store. * */ Driver?: Driver; /** * Templating driver, if applicable * * Templating controls whether and how to evaluate the config payload as * a template. If no driver is set, no templating is used. * */ Templating?: Driver; };