Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

Use default scheme of http for dev urls#194

Merged
cmoog merged 1 commit intomasterfromdevurl-scheme
Nov 23, 2020
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletionscoder-sdk/devurl.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -13,6 +13,7 @@ type DevURL struct {
Port int `json:"port" table:"Port"`
Access string `json:"access" table:"Access"`
Name string `json:"name" table:"Name"`
Scheme string `json:"scheme" table:"-"`
}

type delDevURLRequest struct {
Expand All@@ -36,6 +37,7 @@ type CreateDevURLReq struct {
Port int `json:"port"`
Access string `json:"access"`
Name string `json:"name"`
Scheme string `json:"scheme"`
}

// CreateDevURL inserts a new devurl for the authenticated user.
Expand Down
2 changes: 2 additions & 0 deletionsinternal/cmd/urls.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -180,6 +180,7 @@ func createDevURLCmd() *cobra.Command {
Name: urlname,
Access: access,
EnvID: env.ID,
Scheme: "http",
})
if err != nil {
return xerrors.Errorf("update DevURL: %w", err)
Expand All@@ -191,6 +192,7 @@ func createDevURLCmd() *cobra.Command {
Name: urlname,
Access: access,
EnvID: env.ID,
Scheme: "http",
})
if err != nil {
return xerrors.Errorf("insert DevURL: %w", err)
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp