Documentation ¶
Index ¶
- Constants
- type ActivateActionRequest
- type AddPlatformRequest
- type AddRepositoryRequest
- type AppConfig
- type BlockActionRequest
- type CleanActionRequest
- type CommitsOverriding
- type CommittersRule
- type Common
- type EditPlatformRequest
- type EditRepositoryRequest
- type GitUser
- type InfoActionRequest
- type PlatformConfig
- type PullActionRequest
- type PushActionRequest
- type RemovePlatformRequest
- type RemoveRepositoryRequest
- type RepositoryConfig
- type RuntimeLog
- type RuntimeLogsRequest
- type SaveSettingsRequest
Constants ¶
const ( // StateActive describe state "active" StateActive = "active" // StateBlocked describe state "blocked" StateBlocked = "blocked" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivateActionRequest ¶
type ActivateActionRequest struct {
RepositoryUUID string `json:"uuid"`
}
ActivateActionRequest struct describes activate action request.
type AddPlatformRequest ¶
type AddPlatformRequest struct { Address string `json:"address"` Name string `json:"name"` Username string `json:"username"` Password string `json:"password"` }
AddPlatformRequest struct describes add platform request model.
type AddRepositoryRequest ¶
type AddRepositoryRequest struct { Name string `json:"name"` SourcePlatformUUID string `json:"spu"` SourcePlatformPath string `json:"spp"` DestinationPlatformUUID string `json:"dpu"` DestinationPlatformPath string `json:"dpp"` }
AddRepositoryRequest struct describes add repository request model.
type AppConfig ¶
type AppConfig struct { Common Common `json:"common"` CommitsOverriding CommitsOverriding `json:"commits_overriding"` }
AppConfig struct describes app config.
type BlockActionRequest ¶
type BlockActionRequest struct {
RepositoryUUID string `json:"uuid"`
}
BlockActionRequest struct describes block action request.
type CleanActionRequest ¶
type CleanActionRequest struct {
RepositoryUUID string `json:"uuid"`
}
CleanActionRequest struct describes clean action request.
type CommitsOverriding ¶
type CommitsOverriding struct { State bool `json:"state"` OverrideCommitsWithOneAuthor bool `json:"override_commits_with_one_author"` MasterUser GitUser `json:"master_user"` CommittersRules []CommittersRule `json:"committers_rules"` }
CommitsOverriding struct describes app config commits overriding section.
type CommittersRule ¶
CommittersRule struct describes committer rule info.
type Common ¶
type Common struct {
RecentCommitsShown int `json:"recent_commits_shown"`
}
Common struct describes app config common section.
type EditPlatformRequest ¶
type EditPlatformRequest struct { UUID string `json:"uuid"` Address string `json:"address"` Name string `json:"name"` Username string `json:"username"` Password string `json:"password"` }
EditPlatformRequest struct describes edit platform request model.
type EditRepositoryRequest ¶
type EditRepositoryRequest struct { UUID string `json:"uuid"` Name string `json:"name"` SourcePlatformUUID string `json:"spu"` SourcePlatformPath string `json:"spp"` DestinationPlatformUUID string `json:"dpu"` DestinationPlatformPath string `json:"dpp"` }
EditRepositoryRequest struct describes edit repository request model.
type InfoActionRequest ¶
type InfoActionRequest struct {
RepositoryUUID string `json:"uuid"`
}
InfoActionRequest struct describes info action request.
type PlatformConfig ¶
type PlatformConfig struct { UUID string `json:"uuid"` Name string `json:"name"` Address string `json:"address"` Username string `json:"username"` Password string `json:"password"` }
PlatformConfig struct describes platform config.
type PullActionRequest ¶
type PullActionRequest struct {
RepositoryUUID string `json:"uuid"`
}
PullActionRequest struct describes pull action request.
type PushActionRequest ¶
type PushActionRequest struct {
RepositoryUUID string `json:"uuid"`
}
PushActionRequest struct describes push action request.
type RemovePlatformRequest ¶
type RemovePlatformRequest struct {
UUID string `json:"uuid"`
}
RemovePlatformRequest struct describes remove platform request model.
type RemoveRepositoryRequest ¶
type RemoveRepositoryRequest struct {
UUID string `json:"uuid"`
}
RemoveRepositoryRequest struct describes remove repository request model.
type RepositoryConfig ¶
type RepositoryConfig struct { UUID string `json:"uuid"` Name string `json:"name"` SourcePlatformUUID string `json:"spu"` SourcePlatformPath string `json:"spp"` DestinationPlatformUUID string `json:"dpu"` DestinationPlatformPath string `json:"dpp"` Status string `json:"status"` State string `json:"state"` UpdatedAt string `json:"updated_at"` }
RepositoryConfig struct describes repository config.
type RuntimeLog ¶
type RuntimeLog struct { SessionID string `json:"session_id"` Time string `json:"time"` Level string `json:"level"` Category string `json:"category"` Message string `json:"message"` }
RuntimeLog struct describes runtime log config.
type RuntimeLogsRequest ¶
type RuntimeLogsRequest struct {
Action string `json:"action"`
}
RuntimeLogsRequest struct describes runtime log action.
type SaveSettingsRequest ¶
type SaveSettingsRequest struct { Section string `json:"section"` Field string `json:"field"` Value interface{} `json:"value"` }
SaveSettingsRequest struct describes save app settings request.