Documentation ¶
Index ¶
- func CalculateWarnings(ctx context.Context, appName string, groups []*api.EnvironmentGroup) []*api.Warning
- func TransformEnvironmentConfigToApi(in config.EnvironmentConfig) *api.EnvironmentConfig
- func ValidateApplication(app string) error
- func ValidateDeployment(env string, app string) error
- func ValidateEnvironmentApplicationLock(actionType string, env string, app string, id string) error
- func ValidateEnvironmentLock(actionType string, env string, id string) error
- type BatchServer
- type BatchServerConfig
- type EnvironmentServiceServer
- type GitServer
- func (s *GitServer) GetCommitInfo(ctx context.Context, in *api.GetCommitInfoRequest) (*api.GetCommitInfoResponse, error)
- func (s *GitServer) GetEvents(ctx context.Context, fs billy.Filesystem, commitPath string) ([]*api.Event, error)
- func (s *GitServer) GetGitTags(ctx context.Context, in *api.GetGitTagsRequest) (*api.GetGitTagsResponse, error)
- func (s *GitServer) GetProductSummary(ctx context.Context, in *api.GetProductSummaryRequest) (*api.GetProductSummaryResponse, error)
- func (s *GitServer) ReadEvent(ctx context.Context, fs billy.Filesystem, eventPath string, ...) (*api.Event, error)
- type OverviewServiceServer
- type Service
- type VersionServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateWarnings ¶ added in v1.16.0
func CalculateWarnings(ctx context.Context, appName string, groups []*api.EnvironmentGroup) []*api.Warning
CalculateWarnings returns warnings for the User to be displayed in the UI. For really unusual configurations, these will be logged and not returned.
func TransformEnvironmentConfigToApi ¶ added in v1.24.0
func TransformEnvironmentConfigToApi(in config.EnvironmentConfig) *api.EnvironmentConfig
func ValidateApplication ¶ added in v1.16.0
func ValidateDeployment ¶
Types ¶
type BatchServer ¶
type BatchServer struct { Repository repository.Repository RBACConfig auth.RBACConfig Config BatchServerConfig }
func (*BatchServer) ProcessBatch ¶
func (d *BatchServer) ProcessBatch( ctx context.Context, in *api.BatchRequest, ) (*api.BatchResponse, error)
type BatchServerConfig ¶ added in v1.22.0
type BatchServerConfig struct {
WriteCommitData bool
}
type EnvironmentServiceServer ¶
type EnvironmentServiceServer struct {
Repository repository.Repository
}
func (*EnvironmentServiceServer) GetEnvironmentConfig ¶ added in v1.24.0
func (o *EnvironmentServiceServer) GetEnvironmentConfig( ctx context.Context, in *api.GetEnvironmentConfigRequest) (*api.GetEnvironmentConfigResponse, error)
type GitServer ¶ added in v1.22.0
type GitServer struct { Config repository.RepositoryConfig OverviewService *OverviewServiceServer }
func (*GitServer) GetCommitInfo ¶ added in v1.22.0
func (s *GitServer) GetCommitInfo(ctx context.Context, in *api.GetCommitInfoRequest) (*api.GetCommitInfoResponse, error)
func (*GitServer) GetGitTags ¶ added in v1.22.0
func (s *GitServer) GetGitTags(ctx context.Context, in *api.GetGitTagsRequest) (*api.GetGitTagsResponse, error)
func (*GitServer) GetProductSummary ¶ added in v1.22.0
func (s *GitServer) GetProductSummary(ctx context.Context, in *api.GetProductSummaryRequest) (*api.GetProductSummaryResponse, error)
type OverviewServiceServer ¶
type OverviewServiceServer struct { Repository repository.Repository RepositoryConfig repository.RepositoryConfig Shutdown <-chan struct{} // contains filtered or unexported fields }
func (*OverviewServiceServer) GetOverview ¶
func (o *OverviewServiceServer) GetOverview( ctx context.Context, in *api.GetOverviewRequest) (*api.GetOverviewResponse, error)
func (*OverviewServiceServer) StreamOverview ¶
func (o *OverviewServiceServer) StreamOverview(in *api.GetOverviewRequest, stream api.OverviewService_StreamOverviewServer) error
type Service ¶
type Service struct {
Repository repository.Repository
}
func (*Service) ServeHTTPHealth ¶
func (s *Service) ServeHTTPHealth(w http.ResponseWriter, r *http.Request)
type VersionServiceServer ¶ added in v1.16.0
type VersionServiceServer struct {
Repository repository.Repository
}
func (*VersionServiceServer) GetVersion ¶ added in v1.16.0
func (o *VersionServiceServer) GetVersion( ctx context.Context, in *api.GetVersionRequest) (*api.GetVersionResponse, error)
Click to show internal directories.
Click to hide internal directories.