api

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentList

type ComponentList struct {
	ReplicationControllers    []*components.ReplicationController
	Services                  []*components.Service
	ConfigMaps                []*components.ConfigMap
	ServiceAccounts           []*components.ServiceAccount
	ClusterRoleBindings       []*components.ClusterRoleBinding
	ClusterRoles              []*components.ClusterRole
	RoleBindings              []*components.RoleBinding
	Roles                     []*components.Role
	Deployments               []*components.Deployment
	Secrets                   []*components.Secret
	PersistentVolumeClaims    []*components.PersistentVolumeClaim
	Routes                    []*Route
	CustomResourceDefinitions []*components.CustomResourceDefinition
}

ComponentList defines the list of components for an app

func (*ComponentList) GetKubeInterfaces

func (clist *ComponentList) GetKubeInterfaces() []interface{}

GetKubeInterfaces returns a list of kube components as interfaces

type DeploymentResource

type DeploymentResource struct {
	Replicas      *int32    `json:"replicas,omitempty"`
	Resources     Resources `json:"resources,omitempty"`
	HeapMaxMemory *string   `json:"heapMaxMemory,omitempty"`
}

DeploymentResource contains the specification of a pod replica's, container memory and cpu limits and requests and container JVM heap max memory

type RegistryConfiguration

type RegistryConfiguration struct {
	Registry    string   `json:"registry"`
	PullSecrets []string `json:"pullSecrets"`
}

RegistryConfiguration contains the registry configuration

func (*RegistryConfiguration) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BlackduckSpec.

func (*RegistryConfiguration) DeepCopyInto

func (in *RegistryConfiguration) DeepCopyInto(out *RegistryConfiguration)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Resource

type Resource struct {
	CPU    *string `json:"cpu,omitempty"`
	Memory *string `json:"memory,omitempty"`
}

Resource contains specification for container cpu and memory

type Resources

type Resources struct {
	Requests Resource `json:"requests,omitempty"`
	Limits   Resource `json:"limits,omitempty"`
}

Resources contains specification for container requests and limits

type Route

type Route struct {
	Namespace          string
	Name               string
	Kind               string
	ServiceName        string
	PortName           string
	Labels             map[string]string
	TLSTerminationType routev1.TLSTerminationType
}

Route defines the route component

type SecurityContext

type SecurityContext struct {
	FsGroup    *int64 `json:"fsGroup"`
	RunAsUser  *int64 `json:"runAsUser"`
	RunAsGroup *int64 `json:"runAsGroup"`
}

SecurityContext will contain the specifications of a security contexts

Directories

Path Synopsis
v1
v1
v1

Jump to

Keyboard shortcuts

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