Skip to content

Commit afd73a0

Browse files
committed
feat(api): add oci config
1 parent 711e9a1 commit afd73a0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

api/api.go

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ type MetalConfig struct {
1313
NTPServers []string `json:"ntp_servers,omitempty"`
1414
Partition string `json:"partition"`
1515
// Logging contains logging configurations passed to metal-hammer
16-
Logging *Logging `json:"logging,omitempty"`
16+
Logging *Logging `json:"logging,omitempty"`
17+
OciConfig *OciConfig `json:"oci_config,omitempty"`
1718
}
1819

1920
type Logging struct {
@@ -45,6 +46,15 @@ type CertificateAuth struct {
4546
InsecureSkipVerify bool `json:"insecure_skip_verify,omitempty"`
4647
}
4748

49+
type OciConfig struct {
50+
// URL pointing to the oci registry
51+
RegistryURL string `json:"registry_url"`
52+
// Username that is capable of logging in to the registry
53+
Username string `json:"username,omitempty"`
54+
// Password for the user
55+
Password string `json:"password,omitempty"`
56+
}
57+
4858
// LogType defines which logging backend should be used
4959
type LogType string
5060

0 commit comments

Comments
 (0)