no-op.go 465 Bytes
Newer Older
songlinfeng's avatar
songlinfeng committed
1
2
3
4
5
6
7
/**
# Copyright (c) 2024, HCUOpt CORPORATION.  All rights reserved.
**/

package noop

import (
8
	"dcu-container-toolkit/pkg/c3000cdi/transform"
songlinfeng's avatar
songlinfeng committed
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

	"tags.cncf.io/container-device-interface/specs-go"
)

type noop struct{}

var _ transform.Transformer = (*noop)(nil)

// New returns a no-op transformer.
func New() transform.Transformer {
	return noop{}
}

// Transform is a no-op for a noop transformer.
func (n noop) Transform(spec *specs.Spec) error {
	return nil
}