1 // Copyright 2020 The Kubernetes Authors. 2 // SPDX-License-Identifier: Apache-2.0 3 4 package manifestreader 5 6 import ( 7 "k8s.io/apimachinery/pkg/api/meta" 8 "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" 9 ) 10 11 // ManifestReader defines the interface for reading a set 12 // of manifests into info objects. 13 type ManifestReader interface { 14 Read() ([]*unstructured.Unstructured, error) 15 } 16 17 // ReaderOptions defines the shared inputs for the different 18 // implementations of the ManifestReader interface. 19 type ReaderOptions struct { 20 Mapper meta.RESTMapper 21 Validate bool 22 Namespace string 23 EnforceNamespace bool 24 } 25