apiserver

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 51 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Scheme defines methods for serializing and deserializing API objects.
	Scheme = runtime.NewScheme()
	// Codecs provides methods for retrieving codecs and serializers for specific
	// versions and content types.
	Codecs = serializer.NewCodecFactory(Scheme)
)

Functions

func WriteFile

func WriteFile(filepath string, c []byte) error

WriteFile writes data in the file at the given path

Types

type CompletedConfig

type CompletedConfig struct {
	// contains filtered or unexported fields
}

CompletedConfig embeds a private pointer that cannot be instantiated outside of this package.

func (CompletedConfig) New

func (c CompletedConfig) New() (*PorchServer, error)

New returns a new instance of PorchServer from the given config.

type Config

type Config struct {
	GenericConfig *genericapiserver.RecommendedConfig
	ExtraConfig   ExtraConfig
}

Config defines the config for the apiserver

func (*Config) Complete

func (cfg *Config) Complete() CompletedConfig

Complete fills in any fields not set that are required to have valid data. It's mutating the receiver.

type ExtraConfig

type ExtraConfig struct {
	CoreAPIKubeconfigPath string
	CacheDirectory        string
	FunctionRunnerAddress string
	DefaultImagePrefix    string
	RepoSyncFrequency     time.Duration
	UseGitCaBundle        bool
}

ExtraConfig holds custom apiserver config

type KubeFunctionResolver

type KubeFunctionResolver struct {
	// contains filtered or unexported fields
}

KubeFunctionResolver resolves function names to full image paths

type PorchServer

type PorchServer struct {
	GenericAPIServer *genericapiserver.GenericAPIServer
	// contains filtered or unexported fields
}

PorchServer contains state for a Kubernetes cluster master/api server.

func (*PorchServer) Run

func (s *PorchServer) Run(ctx context.Context) error

type WebhookConfig

type WebhookConfig struct {
	Type             WebhookType
	ServiceName      string // only used if Type == WebhookTypeService
	ServiceNamespace string // only used if Type == WebhookTypeService
	Host             string // only used if Type == WebhookTypeUrl
	Path             string
	Port             int32
	CertStorageDir   string
	CertManWebhook   bool
}

WebhookConfig defines the configuration for the PackageRevision deletion webhook

type WebhookType

type WebhookType string
const (
	WebhookTypeService WebhookType = "service"
	WebhookTypeUrl     WebhookType = "url"
)

Jump to

Keyboard shortcuts

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