parser

package
v0.0.0-...-e3fd340 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource

type Resource struct {
	Group     string            `json:"group"`
	Version   string            `json:"version"`
	Kind      string            `json:"kind"`
	Name      string            `json:"name"`
	Namespace string            `json:"namespace"`
	Labels    map[string]string `json:"-"`
	Images    []string          `json:"-"`
}

Object a basic object for a Kubernetes object.

func ParseFromGit

func ParseFromGit(path string, opts *git.CloneOptions) ([]*Resource, error)

ParseFromGit takes a go-git CloneOptions struct and a filepath, and extracts the service configuration from there.

type ResourceParser

type ResourceParser func(path string, opts *git.CloneOptions) ([]*Resource, error)

ResourceParser implementations should fetch the source using the CloneOptions and parse the resources in the path into a set of resource.Resource values.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL