Skip to content

Commit 5dd8014

Browse files
rename agent environment to deployment (#1532)
* rename agent environment to deployment * missing files * Create purple-needles-juggle.md * generated protobuf --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent e08368b commit 5dd8014

12 files changed

Lines changed: 160 additions & 145 deletions
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@livekit/protocol": patch
3+
---
4+
5+
rename agent environment to deployment

agent/environment.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@ package agent
22

33
import "fmt"
44

5-
const MaxEnvironmentLength = 64
5+
const MaxDeploymentLength = 64
66

7-
func ValidateEnvironment(env string) error {
8-
if env == "" {
7+
func ValidateDeployment(deployment string) error {
8+
if deployment == "" {
99
return nil
1010
}
11-
if len(env) > MaxEnvironmentLength {
12-
return fmt.Errorf("environment exceeds %d bytes", MaxEnvironmentLength)
11+
if len(deployment) > MaxDeploymentLength {
12+
return fmt.Errorf("deployment exceeds %d bytes", MaxDeploymentLength)
1313
}
14-
for i := 0; i < len(env); i++ {
15-
c := env[i]
14+
for i := 0; i < len(deployment); i++ {
15+
c := deployment[i]
1616
switch {
1717
case c == '_':
18-
return fmt.Errorf("environment contains reserved character %q", c)
18+
return fmt.Errorf("deployment contains reserved character %q", c)
1919
case c <= ' ' || c == 0x7f:
20-
return fmt.Errorf("environment contains whitespace or control byte at position %d", i)
20+
return fmt.Errorf("deployment contains whitespace or control byte at position %d", i)
2121
}
2222
}
2323
return nil

livekit/livekit_agent.pb.go

Lines changed: 16 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

livekit/livekit_agent_dispatch.pb.go

Lines changed: 23 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

livekit/livekit_agent_dispatch.twirp.go

Lines changed: 37 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package agentsv2obs
1+
package agentsv3obs
22

33
import "github.com/livekit/protocol/livekit"
44

0 commit comments

Comments
 (0)