Skip to content

Commit

Permalink
Move infra related types to appropriate file
Browse files Browse the repository at this point in the history
  • Loading branch information
SaiDadireddy committed Sep 25, 2024
1 parent 76fa2f7 commit 24fb45c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 8 additions & 0 deletions access_infrastructure_application.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,11 @@ type InfraTargetContext struct {
Port int `json:"port"`
Protocol InfraProtocol `json:"protocol"`
}

type InfraConnectionRulesSSH struct {
Usernames []string `json:"usernames"`
}

type InfraConnectionRules struct {
SSH *InfraConnectionRulesSSH `json:"ssh,omitempty"`
}
8 changes: 0 additions & 8 deletions access_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@ type AccessApprovalGroup struct {
ApprovalsNeeded int `json:"approvals_needed,omitempty"`
}

type InfraConnectionRulesSSH struct {
Usernames []string `json:"usernames"`
}

type InfraConnectionRules struct {
SSH *InfraConnectionRulesSSH `json:"ssh,omitempty"`
}

// AccessPolicy defines a policy for allowing or disallowing access to
// one or more Access applications.
type AccessPolicy struct {
Expand Down

0 comments on commit 24fb45c

Please sign in to comment.