mirror of
https://github.com/openziti/zrok.git
synced 2025-06-23 19:22:19 +02:00
ziti_edge_sdk; config naming lint (#112)
This commit is contained in:
parent
0fe55e8213
commit
8e56117c51
@ -11,7 +11,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
func CreateConfig(cfgZId, envZId, svcToken string, authSchemeStr string, authUsers []*model.AuthUser, edge *rest_management_api_client.ZitiEdgeManagement) (cfgID string, err error) {
|
func CreateConfig(cfgTypeZId, envZId, svcToken string, authSchemeStr string, authUsers []*model.AuthUser, edge *rest_management_api_client.ZitiEdgeManagement) (cfgZId string, err error) {
|
||||||
authScheme, err := model.ParseAuthScheme(authSchemeStr)
|
authScheme, err := model.ParseAuthScheme(authSchemeStr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
@ -26,7 +26,7 @@ func CreateConfig(cfgZId, envZId, svcToken string, authSchemeStr string, authUse
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
cfgCrt := &rest_model.ConfigCreate{
|
cfgCrt := &rest_model.ConfigCreate{
|
||||||
ConfigTypeID: &cfgZId,
|
ConfigTypeID: &cfgTypeZId,
|
||||||
Data: cfg,
|
Data: cfg,
|
||||||
Name: &svcToken,
|
Name: &svcToken,
|
||||||
Tags: ZrokServiceTags(svcToken),
|
Tags: ZrokServiceTags(svcToken),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user