blob: 0316276a6b66f7e85af31959c185cb0832bf7cf8 [file] [log] [blame]
Lorenz Brunc607bf62025-07-22 20:25:26 +02001// Copyright The Monogon Project Authors.
2// SPDX-License-Identifier: Apache-2.0
3
4package cni
5
6// Opt doesn't do anything as all configuration is ignored.
7type Opt func() error
8
9func noopOpt() error {
10 return nil
11}
12
13func WithConf(bytes []byte) Opt {
14 return noopOpt
15}
16
17func WithConfFile(fileName string) Opt {
18 return noopOpt
19}
20
21func WithConfIndex(bytes []byte, index int) Opt {
22 return noopOpt
23}
24
25func WithConfListBytes(bytes []byte) Opt {
26 return noopOpt
27}
28
29func WithConfListFile(fileName string) Opt {
30 return noopOpt
31}
32
33func WithInterfacePrefix(prefix string) Opt {
34 return noopOpt
35}
36
37func WithMinNetworkCount(count int) Opt {
38 return noopOpt
39}
40
41func WithPluginConfDir(dir string) Opt {
42 return noopOpt
43}
44
45func WithPluginDir(dirs []string) Opt {
46 return noopOpt
47}
48
49func WithPluginMaxConfNum(max int) Opt {
50 return noopOpt
51}
52
53func WithDefaultConf() error {
54 return nil
55}
56func WithLoNetwork() error {
57 return nil
58}