namespace TeamCity.Docker.Model { using System; using System.Collections.Generic; using IoC; internal readonly struct Template { [NotNull] public readonly IEnumerable Lines; [NotNull] public readonly IEnumerable Variants; [NotNull] public readonly IReadOnlyCollection Ignore; /// /// Creates object describing configuration for Dockerfile. /// /// Content of the template Dockerfile. /// Different configuration options (.config files) /// Content of .Dockerignore public Template([NotNull] IReadOnlyCollection lines, [NotNull] IReadOnlyCollection variants, [NotNull] IReadOnlyCollection ignore) { Lines = lines ?? throw new ArgumentNullException(nameof(lines)); Variants = variants ?? throw new ArgumentNullException(nameof(variants)); Ignore = ignore; } } }