Пример #1
0
 private void ValidateTagAttributesBase(TagAttributesBase toCheck, TagAttributesBase expected)
 {
     Assert.Equal(toCheck.Name, expected.Name);
     Assert.Equal(toCheck.Digest, expected.Digest);
     Assert.Equal(toCheck.CreatedTime, expected.CreatedTime);
     Assert.Equal(toCheck.LastUpdateTime, expected.LastUpdateTime);
     Assert.Equal(toCheck.Signed, expected.Signed);
     Assert.Equal(toCheck.ChangeableAttributes.DeleteEnabled, expected.ChangeableAttributes.DeleteEnabled);
     Assert.Equal(toCheck.ChangeableAttributes.ListEnabled, expected.ChangeableAttributes.ListEnabled);
     Assert.Equal(toCheck.ChangeableAttributes.ReadEnabled, expected.ChangeableAttributes.ReadEnabled);
     Assert.Equal(toCheck.ChangeableAttributes.WriteEnabled, expected.ChangeableAttributes.WriteEnabled);
 }
 public PSTagAttributeBase(TagAttributesBase attribute)
 {
     Name           = attribute?.Name;
     Digest         = attribute?.Digest;
     CreatedTime    = attribute?.CreatedTime;
     LastUpdateTime = attribute?.LastUpdateTime;
     Signed         = attribute?.Signed;
     if (attribute != null)
     {
         ChangeableAttributes = new PSChangeableAttribute(attribute.ChangeableAttributes);
     }
 }
Пример #3
0
 internal TagAttributes(string registry, string imageName, TagAttributesBase attributes)
 {
     Registry   = registry;
     ImageName  = imageName;
     Attributes = attributes;
 }