diff options
-rw-r--r-- | schemas/base.xsd | 31 | ||||
-rw-r--r-- | schemas/services.xsd | 43 | ||||
-rw-r--r-- | schemas/translation.xsd | 33 |
3 files changed, 107 insertions, 0 deletions
diff --git a/schemas/base.xsd b/schemas/base.xsd index e69de29bb..fd8de7a67 100644 --- a/schemas/base.xsd +++ b/schemas/base.xsd @@ -0,0 +1,31 @@ +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en"> + + <xsd:annotation> + <xsd:documentation> + base schema for bcfg2 + Narayan Desai, Argonne National Laboratory + $Id: $ + </xsd:documentation> + </xsd:annotation> + + <xsd:include schemaLocation="atom.xsd"/> + + <xsd:complexType name='ContainerType'> + <xsd:choice minOccurs='0' maxOccurs='unbounded'> + <xsd:element name='Package' type='PackageType'/> + <xsd:element name='Service' type='ServiceType'/> + <xsd:element name='ConfigFile' type='ConfigFileType'/> + </xsd:choice> + <xsd:attribute name='name' type='xsd:string'/> + </xsd:complexType> + + <xsd:element name='Base'> + <xsd:complexType> + <xsd:choice minOccurs='0' maxOccurs='unbounded'> + <xsd:element name='Image' type='ContainerType'/> + <xsd:element name='Class' type='ContainerType'/> + </xsd:choice> + </xsd:complexType> + </xsd:element> + +</xsd:schema>
\ No newline at end of file diff --git a/schemas/services.xsd b/schemas/services.xsd index e69de29bb..2299725df 100644 --- a/schemas/services.xsd +++ b/schemas/services.xsd @@ -0,0 +1,43 @@ +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en"> + + <xsd:annotation> + <xsd:documentation> + services schema for bcfg2 + Narayan Desai, Argonne National Laboratory + $Id: $ + </xsd:documentation> + </xsd:annotation> + + <xsd:complexType name='ServiceType'> + <xsd:choice minOccurs='0' maxOccurs='unbounded'> + <xsd:element name='User'> + <xsd:complexType> + <xsd:attribute name='address' type='xsd:string' use='required'/> + <xsd:attribute name='mask' type='xsd:string' use='required'/> + </xsd:complexType> + </xsd:element> + </xsd:choice> + <xsd:attribute name='name' type='xsd:string' use='required'/> + <xsd:attribute name='status' type='xsd:string' use='required'/> + <xsd:attribute name='port' type='xsd:string' use='required'/> + <xsd:attribute name='protocol' type='xsd:string' use='required'/> + </xsd:complexType> + + <xsd:complexType name='ContainerType'> + <xsd:choice minOccurs='0' maxOccurs='unbounded'> + <xsd:element name='Service' type='ServiceType'/> + </xsd:choice> + <xsd:attribute name='name' type='xsd:string'/> + </xsd:complexType> + + <xsd:element name='Services'> + <xsd:complexType> + <xsd:choice minOccurs='0' maxOccurs='unbounded'> + <xsd:element name='Service' type='ServiceType'/> + <xsd:element name='Class' type='ContainerType'/> + <xsd:element name='Host' type='ContainerType'/> + </xsd:choice> + </xsd:complexType> + </xsd:element> + +</xsd:schema>
\ No newline at end of file diff --git a/schemas/translation.xsd b/schemas/translation.xsd index e69de29bb..cdf117a8a 100644 --- a/schemas/translation.xsd +++ b/schemas/translation.xsd @@ -0,0 +1,33 @@ +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en"> + + <xsd:annotation> + <xsd:documentation> + translation image info schema for bcfg2 + Narayan Desai, Argonne National Laboratory + $Id: $ + </xsd:documentation> + </xsd:annotation> + + <xsd:complexType name='SystemType'> + <xsd:choice minOccurs='1' maxOccurs='unbounded'> + <xsd:element name='Image'> + <xsd:complexType> + <xsd:attribute name='name' type='xsd:string' + use='required'/> + </xsd:complexType> + </xsd:element> + </xsd:choice> + <xsd:attribute name='name' type='xsd:string' use='required'/> + <xsd:attribute name='package' type='xsd:string' use='required'/> + <xsd:attribute name='service' type='xsd:string' use='required'/> + </xsd:complexType> + + <xsd:element name='SystemSet'> + <xsd:complexType> + <xsd:choice minOccurs='0' maxOccurs='unbounded'> + <xsd:element name='System' type='SystemType'/> + </xsd:choice> + </xsd:complexType> + </xsd:element> + +</xsd:schema>
\ No newline at end of file |