...

Source file src/github.com/sassoftware/relic/signers/vsix/consts.go

Documentation: github.com/sassoftware/relic/signers/vsix

     1  //
     2  // Copyright (c) SAS Institute Inc.
     3  //
     4  // Licensed under the Apache License, Version 2.0 (the "License");
     5  // you may not use this file except in compliance with the License.
     6  // You may obtain a copy of the License at
     7  //
     8  //     http://www.apache.org/licenses/LICENSE-2.0
     9  //
    10  // Unless required by applicable law or agreed to in writing, software
    11  // distributed under the License is distributed on an "AS IS" BASIS,
    12  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  // See the License for the specific language governing permissions and
    14  // limitations under the License.
    15  //
    16  
    17  package vsix
    18  
    19  const (
    20  	contentTypesPath = "[Content_Types].xml"
    21  	rootRelsPath     = "_rels"
    22  	digSigPath       = "package/services/digital-signature"
    23  	originPath       = digSigPath + "/origin.psdor"
    24  	xmlSigPath       = digSigPath + "/xml-signature"
    25  	xmlCertPath      = digSigPath + "/certificate"
    26  
    27  	nsDigSig      = "http://schemas.openxmlformats.org/package/2006/digital-signature"
    28  	sigOriginType = "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/origin"
    29  	sigType       = "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/signature"
    30  	certType      = "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/certificate"
    31  
    32  	defaultContentType = "application/octet-stream"
    33  	tsFormatXML        = "YYYY-MM-DDThh:mm:ss.sTZD"
    34  	tsFormatGo         = "2006-01-02T15:04:05.0-07:00"
    35  )
    36  
    37  var contentTypes = map[string]string{
    38  	"cer":    "application/vnd.openxmlformats-package.digital-signature-certificate",
    39  	"psdor":  "application/vnd.openxmlformats-package.digital-signature-origin",
    40  	"psdsxs": "application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml",
    41  	"rels":   "application/vnd.openxmlformats-package.relationships+xml",
    42  }
    43  

View as plain text