Files
shadowdaoandClaude Sonnet 5.5 962d708fdd Rename Go module paths to repo.anhonesthost.net/CyberCoveLLC/threshold
Rename root, api and sdk module paths (imports, go.mod, go_package,
ldflags, build scripts, buf configs) and regenerate protobuf/gateway
code with the project's pinned toolchain. Wire identifiers unchanged.
api gets a local replace for sdk; root/api/sdk require v0.1.0.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 10:33:41 -07:00

49 lines
1.5 KiB
Go

// Copyright IBM Corp. 2020, 2026
// SPDX-License-Identifier: BUSL-1.1
// Package boundary provides methods for commonly used boundary actions that are used in end-to-end tests.
package boundary
import (
"repo.anhonesthost.net/CyberCoveLLC/threshold/api/authmethods"
"repo.anhonesthost.net/CyberCoveLLC/threshold/api/targets"
)
// ConnectCliOutput parses the json response from running `boundary connect`
type ConnectCliOutput struct {
Port int `json:"port"`
Address string `json:"address"`
Credentials []*targets.SessionCredential `json:"credentials"`
}
// AuthenticateCliOutput parses the json response from running `boundary authenticate`
type AuthenticateCliOutput struct {
Item *authmethods.AuthenticateResult
StatusCode int `json:"status_code"`
}
// AuthMethodInfo parses auth method info in the json response from running `boundary database init`
type AuthMethodInfo struct {
AuthMethodId string `json:"auth_method_id"`
LoginName string `json:"login_name"`
Password string `json:"password"`
}
// DbInitInfo parses the json response from running `boundary database init`
type DbInitInfo struct {
AuthMethod AuthMethodInfo `json:"auth_method"`
}
// CliError parses the Stderr from running a boundary command
type CliError struct {
Status int `json:"status_code"`
}
type HttpResponseBody struct {
Attributes HttpResponseBodyAttributes `json:"attributes"`
}
type HttpResponseBodyAttributes struct {
Token string `json:"token"`
}