Show / Hide Table of Contents

Class DockerIgnoreStrategy

Ignores file paths based on the .dockerignore specification.

Inheritance
object
IgnoreStrategy
DockerIgnoreStrategy
Inherited Members
IgnoreStrategy.Docker(string, string[])
IgnoreStrategy.FromCopyOptions(ICopyOptions, string)
IgnoreStrategy.Git(string, string[])
IgnoreStrategy.Glob(string, string[])
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class DockerIgnoreStrategy : IgnoreStrategy
Syntax (vb)
Public Class DockerIgnoreStrategy Inherits IgnoreStrategy
Remarks

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK;

            var dockerIgnoreStrategy = new DockerIgnoreStrategy("absoluteRootPath", new [] { "patterns" });

Synopsis

Constructors

DockerIgnoreStrategy(string, string[])

Ignores file paths based on the .dockerignore specification.

Methods

Add(string)

Adds another pattern.

Ignores(string)

Determines whether a given file path should be ignored or not.

Constructors

DockerIgnoreStrategy(string, string[])

Ignores file paths based on the .dockerignore specification.

public DockerIgnoreStrategy(string absoluteRootPath, string[] patterns)
Parameters
absoluteRootPath string
patterns string[]
Remarks

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK;

            var dockerIgnoreStrategy = new DockerIgnoreStrategy("absoluteRootPath", new [] { "patterns" });

Methods

Add(string)

Adds another pattern.

public override void Add(string pattern)
Parameters
pattern string
Overrides
IgnoreStrategy.Add(string)
Remarks

Params: pattern the pattern to add

Ignores(string)

Determines whether a given file path should be ignored or not.

public override bool Ignores(string absoluteFilePath)
Parameters
absoluteFilePath string

absolute file path to be assessed against the pattern.

Returns

bool

true if the file should be ignored

Overrides
IgnoreStrategy.Ignores(string)
Remarks

ExampleMetadata: fixture=_generated

Back to top Generated by DocFX