From 72113759f3d0a89ed04b49c07546d18aeff535f6 Mon Sep 17 00:00:00 2001 From: "huadong.xhd" <1017390046@qq.com> Date: Thu, 6 Jun 2024 15:38:04 +0800 Subject: [PATCH] fix: improved the documentation description --- pkg/domain/constant/source.go | 4 +++- pkg/domain/constant/stack.go | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pkg/domain/constant/source.go b/pkg/domain/constant/source.go index 0c04f8ac..174f84d8 100644 --- a/pkg/domain/constant/source.go +++ b/pkg/domain/constant/source.go @@ -16,8 +16,10 @@ var ( ) const ( + // SourceProviderTypeGit represents git source provider type. + SourceProviderTypeGit SourceProviderType = "git" + // SourceProviderTypeGithub represents github source provider type. - SourceProviderTypeGit SourceProviderType = "git" SourceProviderTypeGithub SourceProviderType = "github" // SourceProviderTypeOCI represents oci source provider type. diff --git a/pkg/domain/constant/stack.go b/pkg/domain/constant/stack.go index d4160bbc..96793065 100644 --- a/pkg/domain/constant/stack.go +++ b/pkg/domain/constant/stack.go @@ -10,11 +10,11 @@ type StackState string // These constants represent the possible states of a stack. const ( - // The stack has not been synced with the remote runtime. + // StackStateUnSynced represents state of stack has not been synced with the remote runtime. StackStateUnSynced StackState = "UnSynced" - // The stack is synced with the remote runtime. + // StackStateSynced represents state of stack is synced with the remote runtime. StackStateSynced StackState = "Synced" - // The stack has out of sync from the remote runtime. + // StackStateOutOfSync represents state of stack has out of sync from the remote runtime. StackStateOutOfSync StackState = "OutOfSync" )