mirror of
https://github.com/harness/drone.git
synced 2025-05-01 21:21:11 +00:00
* feat: [CDE-140]: Fixing ProvideGitspaceContainerOrchestratorConfig. * feat: [CDE-140]: Fixing ProvideGitspaceContainerOrchestratorConfig. * feat: [CDE-140]: Addressing review comments. * feat: [CDE-140]: Reverting changes done for docker config default values. Adding default value of GITNESS_GITSPACE_DEFAULT_BIND_MOUNT_SOURCE_BASE_PATH and GITNESS_DOCKER_HOST to Dockerfile. Adding new column in gitspace_events table for storing event timestamp in nanoseconds and corresponding migrations. * Lingting. * feat: [CDE-140]: Adding docker machine host name config to identify the public host name on which the docker host is running. Updated the docker config to read from the default docker env variables if config values are not set. Updated the events timestamp to use nanoseconds. Fixed the working directory response and cleaned the logic of how the gitspace instance url is generated. Updated the scm service to parse repo name in a provider agnostic manner.
41 lines
1.3 KiB
Go
41 lines
1.3 KiB
Go
// Copyright 2023 Harness, Inc.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
package types
|
|
|
|
import "github.com/harness/gitness/types/enum"
|
|
|
|
type GitspaceEvent struct {
|
|
ID int64 `json:"-"`
|
|
Event enum.GitspaceEventType `json:"event,omitempty"`
|
|
EntityID int64 `json:"-"`
|
|
QueryKey string `json:"query_key,omitempty"`
|
|
EntityType enum.GitspaceEntityType `json:"entity_type,omitempty"`
|
|
Timestamp int64 `json:"timestamp,omitempty"`
|
|
Created int64 `json:"created,omitempty"`
|
|
}
|
|
|
|
type GitspaceEventResponse struct {
|
|
GitspaceEvent
|
|
EventTime string `json:"event_time,omitempty"`
|
|
Message string `json:"message,omitempty"`
|
|
}
|
|
|
|
type GitspaceEventFilter struct {
|
|
Pagination
|
|
QueryKey string
|
|
EntityID int64
|
|
EntityType enum.GitspaceEntityType
|
|
}
|