From a031832f61db50f2cf3cf348d16d14d9852c6681 Mon Sep 17 00:00:00 2001 From: wass3r <1301201+wass3r@users.noreply.github.com> Date: Sat, 20 Jul 2024 14:48:03 -0500 Subject: [PATCH] mark as deprecated --- library/build.go | 2 ++ library/executor.go | 2 ++ library/repo.go | 2 ++ library/schedule.go | 2 ++ library/worker.go | 2 ++ 5 files changed, 10 insertions(+) diff --git a/library/build.go b/library/build.go index 993f3523..f8f5d4d5 100644 --- a/library/build.go +++ b/library/build.go @@ -12,6 +12,8 @@ import ( ) // Build is the library representation of a build for a pipeline. +// +// Deprecated: use Build from github.com/go-vela/server/api/types instead. type Build struct { ID *int64 `json:"id,omitempty"` RepoID *int64 `json:"repo_id,omitempty"` diff --git a/library/executor.go b/library/executor.go index 0decb1e0..1ae78135 100644 --- a/library/executor.go +++ b/library/executor.go @@ -10,6 +10,8 @@ import ( ) // Executor is the library representation of an executor for a worker. +// +// Deprecated: use Executor from github.com/go-vela/server/api/types instead. type Executor struct { ID *int64 `json:"id,omitempty"` Host *string `json:"host,omitempty"` diff --git a/library/repo.go b/library/repo.go index cc50e504..eb4c801d 100644 --- a/library/repo.go +++ b/library/repo.go @@ -8,6 +8,8 @@ import ( ) // Repo is the library representation of a repo. +// +// Deprecated: use Repo from github.com/go-vela/server/api/types instead. type Repo struct { ID *int64 `json:"id,omitempty"` UserID *int64 `json:"user_id,omitempty"` diff --git a/library/schedule.go b/library/schedule.go index 06fcf168..6b5437f3 100644 --- a/library/schedule.go +++ b/library/schedule.go @@ -7,6 +7,8 @@ import ( ) // Schedule is the API representation of a schedule for a repo. +// +// Deprecated: use Schedule from github.com/go-vela/server/api/types instead. type Schedule struct { ID *int64 `json:"id,omitempty"` RepoID *int64 `json:"repo_id,omitempty"` diff --git a/library/worker.go b/library/worker.go index 01090271..adf89045 100644 --- a/library/worker.go +++ b/library/worker.go @@ -7,6 +7,8 @@ import ( ) // Worker is the library representation of a worker. +// +// Deprecated: use Worker from github.com/go-vela/server/api/types instead. type Worker struct { ID *int64 `json:"id,omitempty"` Hostname *string `json:"hostname,omitempty"`