cycler proto: Add delete effect
BUG=chromium:1035045
TEST=./generate.sh
Change-Id: I892e7d6c421171bc4547b665811640edd4491c36
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/proto/+/2205198
Tested-by: George Engelbrecht <engeg@google.com>
Auto-Submit: George Engelbrecht <engeg@google.com>
Reviewed-by: Sean Abraham <seanabraham@chromium.org>
Commit-Queue: Sean Abraham <seanabraham@chromium.org>
diff --git a/go/cycler/config.pb.go b/go/cycler/config.pb.go
index e7e5965..06b12ec 100644
--- a/go/cycler/config.pb.go
+++ b/go/cycler/config.pb.go
@@ -313,6 +313,7 @@
// *PolicyEffectConfiguration_Move
// *PolicyEffectConfiguration_Chill
// *PolicyEffectConfiguration_Duplicate
+ // *PolicyEffectConfiguration_Delete
EffectConfiguration isPolicyEffectConfiguration_EffectConfiguration `protobuf_oneof:"effect_configuration"`
// The policy document to be parsed by rego and executed to determine if an
// effect is going to be taken upon the object.
@@ -369,6 +370,10 @@
Duplicate *DuplicateEffectConfiguration `protobuf:"bytes,4,opt,name=duplicate,proto3,oneof"`
}
+type PolicyEffectConfiguration_Delete struct {
+ Delete *DeleteEffectConfiguration `protobuf:"bytes,7,opt,name=delete,proto3,oneof"`
+}
+
func (*PolicyEffectConfiguration_Noop) isPolicyEffectConfiguration_EffectConfiguration() {}
func (*PolicyEffectConfiguration_Move) isPolicyEffectConfiguration_EffectConfiguration() {}
@@ -377,6 +382,8 @@
func (*PolicyEffectConfiguration_Duplicate) isPolicyEffectConfiguration_EffectConfiguration() {}
+func (*PolicyEffectConfiguration_Delete) isPolicyEffectConfiguration_EffectConfiguration() {}
+
func (m *PolicyEffectConfiguration) GetEffectConfiguration() isPolicyEffectConfiguration_EffectConfiguration {
if m != nil {
return m.EffectConfiguration
@@ -412,6 +419,13 @@
return nil
}
+func (m *PolicyEffectConfiguration) GetDelete() *DeleteEffectConfiguration {
+ if x, ok := m.GetEffectConfiguration().(*PolicyEffectConfiguration_Delete); ok {
+ return x.Delete
+ }
+ return nil
+}
+
func (m *PolicyEffectConfiguration) GetPolicyDocumentPath() string {
if m != nil {
return m.PolicyDocumentPath
@@ -433,6 +447,7 @@
(*PolicyEffectConfiguration_Move)(nil),
(*PolicyEffectConfiguration_Chill)(nil),
(*PolicyEffectConfiguration_Duplicate)(nil),
+ (*PolicyEffectConfiguration_Delete)(nil),
}
}
@@ -447,49 +462,50 @@
func init() { proto.RegisterFile("cycler/config.proto", fileDescriptor_093cc71b7e56221a) }
var fileDescriptor_093cc71b7e56221a = []byte{
- // 698 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0xdb, 0x4e, 0xdb, 0x3c,
- 0x1c, 0xff, 0x42, 0xa1, 0xa2, 0x2e, 0x5f, 0x41, 0x2e, 0x83, 0x02, 0x93, 0x28, 0xdd, 0xa4, 0x75,
- 0x37, 0x2d, 0x62, 0x42, 0xda, 0xed, 0x4a, 0x37, 0x21, 0x0d, 0x06, 0x32, 0x62, 0xd2, 0x76, 0x63,
- 0xb9, 0xa9, 0x9b, 0x58, 0x24, 0x76, 0xe4, 0x03, 0xb4, 0xbc, 0xcc, 0x1e, 0x69, 0x6f, 0xb1, 0x67,
- 0xd8, 0xcd, 0xa4, 0xc9, 0x76, 0x42, 0xa1, 0x2d, 0xda, 0x5d, 0xfc, 0x3b, 0x45, 0xff, 0x83, 0x0d,
- 0xea, 0xe1, 0x24, 0x4c, 0xa8, 0xec, 0x86, 0x82, 0x8f, 0x58, 0xd4, 0xc9, 0xa4, 0xd0, 0x02, 0x96,
- 0x3d, 0xb8, 0x5b, 0x90, 0x74, 0x34, 0xa2, 0xa1, 0xf6, 0x64, 0xeb, 0xe7, 0x12, 0xa8, 0x20, 0xc3,
- 0x4f, 0x9c, 0x01, 0x5e, 0x80, 0x17, 0xd2, 0x70, 0x9c, 0x88, 0x08, 0xfb, 0x08, 0x23, 0x89, 0x66,
- 0x82, 0x37, 0x82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, 0x5d, 0x21, 0xa3, 0x5e, 0x79,
+ 0x10, 0xaa, 0xc7, 0xf8, 0x48, 0x92, 0x9e, 0x7d, 0xbe, 0x7b, 0x91, 0xe8, 0xb9, 0x32, 0x86, 0x15,
+ 0x0b, 0xbc, 0xfe, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xfc, 0xae, 0x38, 0x82, 0x03, 0x06, 0x00, 0x00,
}
diff --git a/go/cycler/effect.pb.go b/go/cycler/effect.pb.go
index 1e2670a..7142b66 100644
--- a/go/cycler/effect.pb.go
+++ b/go/cycler/effect.pb.go
@@ -236,35 +236,69 @@
return ChillEffectConfiguration_UNKNOWN
}
+// Delete the objects that match the configuration.
+type DeleteEffectConfiguration struct {
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
+}
+
+func (m *DeleteEffectConfiguration) Reset() { *m = DeleteEffectConfiguration{} }
+func (m *DeleteEffectConfiguration) String() string { return proto.CompactTextString(m) }
+func (*DeleteEffectConfiguration) ProtoMessage() {}
+func (*DeleteEffectConfiguration) Descriptor() ([]byte, []int) {
+ return fileDescriptor_77ad79a3f52eadc5, []int{4}
+}
+
+func (m *DeleteEffectConfiguration) XXX_Unmarshal(b []byte) error {
+ return xxx_messageInfo_DeleteEffectConfiguration.Unmarshal(m, b)
+}
+func (m *DeleteEffectConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ return xxx_messageInfo_DeleteEffectConfiguration.Marshal(b, m, deterministic)
+}
+func (m *DeleteEffectConfiguration) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_DeleteEffectConfiguration.Merge(m, src)
+}
+func (m *DeleteEffectConfiguration) XXX_Size() int {
+ return xxx_messageInfo_DeleteEffectConfiguration.Size(m)
+}
+func (m *DeleteEffectConfiguration) XXX_DiscardUnknown() {
+ xxx_messageInfo_DeleteEffectConfiguration.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_DeleteEffectConfiguration proto.InternalMessageInfo
+
func init() {
proto.RegisterEnum("cycler.ChillEffectConfiguration_EnumStorageClass", ChillEffectConfiguration_EnumStorageClass_name, ChillEffectConfiguration_EnumStorageClass_value)
proto.RegisterType((*NoopEffectConfiguration)(nil), "cycler.NoopEffectConfiguration")
proto.RegisterType((*MoveEffectConfiguration)(nil), "cycler.MoveEffectConfiguration")
proto.RegisterType((*DuplicateEffectConfiguration)(nil), "cycler.DuplicateEffectConfiguration")
proto.RegisterType((*ChillEffectConfiguration)(nil), "cycler.ChillEffectConfiguration")
+ proto.RegisterType((*DeleteEffectConfiguration)(nil), "cycler.DeleteEffectConfiguration")
}
func init() { proto.RegisterFile("cycler/effect.proto", fileDescriptor_77ad79a3f52eadc5) }
var fileDescriptor_77ad79a3f52eadc5 = []byte{
- // 304 bytes of a gzipped FileDescriptorProto
+ // 313 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x92, 0x4f, 0x4b, 0xc3, 0x30,
- 0x18, 0xc6, 0xed, 0x94, 0xa9, 0x51, 0x46, 0xac, 0x87, 0x4d, 0xf0, 0x20, 0x3d, 0x79, 0x31, 0xd1,
- 0xf9, 0x09, 0xba, 0xb6, 0xe0, 0x70, 0x66, 0xd2, 0xe9, 0x04, 0x3d, 0x8c, 0x2e, 0xa6, 0x5d, 0xb0,
- 0xed, 0x5b, 0xd2, 0xd4, 0x3f, 0xe0, 0x77, 0xf4, 0x2b, 0x49, 0x53, 0x84, 0x31, 0xe7, 0xd9, 0xe3,
- 0xef, 0xfd, 0x3d, 0x0f, 0x0f, 0x2d, 0x41, 0x87, 0xfc, 0x83, 0xa7, 0x42, 0x51, 0x11, 0xc7, 0x82,
- 0x6b, 0x52, 0x28, 0xd0, 0x60, 0xb7, 0x9b, 0xa3, 0x73, 0x84, 0xba, 0x0c, 0xa0, 0x08, 0x8c, 0xf3,
- 0x20, 0x8f, 0x65, 0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aa, 0x9f, 0x90, 0xad, 0x61, 0x5a, 0x68,
+ 0x50, 0x71, 0xca, 0xa7, 0x4c, 0xc6, 0x45, 0x61, 0x8a, 0x5b, 0xbd, 0x0b, 0x5c, 0x5f, 0x14, 0xff,
+ 0x95, 0xc5, 0x61, 0x56, 0x2e, 0xc6, 0x75, 0xd2, 0xaf, 0x82, 0x51, 0x4b, 0xc3, 0x32, 0xbb, 0x13,
+ 0x64, 0xaf, 0xee, 0x38, 0x7b, 0x68, 0xfb, 0x9e, 0x5e, 0xd3, 0xd1, 0x03, 0xb5, 0x37, 0x9c, 0x7d,
+ 0xb4, 0x33, 0xbe, 0xf3, 0x68, 0xe0, 0x45, 0x81, 0x6d, 0x55, 0x44, 0x43, 0x2f, 0x1a, 0x0e, 0x68,
+ 0x68, 0x37, 0x2a, 0xf2, 0x47, 0xc3, 0xc0, 0xd0, 0x66, 0x15, 0xf3, 0x22, 0xff, 0x6a, 0x30, 0x09,
+ 0xed, 0x2d, 0xf7, 0x08, 0x75, 0x03, 0x2e, 0xf9, 0xda, 0x63, 0xf6, 0x7b, 0x8f, 0xe7, 0x29, 0x60,
+ 0x36, 0x57, 0xb0, 0x10, 0xe5, 0x02, 0x83, 0x4a, 0xc9, 0x0f, 0x40, 0x41, 0x44, 0x96, 0xa8, 0x98,
+ 0x98, 0x2f, 0x43, 0x52, 0x20, 0xf5, 0x13, 0x67, 0x4d, 0x33, 0xb8, 0xfc, 0x0e, 0x00, 0x00, 0xff,
+ 0xff, 0x63, 0xf8, 0x37, 0x15, 0x5a, 0x02, 0x00, 0x00,
}
diff --git a/src/cycler/config.proto b/src/cycler/config.proto
index 78bd11b..8f581d5 100644
--- a/src/cycler/config.proto
+++ b/src/cycler/config.proto
@@ -89,6 +89,8 @@
ChillEffectConfiguration chill = 3;
// Duplicate the object to another location (same bucket or another).
DuplicateEffectConfiguration duplicate = 4;
+ // Delete the object.
+ DeleteEffectConfiguration delete = 7;
}
// Common configuration values.
diff --git a/src/cycler/effect.proto b/src/cycler/effect.proto
index b839513..c49dfdd 100644
--- a/src/cycler/effect.proto
+++ b/src/cycler/effect.proto
@@ -50,3 +50,6 @@
// The desired destination storage class.
EnumStorageClass to_storage_class = 1;
}
+
+// Delete the objects that match the configuration.
+message DeleteEffectConfiguration { }