-
Notifications
You must be signed in to change notification settings - Fork 82
/
config.go
47 lines (41 loc) · 1.01 KB
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//go:build !nolegacy
// +build !nolegacy
// Legacy package, this has been moved to the config package
package regclient
import (
"github.com/regclient/regclient/config"
)
type (
// ConfigHost defines settings for connecting to a registry.
//
// Deprecated: replace with [config.Host].
ConfigHost = config.Host
// TLSConf specifies whether TLS is enabled and verified for a host.
//
// Deprecated: replace with [config.TLSConf].
TLSConf = config.TLSConf
)
var (
// ConfigHostNewName
//
// Deprecated: replace with [config.ConfigHostNewName].
ConfigHostNewName = config.HostNewName
)
const (
// TLSUndefined
//
// Deprecated: replace with [config.TLSUndefined].
TLSUndefined = config.TLSUndefined
// TLSEnabled
//
// Deprecated: replace with [config.TLSEnabled].
TLSEnabled = config.TLSEnabled
// TLSInsecure
//
// Deprecated: replace with [config.TLSInsecure].
TLSInsecure = config.TLSInsecure
// TLSDisabled
//
// Deprecated: replace with [config.TLSDisabled].
TLSDisabled = config.TLSDisabled
)