Add some more caching, record scaleset jobs
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
2f3c74562e
commit
0e1fa0018b
16 changed files with 244 additions and 70 deletions
|
|
@ -1039,6 +1039,17 @@ func (g GithubEntity) String() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
func (g GithubEntity) GetIDAsUUID() (uuid.UUID, error) {
|
||||
if g.ID == "" {
|
||||
return uuid.Nil, nil
|
||||
}
|
||||
id, err := uuid.Parse(g.ID)
|
||||
if err != nil {
|
||||
return uuid.Nil, fmt.Errorf("failed to parse entity ID: %w", err)
|
||||
}
|
||||
return id, nil
|
||||
}
|
||||
|
||||
// used by swagger client generated code
|
||||
type GithubEndpoints []GithubEndpoint
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue