mirror of
https://github.com/openziti/zrok.git
synced 2024-11-22 16:13:47 +01:00
ziti_edge_sdk; config naming lint (#112)
This commit is contained in:
parent
0fe55e8213
commit
8e56117c51
@ -11,7 +11,7 @@ import (
|
||||
"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)
|
||||
if err != nil {
|
||||
return "", err
|
||||
@ -26,7 +26,7 @@ func CreateConfig(cfgZId, envZId, svcToken string, authSchemeStr string, authUse
|
||||
}
|
||||
}
|
||||
cfgCrt := &rest_model.ConfigCreate{
|
||||
ConfigTypeID: &cfgZId,
|
||||
ConfigTypeID: &cfgTypeZId,
|
||||
Data: cfg,
|
||||
Name: &svcToken,
|
||||
Tags: ZrokServiceTags(svcToken),
|
||||
|
Loading…
Reference in New Issue
Block a user