Skip to content

DockerIgnoreStrategy

Ignores file paths based on the .dockerignore specification.

Initializers

using AlibabaCloud.SDK.ROS.CDK.Core;
new DockerIgnoreStrategy(string AbsoluteRootPath, string[] Patterns);
Name Type Description
AbsoluteRootPath string No description.
Patterns string[] No description.

AbsoluteRootPathRequired

  • Type: string

PatternsRequired

  • Type: string[]

Methods

Name Description
Add Adds another pattern.
Ignores Determines whether a given file path should be ignored or not.

Add

private void Add(string Pattern)

Adds another pattern.

PatternRequired

  • Type: string

Ignores

private bool Ignores(string AbsoluteFilePath)

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

AbsoluteFilePathRequired

  • Type: string

absolute file path to be assessed against the pattern.


Static Functions

Name Description
Docker Ignores file paths based on the .dockerignore specification.
FromCopyOptions Creates an IgnoreStrategy based on the ignoreMode and exclude in a CopyOptions.
Git Ignores file paths based on the .gitignore specification.
Glob Ignores file paths based on simple glob patterns.

Docker

using AlibabaCloud.SDK.ROS.CDK.Core;
DockerIgnoreStrategy.Docker(string AbsoluteRootPath, string[] Patterns);

Ignores file paths based on the .dockerignore specification.

AbsoluteRootPathRequired

  • Type: string

the absolute path to the root directory of the paths to be considered.


PatternsRequired

  • Type: string[]

FromCopyOptions

using AlibabaCloud.SDK.ROS.CDK.Core;
DockerIgnoreStrategy.FromCopyOptions(CopyOptions Options, string AbsoluteRootPath);

Creates an IgnoreStrategy based on the ignoreMode and exclude in a CopyOptions.

OptionsRequired

the CopyOptions to create the IgnoreStrategy from.


AbsoluteRootPathRequired

  • Type: string

the absolute path to the root directory of the paths to be considered.


Git

using AlibabaCloud.SDK.ROS.CDK.Core;
DockerIgnoreStrategy.Git(string AbsoluteRootPath, string[] Patterns);

Ignores file paths based on the .gitignore specification.

AbsoluteRootPathRequired

  • Type: string

the absolute path to the root directory of the paths to be considered.


PatternsRequired

  • Type: string[]

Glob

using AlibabaCloud.SDK.ROS.CDK.Core;
DockerIgnoreStrategy.Glob(string AbsoluteRootPath, string[] Patterns);

Ignores file paths based on simple glob patterns.

AbsoluteRootPathRequired

  • Type: string

the absolute path to the root directory of the paths to be considered.


PatternsRequired

  • Type: string[]