(out *textOutput, p *policy.Policy, def *policy.Definition)
| 112 | } |
| 113 | |
| 114 | func printPolicy(out *textOutput, p *policy.Policy, def *policy.Definition) { |
| 115 | var rows []policyTableRow |
| 116 | |
| 117 | rows = appendRetentionPolicyRows(rows, p, def) |
| 118 | rows = append(rows, policyTableRow{}) |
| 119 | rows = appendFilesPolicyValue(rows, p, def) |
| 120 | rows = append(rows, policyTableRow{}) |
| 121 | rows = appendErrorHandlingPolicyRows(rows, p, def) |
| 122 | rows = append(rows, policyTableRow{}) |
| 123 | rows = appendSchedulingPolicyRows(rows, p, def) |
| 124 | rows = append(rows, policyTableRow{}) |
| 125 | rows = appendUploadPolicyRows(rows, p, def) |
| 126 | rows = append(rows, policyTableRow{}) |
| 127 | rows = appendCompressionPolicyRows(rows, p, def) |
| 128 | rows = append(rows, policyTableRow{}) |
| 129 | rows = appendMetadataCompressionPolicyRows(rows, p, def) |
| 130 | rows = append(rows, policyTableRow{}) |
| 131 | rows = appendSplitterPolicyRows(rows, p, def) |
| 132 | rows = append(rows, policyTableRow{}) |
| 133 | rows = appendActionsPolicyRows(rows, p, def) |
| 134 | rows = append(rows, policyTableRow{}) |
| 135 | rows = appendOSSnapshotPolicyRows(rows, p, def) |
| 136 | rows = append(rows, policyTableRow{}) |
| 137 | rows = appendLoggingPolicyRows(rows, p, def) |
| 138 | |
| 139 | out.printStdout("Policy for %v:\n\n%v\n", p.Target(), alignedPolicyTableRows(rows)) |
| 140 | } |
| 141 | |
| 142 | func appendRetentionPolicyRows(rows []policyTableRow, p *policy.Policy, def *policy.Definition) []policyTableRow { |
| 143 | return append(rows, |
no test coverage detected