github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/client/scoutclient/ddl.go (about)

     1  // generated code; DO NOT EDIT
     2  
     3  package scoutclient
     4  
     5  import (
     6  	_ "embed"
     7  
     8  	"github.com/choria-io/go-choria/providers/agent/mcorpc/ddl/agent"
     9  )
    10  
    11  //go:embed ddl.json
    12  var rawDDL []byte
    13  
    14  // DDLBytes is the raw JSON encoded DDL file for the agent
    15  func DDLBytes() ([]byte, error) {
    16  	return rawDDL, nil
    17  }
    18  
    19  // DDL is a parsed and loaded DDL for the agent
    20  func DDL() (*agent.DDL, error) {
    21  	return agent.NewFromBytes(rawDDL)
    22  }