@@ -28,13 +28,6 @@ Created at: {{.CreatedAt}}
2828Updated at: {{.UpdatedAt}}`
2929)
3030
31- // NewFormat returns a Format for rendering using a secret Context
32- //
33- // Deprecated: this function was only used internally and will be removed in the next release.
34- func NewFormat (source string , quiet bool ) formatter.Format {
35- return newFormat (source , quiet )
36- }
37-
3831// newFormat returns a Format for rendering using a secretContext.
3932func newFormat (source string , quiet bool ) formatter.Format {
4033 switch source {
@@ -49,13 +42,6 @@ func newFormat(source string, quiet bool) formatter.Format {
4942 return formatter .Format (source )
5043}
5144
52- // FormatWrite writes the context
53- //
54- // Deprecated: this function was only used internally and will be removed in the next release.
55- func FormatWrite (fmtCtx formatter.Context , secrets []swarm.Secret ) error {
56- return formatWrite (fmtCtx , secrets )
57- }
58-
5945// formatWrite writes the context
6046func formatWrite (fmtCtx formatter.Context , secrets []swarm.Secret ) error {
6147 render := func (format func (subContext formatter.SubContext ) error ) error {
@@ -135,13 +121,6 @@ func (c *secretContext) Label(name string) string {
135121 return c .s .Spec .Annotations .Labels [name ]
136122}
137123
138- // InspectFormatWrite renders the context for a list of secrets
139- //
140- // Deprecated: this function was only used internally and will be removed in the next release.
141- func InspectFormatWrite (fmtCtx formatter.Context , refs []string , getRef inspect.GetRefFunc ) error {
142- return inspectFormatWrite (fmtCtx , refs , getRef )
143- }
144-
145124// inspectFormatWrite renders the context for a list of secrets.
146125func inspectFormatWrite (fmtCtx formatter.Context , refs []string , getRef inspect.GetRefFunc ) error {
147126 if fmtCtx .Format != secretInspectPrettyTemplate {
0 commit comments