blob: 61b5ed1893eb809beb6f4b81312dbc1851ba5a60 [file] [log] [blame]
// Copyright 2018 The LUCI Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package pkg
// ManifestMode is used to indicate presence of absence of manifest when calling
// various functions.
//
// Just to improve code readability, since Func(..., WithManifest) is less
// cryptic than Func(..., true).
type ManifestMode bool
const (
// WithoutManifest indicates the function should skip manifest.
WithoutManifest ManifestMode = false
// WithManifest indicates the function should handle manifest.
WithManifest ManifestMode = true
)