Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecodeError ¶
DecodeError represents an error that occurs when decoding an object
func (*DecodeError) Error ¶
func (e *DecodeError) Error() string
func (*DecodeError) Unwrap ¶
func (e *DecodeError) Unwrap() error
type FileReadError ¶
FileReadError represents an error that occurs when reading a file
func (*FileReadError) Error ¶
func (e *FileReadError) Error() string
func (*FileReadError) Unwrap ¶
func (e *FileReadError) Unwrap() error
type Loader ¶
type Loader struct { Scheme *runtime.Scheme Codecs serializer.CodecFactory }
Loader is a struct for loading Kubernetes resources from YAML files
func (*Loader) LoadObjectFromPaths ¶
LoadObjectFromPaths loads resources from a slice of file or directory paths
func (*Loader) LoadPolicyFromPaths ¶
func (l *Loader) LoadPolicyFromPaths(paths []string) ([]*admissionregistrationv1.ValidatingAdmissionPolicy, []*admissionregistrationv1.ValidatingAdmissionPolicyBinding, error)
LoadPolicyFromPaths loads policies and bindings from the specified file paths. It returns two slices: one containing ValidatingAdmissionPolicy objects and the other containing ValidatingAdmissionPolicyBinding objects. If an error occurs during loading, it returns nil slices and the error.
Parameters:
- paths: A slice of strings representing the file paths to load the policies and bindings from.
Returns:
- []*admissionregistrationv1.ValidatingAdmissionPolicy: A slice of ValidatingAdmissionPolicy objects.
- []*admissionregistrationv1.ValidatingAdmissionPolicyBinding: A slice of ValidatingAdmissionPolicyBinding objects.
- error: An error if any occurred during loading, otherwise nil.
type UnknownResourceError ¶
UnknownResourceError は未知のリソースが存在する場合のエラーを表します
func (*UnknownResourceError) Error ¶
func (e *UnknownResourceError) Error() string
type YAMLParseError ¶
YAMLParseError represents an error that occurs when parsing YAML
func (*YAMLParseError) Error ¶
func (e *YAMLParseError) Error() string
func (*YAMLParseError) Unwrap ¶
func (e *YAMLParseError) Unwrap() error