GlobIgnoreStrategy
Ignores file paths based on simple glob patterns.
Initializers
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.NewGlobIgnoreStrategy(absoluteRootPath *string, patterns *[]*string) GlobIgnoreStrategy
| 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
func Add(pattern *string)
Adds another pattern.
- Type: *string
Ignores
func Ignores(absoluteFilePath *string) *bool
Determines whether a given file path should be ignored or not.
- 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
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.GlobIgnoreStrategy_Docker(absoluteRootPath *string, patterns *[]*string) DockerIgnoreStrategy
Ignores file paths based on the .dockerignore specification.
- Type: *string
the absolute path to the root directory of the paths to be considered.
- Type: []string
FromCopyOptions
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.GlobIgnoreStrategy_FromCopyOptions(options CopyOptions, absoluteRootPath *string) IgnoreStrategy
Creates an IgnoreStrategy based on the ignoreMode and exclude in a CopyOptions.
- Type: CopyOptions
the CopyOptions to create the IgnoreStrategy from.
- Type: *string
the absolute path to the root directory of the paths to be considered.
Git
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.GlobIgnoreStrategy_Git(absoluteRootPath *string, patterns *[]*string) GitIgnoreStrategy
Ignores file paths based on the .gitignore specification.
- Type: *string
the absolute path to the root directory of the paths to be considered.
- Type: []string
Glob
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.GlobIgnoreStrategy_Glob(absoluteRootPath *string, patterns *[]*string) GlobIgnoreStrategy
Ignores file paths based on simple glob patterns.
- Type: *string
the absolute path to the root directory of the paths to be considered.
- Type: []string