Skip to content

Commit

Permalink
Refactor: clean Repository and Runtimes structs (#973)
Browse files Browse the repository at this point in the history
* Refactor: clean Repository and Runtimes structs

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* Refactor: rename struct member

Signed-off-by: Matej Vasek <mvasek@redhat.com>
  • Loading branch information
matejvasek committed Apr 18, 2022
1 parent 34cb893 commit e502d55
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 158 deletions.
12 changes: 12 additions & 0 deletions function.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,18 @@ type Function struct {
Invocation Invocation `yaml:"invocation,omitempty"`
}

// HealthEndpoints specify the liveness and readiness endpoints for a Runtime
type HealthEndpoints struct {
Liveness string `yaml:"liveness,omitempty"`
Readiness string `yaml:"readiness,omitempty"`
}

// BuildConfig defines builders and buildpacks
type BuildConfig struct {
Buildpacks []string `yaml:"buildpacks,omitempty"`
Builders map[string]string `yaml:"builders,omitempty"`
}

// Invocation defines hints on how to accomplish a Function invocation.
type Invocation struct {
// Format indicates the expected format of the invocation. Either 'http'
Expand Down

0 comments on commit e502d55

Please sign in to comment.