Skip to content

Commit

Permalink
Merge pull request #84 from nokia/parser
Browse files Browse the repository at this point in the history
added parser interface
  • Loading branch information
nephio-prow[bot] committed Apr 10, 2023
2 parents 5c51432 + 690f3ec commit 2e727ac
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions krm-functions/lib/parser/parser.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
Copyright 2023 The Nephio 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 parser

import (
"github.com/GoogleContainerTools/kpt-functions-sdk/go/fn"
)

type Parser interface {
// ParseKubeObject returns a fn sdk KubeObject; if something failed an error
// is returned
ParseKubeObject() (*fn.KubeObject, error)
}

0 comments on commit 2e727ac

Please sign in to comment.