Documentation
¶
Overview ¶
Package server is a bootcfg library package for implementing servers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoMatchingGroup = errors.New("bootcfg: No matching Group") ErrNoMatchingProfile = errors.New("bootcfg: No matching Profile") )
Possible service errors
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server interface { // SelectGroup returns the Group matching the given labels. SelectGroup(context.Context, *pb.SelectGroupRequest) (*storagepb.Group, error) // SelectProfile returns the Profile matching the given labels. SelectProfile(context.Context, *pb.SelectProfileRequest) (*storagepb.Profile, error) // Create or update a Group. GroupPut(context.Context, *pb.GroupPutRequest) (*storagepb.Group, error) // Get a machine Group by id. GroupGet(context.Context, *pb.GroupGetRequest) (*storagepb.Group, error) // List all machine Groups. GroupList(context.Context, *pb.GroupListRequest) ([]*storagepb.Group, error) // Create or update a Profile. ProfilePut(context.Context, *pb.ProfilePutRequest) (*storagepb.Profile, error) // Get a Profile by id. ProfileGet(context.Context, *pb.ProfileGetRequest) (*storagepb.Profile, error) // List all Profiles. ProfileList(context.Context, *pb.ProfileListRequest) ([]*storagepb.Profile, error) // Returns an Ignition config tempate by name. IgnitionGet(ctx context.Context, name string) (string, error) // Returns a Cloud config template by name. CloudGet(ctx context.Context, name string) (string, error) }
Server defines a bootcfg server lib.
Click to show internal directories.
Click to hide internal directories.