gardener: github.com/gardener/gardener/pkg/scheduler/apis/config/loader Index | Files

package loader

import "github.com/gardener/gardener/pkg/scheduler/apis/config/loader"

Index

Package Files

loader.go

Variables

var (
    Codec  runtime.Codec
    Scheme *runtime.Scheme
)

func Load Uses

func Load(data []byte) (*config.SchedulerConfiguration, error)

Load takes a byte slice and de-serializes the contents into SchedulerConfiguration object. Encapsulates de-serialization without assuming the source is a file.

func LoadFromFile Uses

func LoadFromFile(filename string) (*config.SchedulerConfiguration, error)

LoadFromFile takes a filename and de-serializes the contents into SchedulerConfiguration object.

Package loader imports 10 packages (graph). Updated 2019-10-16. Refresh now. Tools for package owners.