validators

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MaaSAPI

type MaaSAPI struct {
	Client *gomaasclient.Client
}

func (*MaaSAPI) ListDNSServers

func (m *MaaSAPI) ListDNSServers() ([]entity.DNSResource, error)

func (*MaaSAPI) ListOSImages

func (m *MaaSAPI) ListOSImages() ([]entity.BootResource, error)

type MaaSAPIClient

type MaaSAPIClient interface {
	ListOSImages() ([]entity.BootResource, error)
	ListDNSServers() ([]entity.DNSResource, error)
}

type MaasRuleService

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

func NewMaasRuleService

func NewMaasRuleService(apiclient MaaSAPIClient) *MaasRuleService

func (*MaasRuleService) ListOSImages

func (s *MaasRuleService) ListOSImages() ([]entity.BootResource, error)

func (*MaasRuleService) ReconcileMaasInstanceImageRules

func (s *MaasRuleService) ReconcileMaasInstanceImageRules(rules v1alpha1.MaasInstanceRules) (*types.ValidationRuleResult, error)

ReconcileMaasInstanceRule reconciles a MaaS instance rule from the MaasValidator config

Jump to

Keyboard shortcuts

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