github.com/Axway/agent-sdk@v1.1.101/pkg/apic/specunstructuredprocessor.go (about)

     1  package apic
     2  
     3  type unstructuredProcessor struct {
     4  	spec []byte
     5  }
     6  
     7  func newUnstructuredSpecProcessor(resourceSpec []byte) SpecProcessor {
     8  	return &unstructuredProcessor{spec: resourceSpec}
     9  }
    10  
    11  func (p *unstructuredProcessor) GetResourceType() string {
    12  	return Unstructured
    13  }
    14  
    15  // GetVersion -
    16  func (p *unstructuredProcessor) GetVersion() string {
    17  	return ""
    18  }
    19  
    20  // GetDescription -
    21  func (p *unstructuredProcessor) GetDescription() string {
    22  	return ""
    23  }
    24  
    25  // GetEndpoints -
    26  func (p *unstructuredProcessor) GetEndpoints() ([]EndpointDefinition, error) {
    27  	return []EndpointDefinition{}, nil
    28  }
    29  
    30  // GetSpecBytes -
    31  func (p *unstructuredProcessor) GetSpecBytes() []byte {
    32  	return p.spec
    33  }