fix: add involves edge from task to agent:nomos at creation
Plus sync vendor directory for Docker build compatibility.
This commit is contained in:
31
vendor/github.com/infisical/go-sdk/packages/api/auth/aws_iam_auth_login.go
generated
vendored
Normal file
31
vendor/github.com/infisical/go-sdk/packages/api/auth/aws_iam_auth_login.go
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"github.com/go-resty/resty/v2"
|
||||
"github.com/infisical/go-sdk/packages/errors"
|
||||
)
|
||||
|
||||
const callAWSIamAuthLoginOperation = "CallAWSIamAuthLogin"
|
||||
|
||||
func CallAWSIamAuthLogin(httpClient *resty.Client, request AwsIamAuthLoginRequest) (credential MachineIdentityAuthLoginResponse, e error) {
|
||||
var responseData MachineIdentityAuthLoginResponse
|
||||
|
||||
clonedClient := httpClient.Clone()
|
||||
clonedClient.SetAuthToken("")
|
||||
clonedClient.SetAuthScheme("")
|
||||
|
||||
response, err := clonedClient.R().
|
||||
SetResult(&responseData).
|
||||
SetBody(request).
|
||||
Post("/v1/auth/aws-auth/login")
|
||||
|
||||
if err != nil {
|
||||
return MachineIdentityAuthLoginResponse{}, errors.NewRequestError(callAWSIamAuthLoginOperation, err)
|
||||
}
|
||||
|
||||
if response.IsError() {
|
||||
return MachineIdentityAuthLoginResponse{}, errors.NewAPIErrorWithResponse(callAWSIamAuthLoginOperation, response)
|
||||
}
|
||||
|
||||
return responseData, nil
|
||||
}
|
||||
31
vendor/github.com/infisical/go-sdk/packages/api/auth/azure_auth_login.go
generated
vendored
Normal file
31
vendor/github.com/infisical/go-sdk/packages/api/auth/azure_auth_login.go
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"github.com/go-resty/resty/v2"
|
||||
"github.com/infisical/go-sdk/packages/errors"
|
||||
)
|
||||
|
||||
const azureAuthLoginOperation = "CallAzureAuthLogin"
|
||||
|
||||
func CallAzureAuthLogin(httpClient *resty.Client, request AzureAuthLoginRequest) (credential MachineIdentityAuthLoginResponse, e error) {
|
||||
var responseData MachineIdentityAuthLoginResponse
|
||||
|
||||
clonedClient := httpClient.Clone()
|
||||
clonedClient.SetAuthToken("")
|
||||
clonedClient.SetAuthScheme("")
|
||||
|
||||
response, err := clonedClient.R().
|
||||
SetResult(&responseData).
|
||||
SetBody(request).
|
||||
Post("/v1/auth/azure-auth/login")
|
||||
|
||||
if err != nil {
|
||||
return MachineIdentityAuthLoginResponse{}, errors.NewRequestError(azureAuthLoginOperation, err)
|
||||
}
|
||||
|
||||
if response.IsError() {
|
||||
return MachineIdentityAuthLoginResponse{}, errors.NewAPIErrorWithResponse(azureAuthLoginOperation, response)
|
||||
}
|
||||
|
||||
return responseData, nil
|
||||
}
|
||||
31
vendor/github.com/infisical/go-sdk/packages/api/auth/gcp_id_token_auth_login.go
generated
vendored
Normal file
31
vendor/github.com/infisical/go-sdk/packages/api/auth/gcp_id_token_auth_login.go
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"github.com/go-resty/resty/v2"
|
||||
"github.com/infisical/go-sdk/packages/errors"
|
||||
)
|
||||
|
||||
const callGCPAuthLoginOperation = "CallGCPAuthLogin"
|
||||
|
||||
func CallGCPAuthLogin(httpClient *resty.Client, request GCPAuthLoginRequest) (credential MachineIdentityAuthLoginResponse, e error) {
|
||||
var responseData MachineIdentityAuthLoginResponse
|
||||
|
||||
clonedClient := httpClient.Clone()
|
||||
clonedClient.SetAuthToken("")
|
||||
clonedClient.SetAuthScheme("")
|
||||
|
||||
response, err := clonedClient.R().
|
||||
SetResult(&responseData).
|
||||
SetBody(request).
|
||||
Post("/v1/auth/gcp-auth/login")
|
||||
|
||||
if err != nil {
|
||||
return MachineIdentityAuthLoginResponse{}, errors.NewRequestError(callGCPAuthLoginOperation, err)
|
||||
}
|
||||
|
||||
if response.IsError() {
|
||||
return MachineIdentityAuthLoginResponse{}, errors.NewAPIErrorWithResponse(callGCPAuthLoginOperation, response)
|
||||
}
|
||||
|
||||
return responseData, nil
|
||||
}
|
||||
31
vendor/github.com/infisical/go-sdk/packages/api/auth/jwt_auth_login.go
generated
vendored
Normal file
31
vendor/github.com/infisical/go-sdk/packages/api/auth/jwt_auth_login.go
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"github.com/go-resty/resty/v2"
|
||||
"github.com/infisical/go-sdk/packages/errors"
|
||||
)
|
||||
|
||||
const callJwtAuthLoginOperation = "CallJwtAuthLogin"
|
||||
|
||||
func CallJwtAuthLogin(httpClient *resty.Client, request JwtAuthLoginRequest) (credential MachineIdentityAuthLoginResponse, e error) {
|
||||
var responseData MachineIdentityAuthLoginResponse
|
||||
|
||||
clonedClient := httpClient.Clone()
|
||||
clonedClient.SetAuthToken("")
|
||||
clonedClient.SetAuthScheme("")
|
||||
|
||||
response, err := clonedClient.R().
|
||||
SetResult(&responseData).
|
||||
SetBody(request).
|
||||
Post("/v1/auth/jwt-auth/login")
|
||||
|
||||
if err != nil {
|
||||
return responseData, errors.NewRequestError(callJwtAuthLoginOperation, err)
|
||||
}
|
||||
|
||||
if response.IsError() {
|
||||
return responseData, errors.NewAPIErrorWithResponse(callJwtAuthLoginOperation, response)
|
||||
}
|
||||
|
||||
return responseData, nil
|
||||
}
|
||||
31
vendor/github.com/infisical/go-sdk/packages/api/auth/kubernetes_auth_login.go
generated
vendored
Normal file
31
vendor/github.com/infisical/go-sdk/packages/api/auth/kubernetes_auth_login.go
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"github.com/go-resty/resty/v2"
|
||||
"github.com/infisical/go-sdk/packages/errors"
|
||||
)
|
||||
|
||||
const callKubernetesAuthLoginOperation = "CallKubernetesAuthLogin"
|
||||
|
||||
func CallKubernetesAuthLogin(httpClient *resty.Client, request KubernetesAuthLoginRequest) (credential MachineIdentityAuthLoginResponse, e error) {
|
||||
var responseData MachineIdentityAuthLoginResponse
|
||||
|
||||
clonedClient := httpClient.Clone()
|
||||
clonedClient.SetAuthToken("")
|
||||
clonedClient.SetAuthScheme("")
|
||||
|
||||
response, err := clonedClient.R().
|
||||
SetResult(&responseData).
|
||||
SetBody(request).
|
||||
Post("/v1/auth/kubernetes-auth/login")
|
||||
|
||||
if err != nil {
|
||||
return MachineIdentityAuthLoginResponse{}, errors.NewRequestError(callKubernetesAuthLoginOperation, err)
|
||||
}
|
||||
|
||||
if response.IsError() {
|
||||
return MachineIdentityAuthLoginResponse{}, errors.NewAPIErrorWithResponse(callKubernetesAuthLoginOperation, response)
|
||||
}
|
||||
|
||||
return responseData, nil
|
||||
}
|
||||
31
vendor/github.com/infisical/go-sdk/packages/api/auth/ldap_auth_login.go
generated
vendored
Normal file
31
vendor/github.com/infisical/go-sdk/packages/api/auth/ldap_auth_login.go
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"github.com/go-resty/resty/v2"
|
||||
"github.com/infisical/go-sdk/packages/errors"
|
||||
)
|
||||
|
||||
const callLdapAuthLoginOperation = "CallLdapAuthLogin"
|
||||
|
||||
func CallLdapAuthLogin(httpClient *resty.Client, request LdapAuthLoginRequest) (credential MachineIdentityAuthLoginResponse, e error) {
|
||||
var responseData MachineIdentityAuthLoginResponse
|
||||
|
||||
clonedClient := httpClient.Clone()
|
||||
clonedClient.SetAuthToken("")
|
||||
clonedClient.SetAuthScheme("")
|
||||
|
||||
response, err := clonedClient.R().
|
||||
SetResult(&responseData).
|
||||
SetBody(request).
|
||||
Post("/v1/auth/ldap-auth/login")
|
||||
|
||||
if err != nil {
|
||||
return MachineIdentityAuthLoginResponse{}, errors.NewRequestError(callLdapAuthLoginOperation, err)
|
||||
}
|
||||
|
||||
if response.IsError() {
|
||||
return MachineIdentityAuthLoginResponse{}, errors.NewAPIErrorWithResponse(callLdapAuthLoginOperation, response)
|
||||
}
|
||||
|
||||
return responseData, nil
|
||||
}
|
||||
82
vendor/github.com/infisical/go-sdk/packages/api/auth/models.go
generated
vendored
Normal file
82
vendor/github.com/infisical/go-sdk/packages/api/auth/models.go
generated
vendored
Normal file
@@ -0,0 +1,82 @@
|
||||
package api
|
||||
|
||||
// JWT auth:
|
||||
type JwtAuthLoginRequest struct {
|
||||
IdentityID string `json:"identityId"`
|
||||
JWT string `json:"jwt"`
|
||||
OrganizationSlug string `json:"organizationSlug,omitempty"`
|
||||
}
|
||||
|
||||
// Revoke access token:
|
||||
type RevokeAccessTokenRequest struct {
|
||||
AccessToken string `json:"accessToken"`
|
||||
}
|
||||
|
||||
type RevokeAccessTokenResponse struct {
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
// Universal auth:
|
||||
type UniversalAuthLoginRequest struct {
|
||||
ClientID string `json:"clientId"`
|
||||
ClientSecret string `json:"clientSecret"`
|
||||
OrganizationSlug string `json:"organizationSlug,omitempty"`
|
||||
}
|
||||
|
||||
// Kubernetes auth:
|
||||
type KubernetesAuthLoginRequest struct {
|
||||
IdentityID string `json:"identityId"`
|
||||
JWT string `json:"jwt"`
|
||||
OrganizationSlug string `json:"organizationSlug,omitempty"`
|
||||
}
|
||||
|
||||
type AzureAuthLoginRequest struct {
|
||||
IdentityID string `json:"identityId"`
|
||||
JWT string `json:"jwt"`
|
||||
OrganizationSlug string `json:"organizationSlug,omitempty"`
|
||||
}
|
||||
|
||||
type AwsIamAuthLoginRequest struct {
|
||||
HTTPRequestMethod string `json:"iamHttpRequestMethod"`
|
||||
IamRequestBody string `json:"iamRequestBody"`
|
||||
IamRequestHeaders string `json:"iamRequestHeaders"`
|
||||
IdentityId string `json:"identityId"`
|
||||
OrganizationSlug string `json:"organizationSlug,omitempty"`
|
||||
}
|
||||
|
||||
type GCPAuthLoginRequest struct {
|
||||
IdentityID string `json:"identityId"`
|
||||
JWT string `json:"jwt"`
|
||||
OrganizationSlug string `json:"organizationSlug,omitempty"`
|
||||
}
|
||||
|
||||
type OidcAuthLoginRequest struct {
|
||||
IdentityID string `json:"identityId"`
|
||||
JWT string `json:"jwt"`
|
||||
OrganizationSlug string `json:"organizationSlug,omitempty"`
|
||||
}
|
||||
|
||||
type MachineIdentityAuthLoginResponse struct {
|
||||
AccessToken string `json:"accessToken"`
|
||||
ExpiresIn int64 `json:"expiresIn"`
|
||||
AccessTokenMaxTTL int64 `json:"accessTokenMaxTTL"`
|
||||
TokenType string `json:"tokenType"`
|
||||
}
|
||||
|
||||
type RenewAccessTokenRequest struct {
|
||||
AccessToken string `json:"accessToken"`
|
||||
}
|
||||
|
||||
type OciAuthLoginRequest struct {
|
||||
IdentityID string `json:"identityId"`
|
||||
UserOcid string `json:"userOcid"`
|
||||
Headers map[string]string `json:"headers"`
|
||||
OrganizationSlug string `json:"organizationSlug,omitempty"`
|
||||
}
|
||||
|
||||
type LdapAuthLoginRequest struct {
|
||||
IdentityID string `json:"identityId"`
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
OrganizationSlug string `json:"organizationSlug,omitempty"`
|
||||
}
|
||||
31
vendor/github.com/infisical/go-sdk/packages/api/auth/oci_auth_login.go
generated
vendored
Normal file
31
vendor/github.com/infisical/go-sdk/packages/api/auth/oci_auth_login.go
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"github.com/go-resty/resty/v2"
|
||||
"github.com/infisical/go-sdk/packages/errors"
|
||||
)
|
||||
|
||||
const callOciAuthLoginOperation = "CallOciAuthLogin"
|
||||
|
||||
func CallOciAuthLogin(httpClient *resty.Client, request OciAuthLoginRequest) (credential MachineIdentityAuthLoginResponse, e error) {
|
||||
var responseData MachineIdentityAuthLoginResponse
|
||||
|
||||
clonedClient := httpClient.Clone()
|
||||
clonedClient.SetAuthToken("")
|
||||
clonedClient.SetAuthScheme("")
|
||||
|
||||
response, err := clonedClient.R().
|
||||
SetResult(&responseData).
|
||||
SetBody(request).
|
||||
Post("/v1/auth/oci-auth/login")
|
||||
|
||||
if err != nil {
|
||||
return MachineIdentityAuthLoginResponse{}, errors.NewRequestError(callOciAuthLoginOperation, err)
|
||||
}
|
||||
|
||||
if response.IsError() {
|
||||
return MachineIdentityAuthLoginResponse{}, errors.NewAPIErrorWithResponse(callOciAuthLoginOperation, response)
|
||||
}
|
||||
|
||||
return responseData, nil
|
||||
}
|
||||
31
vendor/github.com/infisical/go-sdk/packages/api/auth/oidc_auth_login.go
generated
vendored
Normal file
31
vendor/github.com/infisical/go-sdk/packages/api/auth/oidc_auth_login.go
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"github.com/go-resty/resty/v2"
|
||||
"github.com/infisical/go-sdk/packages/errors"
|
||||
)
|
||||
|
||||
const callOidcAuthLoginOperation = "CallOidcAuthLogin"
|
||||
|
||||
func CallOidcAuthLogin(httpClient *resty.Client, request OidcAuthLoginRequest) (credential MachineIdentityAuthLoginResponse, e error) {
|
||||
var responseData MachineIdentityAuthLoginResponse
|
||||
|
||||
clonedClient := httpClient.Clone()
|
||||
clonedClient.SetAuthToken("")
|
||||
clonedClient.SetAuthScheme("")
|
||||
|
||||
response, err := clonedClient.R().
|
||||
SetResult(&responseData).
|
||||
SetBody(request).
|
||||
Post("/v1/auth/oidc-auth/login")
|
||||
|
||||
if err != nil {
|
||||
return MachineIdentityAuthLoginResponse{}, errors.NewRequestError(callOidcAuthLoginOperation, err)
|
||||
}
|
||||
|
||||
if response.IsError() {
|
||||
return MachineIdentityAuthLoginResponse{}, errors.NewAPIErrorWithResponse(callOidcAuthLoginOperation, response)
|
||||
}
|
||||
|
||||
return responseData, nil
|
||||
}
|
||||
31
vendor/github.com/infisical/go-sdk/packages/api/auth/renew_access_token.go
generated
vendored
Normal file
31
vendor/github.com/infisical/go-sdk/packages/api/auth/renew_access_token.go
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"github.com/go-resty/resty/v2"
|
||||
"github.com/infisical/go-sdk/packages/errors"
|
||||
)
|
||||
|
||||
const callRenewAccessToken = "CallRenewAccessToken"
|
||||
|
||||
func CallRenewAccessToken(httpClient *resty.Client, request RenewAccessTokenRequest) (credential MachineIdentityAuthLoginResponse, e error) {
|
||||
var responseData MachineIdentityAuthLoginResponse
|
||||
|
||||
clonedClient := httpClient.Clone()
|
||||
clonedClient.SetAuthToken("")
|
||||
clonedClient.SetAuthScheme("")
|
||||
|
||||
response, err := clonedClient.R().
|
||||
SetResult(&responseData).
|
||||
SetBody(request).
|
||||
Post("/v1/auth/token/renew")
|
||||
|
||||
if err != nil {
|
||||
return responseData, errors.NewRequestError(callRenewAccessToken, err)
|
||||
}
|
||||
|
||||
if response.IsError() {
|
||||
return responseData, errors.NewAPIErrorWithResponse(callRenewAccessToken, response)
|
||||
}
|
||||
|
||||
return responseData, nil
|
||||
}
|
||||
27
vendor/github.com/infisical/go-sdk/packages/api/auth/revoke_access_token.go
generated
vendored
Normal file
27
vendor/github.com/infisical/go-sdk/packages/api/auth/revoke_access_token.go
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"github.com/go-resty/resty/v2"
|
||||
"github.com/infisical/go-sdk/packages/errors"
|
||||
)
|
||||
|
||||
const callRevokeAccessTokenOperation = "CallRevokeAccessToken"
|
||||
|
||||
func CallRevokeAccessToken(httpClient *resty.Client, request RevokeAccessTokenRequest) (RevokeAccessTokenResponse, error) {
|
||||
var responseData RevokeAccessTokenResponse
|
||||
|
||||
response, err := httpClient.R().
|
||||
SetResult(&responseData).
|
||||
SetBody(request).
|
||||
Post("/v1/auth/token/revoke")
|
||||
|
||||
if err != nil {
|
||||
return responseData, errors.NewRequestError(callRevokeAccessTokenOperation, err)
|
||||
}
|
||||
|
||||
if response.IsError() {
|
||||
return responseData, errors.NewAPIErrorWithResponse(callRevokeAccessTokenOperation, response)
|
||||
}
|
||||
|
||||
return responseData, nil
|
||||
}
|
||||
31
vendor/github.com/infisical/go-sdk/packages/api/auth/universal_auth_login.go
generated
vendored
Normal file
31
vendor/github.com/infisical/go-sdk/packages/api/auth/universal_auth_login.go
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"github.com/go-resty/resty/v2"
|
||||
"github.com/infisical/go-sdk/packages/errors"
|
||||
)
|
||||
|
||||
const callUniversalAuthLoginOperation = "CallUniversalAuthLogin"
|
||||
|
||||
func CallUniversalAuthLogin(httpClient *resty.Client, request UniversalAuthLoginRequest) (credential MachineIdentityAuthLoginResponse, e error) {
|
||||
var responseData MachineIdentityAuthLoginResponse
|
||||
|
||||
clonedClient := httpClient.Clone()
|
||||
clonedClient.SetAuthToken("")
|
||||
clonedClient.SetAuthScheme("")
|
||||
|
||||
response, err := clonedClient.R().
|
||||
SetResult(&responseData).
|
||||
SetBody(request).
|
||||
Post("/v1/auth/universal-auth/login")
|
||||
|
||||
if err != nil {
|
||||
return responseData, errors.NewRequestError(callUniversalAuthLoginOperation, err)
|
||||
}
|
||||
|
||||
if response.IsError() {
|
||||
return responseData, errors.NewAPIErrorWithResponse(callUniversalAuthLoginOperation, response)
|
||||
}
|
||||
|
||||
return responseData, nil
|
||||
}
|
||||
Reference in New Issue
Block a user