Reads and outputs the entire contents of the input filename.
(scope *Scope, filename tf.Output)
| 25991 | |
| 25992 | // Reads and outputs the entire contents of the input filename. |
| 25993 | func ReadFile(scope *Scope, filename tf.Output) (contents tf.Output) { |
| 25994 | if scope.Err() != nil { |
| 25995 | return |
| 25996 | } |
| 25997 | opspec := tf.OpSpec{ |
| 25998 | Type: "ReadFile", |
| 25999 | Input: []tf.Input{ |
| 26000 | filename, |
| 26001 | }, |
| 26002 | } |
| 26003 | op := scope.AddOperation(opspec) |
| 26004 | return op.Output(0) |
| 26005 | } |
| 26006 | |
| 26007 | // ResourceApplyAdadeltaAttr is an optional argument to ResourceApplyAdadelta. |
| 26008 | type ResourceApplyAdadeltaAttr func(optionalAttr) |