csvtools

package
v0.0.41101 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshallObject

func MarshallObject(obj interface{}, writer io.Writer) error

MarshallObject mashals an object, usually a CSV into YAML

func UnmarshalCSV

func UnmarshalCSV(filePath string) *csvv1.ClusterServiceVersion

UnmarshalCSV decodes a YAML file, by path, and returns a CSV

Types

type CSVClusterPermissions

type CSVClusterPermissions struct {
	ServiceAccountName string              `json:"serviceAccountName"`
	Rules              []rbacv1.PolicyRule `json:"rules"`
}

CSVClusterPermissions is the cluster permissions part of a CSV

type CSVDeployments

type CSVDeployments struct {
	Name string                `json:"name"`
	Spec appsv1.DeploymentSpec `json:"spec,omitempty"`
}

CSVDeployments describes the deployments for a CSV

type CSVPermissions

type CSVPermissions struct {
	ServiceAccountName string              `json:"serviceAccountName"`
	Rules              []rbacv1.PolicyRule `json:"rules"`
}

CSVPermissions is the permissions part of a CSV

type CSVStrategySpec

type CSVStrategySpec struct {
	ClusterPermissions []CSVClusterPermissions `json:"clusterPermissions"`
	Permissions        []CSVPermissions        `json:"permissions"`
	Deployments        []CSVDeployments        `json:"deployments"`
}

CSVStrategySpec describes the installation strategy of a CSV

Jump to

Keyboard shortcuts

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