generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add artefact metadata to the module (#3658)
- Loading branch information
Showing
14 changed files
with
1,089 additions
and
817 deletions.
There are no files selected for viewing
1,560 changes: 838 additions & 722 deletions
1,560
backend/protos/xyz/block/ftl/schema/v1/schema.pb.go
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
frontend/console/src/protos/xyz/block/ftl/schema/v1/schema_pb.ts
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package schema | ||
|
||
import ( | ||
"fmt" | ||
|
||
"google.golang.org/protobuf/reflect/protoreflect" | ||
|
||
schemapb "github.com/TBD54566975/ftl/backend/protos/xyz/block/ftl/schema/v1" | ||
) | ||
|
||
//protobuf:14 | ||
type MetadataArtefact struct { | ||
Pos Position `parser:"" protobuf:"1,optional"` | ||
|
||
Path string `parser:"'+' 'artefact' Whitespace @String" protobuf:"2"` | ||
Digest string `parser:"@String" protobuf:"3"` | ||
Executable bool `parser:"@'executable'?" protobuf:"4"` | ||
} | ||
|
||
var _ Metadata = (*MetadataArtefact)(nil) | ||
|
||
func (m *MetadataArtefact) Position() Position { return m.Pos } | ||
|
||
func (m *MetadataArtefact) String() string { | ||
return fmt.Sprintf("+artefact %q %q %t", m.Path, m.Digest, m.Executable) | ||
} | ||
|
||
func (m *MetadataArtefact) ToProto() protoreflect.ProtoMessage { | ||
return &schemapb.MetadataArtefact{ | ||
Pos: posToProto(m.Pos), | ||
Executable: m.Executable, | ||
Path: m.Path, | ||
Digest: m.Digest, | ||
} | ||
} | ||
|
||
func (m *MetadataArtefact) schemaChildren() []Node { return nil } | ||
func (m *MetadataArtefact) schemaMetadata() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
162 changes: 82 additions & 80 deletions
162
python-runtime/ftl/src/ftl/protos/xyz/block/ftl/schema/v1/schema_pb2.py
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.